Skip to content

Instantly share code, notes, and snippets.

@rezamt
rezamt / RSA - Reference
Created October 8, 2024 00:16
RSA reference architecture
# Framework
# Reference Architecture
https://www.youtube.com/watch?v=1fjXNfIysbg&t=2612s
@rezamt
rezamt / README.md
Created October 1, 2024 13:29
SAML Signing Benefits

Enforcing signed SAML authentication requests offers several key benefits:

Enhanced Security:

By requiring signed requests, you ensure that the authentication requests are coming from a trused source. This helps prevent unauthorized access and reduces the risk of man-in-the-middle attacks1.

Data Integrity:

Signed requests guarantee that the data within the authentication request has not been tampered with during transmission. This ensures the integrity of the authentication process1.

Compliance:

Many regulatory frameworks and security standards require the use of signed authentication requests to ensure secure data exchange. Enforcing signed requests helps organizations meet these compliance requirements1.

@rezamt
rezamt / risk.md
Created September 30, 2024 03:19
opai
  1. Data Privacy: Understand what type of data Copilot is accessing. Does it have access to sensitive, personal, or confidential information (like customer data, codebases, or proprietary documentation)? Review the privacy policies and how your data is stored, transmitted, and used.
  2. Permission Levels: Ensure that Copilot is operating under the principle of least privilege, meaning it should only access the minimum amount of data necessary for its function. Verify that user roles and permissions are well-defined and properly implemented.
  3. Data Retention and Usage: Look into how long Copilot retains your data and for what purpose. Make sure the retention policies align with your organization’s compliance and data protection requirements. Can you delete or anonymize the data if necessary?
  4. Security Protocols: Evaluate the security measures in place. Does Copilot use encryption (both in transit and at rest)? What security frameworks and standards does it follow (e.g., SOC 2, ISO 27001)?
  5. Audit and Monitor
@rezamt
rezamt / yamlconfig.md
Created September 8, 2024 10:13
poweshell

Read YAML and generate Markdown

param( [Parameter(Mandatory=$true)] [string]$YamlFilePath,

[Parameter(Mandatory=$true)]
[string]$OutputMarkdownPath

)

@rezamt
rezamt / swagger.yaml
Created November 15, 2023 22:07
Application Factory
openapi: 3.0.3
info:
title: Microsoft Azure Application Onboarding Factory - OpenAPI 3.0
description: |-
Microsoft Azure Application Onboarding Factory Platfomr API
termsOfService: http://swagger.io/terms/
contact:
email: [email protected]
version: 0.1.0
externalDocs:
@rezamt
rezamt / main.py
Created November 14, 2023 12:28
Filter Credentials
# This is a sample Python script.
import json
import re
message = {
"items": [
{
"clientId": "<string>",
"grantTypes": [
"REFRESH_TOKEN",
@rezamt
rezamt / build-issues.md
Created November 5, 2023 15:11
provider-github

Issue 01 - make generate

The make genreate is failing for go get github.com/crossplane/upjet/pkg/config

01:55:17 [ .. ] go generate linux_amd64
../config/branch/config.go:3:8: no required module provides package github.com/crossplane/upjet/pkg/config; to add it:
	go get github.com/crossplane/upjet/pkg/config
apis/generate.go:25: running "go": exit status 1
generate: open /home/reza/provider-github/apis/v1alpha1/zz_generated.deepcopy.go: no such file or directory
@rezamt
rezamt / README.md
Created August 16, 2021 04:52
apigee-envoy-sidecar

apigee-remote-service-cli samples templates

Supported templates:

  • envoy-1.15
  • envoy-1.16
  • envoy-1.17
  • istio-1.7
  • istio-1.8
  • istio-1.9
@rezamt
rezamt / apigee.md
Created August 12, 2021 06:45
Apigee Questionaire
apiVersion: v1
kind: Pod
metadata:
name: static-nginx
spec:
containers:
- name: web
image: nginx
ports:
- name: web