This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var jwt = require('jsonwebtoken'); | |
| const fs = require('fs'); | |
| var request = require("request"); | |
| var querystring = require('querystring'); | |
| var privateKey = fs.readFileSync('./private_key.pem'); | |
| #idcs or keycloak URL | |
| var url = "https://example.com/oauth2/v1/token" | |
| var headers = { | |
| 'Authorization': 'Basic <BASE-64 ENCODED client ID & Secret>', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: nginx | |
| labels: | |
| app: nginx | |
| spec: | |
| ports: | |
| - name: http | |
| port: 80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: ServiceAccount | |
| metadata: | |
| name: daemonset-access | |
| namespace: default | |
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: cron-namespace-admin-rbac | |
| subjects: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: istio-echoserver | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: istio-echoserver | |
| template: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3.7' | |
| services: | |
| mongodb_container: | |
| image: mongo:latest | |
| environment: | |
| - MONGO_INITDB_ROOT_USERNAME=root | |
| - MONGO_INITDB_ROOT_PASSWORD=password | |
| - MONGO_INITDB_DATABASE=test | |
| ports: | |
| - 27017:27017 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: StatefulSet | |
| metadata: | |
| labels: | |
| app : elasticsearch | |
| component: elasticsearch | |
| release: elasticsearch | |
| name: elasticsearch | |
| spec: | |
| podManagementPolicy: Parallel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| filters: | |
| - and: | |
| - type: value | |
| key: dnssecConfig.defaultKeySpecs[].algorithm | |
| value: rsasha256 | |
| value_type: swap | |
| op: in | |
| - type: value | |
| key: dnssecConfig.defaultKeySpecs[].keyType | |
| op: in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| policies: | |
| - name: check-all-bucket-logging | |
| description: | | |
| Check all bucket logging enabled | |
| resource: gcp.bucket | |
| filters: | |
| - type: value | |
| key: logging | |
| value: absent | |
| actions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo curl -L -o /usr/local/bin/aws-vault https://github.com/99designs/aws-vault/releases/download/v4.2.0/aws-vault-linux-amd64 | |
| sudo chmod 755 /usr/local/bin/aws-vault |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: cert-manager.io/v1 | |
| kind: Issuer | |
| metadata: | |
| name: letsencrypt-prod | |
| spec: | |
| acme: | |
| email: [email protected] | |
| server: https://acme-v02.api.letsencrypt.org/directory | |
| privateKeySecretRef: | |
| name: letsencrypt-prod |