Skip to content

Instantly share code, notes, and snippets.

{
"variables": {
"project_id": ""
},
"builders": [
{
"type": "googlecompute",
"project_id": "{{user `project_id`}}",
"source_image": "centos-7-v20161027",
"zone": "us-central1-a",
@darkedges
darkedges / gist:0f638350ceeaa9902936f2b05ea793b4
Last active November 11, 2017 21:00
Creating GCP Internal Load Balancer
#!/bin.bash
# Create TCP Health Check
gcloud beta compute health-checks create tcp my-tcp-health-check \
--port 389
# Create Load Balancer
gcloud beta compute backend-services create forgerock-frontend-port389-backend-service \
--load-balancing-scheme internal \
--region us-central1 \
@darkedges
darkedges / curl
Last active December 10, 2016 22:11
curl -X POST http://localhost:8008/helloWorldHttp -H "Content-Type: application/json" -d "{\"name\": \"Test\"}"
@darkedges
darkedges / FRDevOps.txt
Last active July 2, 2018 20:00
FRDevOps.txt
choco install kubernetes-helm
choco install minikube
git clone https://github.com/ForgeRock/forgeops.git
git checkout release/6.0.0
git clone https://github.com/ForgeRock/forgeops-init.git
git checkout release/6.0.0
minikube start
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/affinity: cookie
ingress.kubernetes.io/enable-cors: "false"
{
"metadata": {
"realm": "/connectid",
"amsterVersion": "7.5.0",
"entityType": "OAuth2Clients",
"entityId": "BackChannel",
"pathParams": {}
},
"data": {
"_id": "BackChannel",
2024/07/22 03:56:24 [debug] 1337#0: *1358 [lua] http_connect.lua:253: execute_original_func(): poolname: https:xx.xx.xx.xx:443:true:xx.xx.xx.xx:false:::
2024/07/22 03:56:24 [debug] 1337#0: *1358 [lua] access.lua:28: [ping-auth] Sending sideband request to policy provider:
POST /sideband/request HTTP/1.1
Connection: Keep-Alive
Content-Length: 1754
Content-Type: application/json
Host: pingauthorize-pingauthorize.ping:443
PDG-TOKEN: KongGateway
{"url":"https://kongapi/provider/api/records/10","source_port":"50528","http_version":"1.1","headers":[{"cdn-loop":"cloudflare"},{"user-agent":"PostmanRuntime/7.40.0"},{"x-forwarded-proto":"https"},{"cf-ipcountry":"AU"},{"x-forwarded-for":"xx.xx.xx.xx"},{"cf-ray":"8a70802efff3a82f-SYD"},{"authorization":"Bearer xx.xx.xx"},{"cf-visitor":"{\"scheme\":\"https\"}"},{"connection":"keep-alive"},{"cf-warp-tag-id":"d6e4eccf-36b3-4a97-a53f-cda85996d4a8"},{"cf-connecting-ip":"xx.xx.xx.xx"},{"postman-token":"0c294140-9a99-465c-b202-1a704bea1a53"},{"accept-encoding":"gzip, br"},{"h
@darkedges
darkedges / values.yaml
Created September 23, 2024 23:22
Kong Deployment
gateway:
image:
repository: darkedges/kong
tag: "3.7"
env:
plugins: bundled,phantom-token,opa,ping-auth
database: postgres
PG_DATABASE: kong
PG_HOST: postgresql.postgresql
PG_USER: kong_user
@darkedges
darkedges / apply
Last active October 1, 2024 19:44
Terraform Microsoft Entra Enterprise Application
data.azuread_application_published_app_ids.well_known: Reading...
data.azuread_client_config.current: Reading...
data.azuread_client_config.current: Read complete after 0s [id=4161be3f-bf2b-41d4-a02b-e6f82b529d53-04b07795-8ddb-461a-bbee-02f9e1bf7b46-937d010e-979d-47f9-a81d-901ff373e168]
data.azuread_application_published_app_ids.well_known: Read complete after 0s [id=appIds]
data.azuread_service_principal.msgraph: Reading...
data.azuread_service_principal.msgraph: Read complete after 0s [id=f8407232-7631-4fb5-a3e4-96761270021c]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create