Skip to content

Commit

Permalink
added F7T_AUTH_ISSUER and removed REALM and URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jdorsch committed Dec 13, 2023
1 parent f6c465c commit 2f06883
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
16 changes: 6 additions & 10 deletions deploy/k8s/kong/templates/cm.kong.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,16 @@ items:
consumers:
{{- range .Values.global.auth }}
- username: {{ .username }}
custom_id: {{ .username }}
- jwt_secrets:
- key: "{{ .F7T_AUTH_ISSUER }}"
algorithm: "{{ .F7T_AUTH_REALM_TYPE }}"
rsa_public_key: "-----BEGIN PUBLIC KEY-----\n{{ .F7T_AUTH_REALM_PUBKEY }}\n-----END PUBLIC KEY-----"
username: "{{ .username }}"
{{- end }}
- username: docs
custom_id: docs
{{- range .Values.global.auth }}
jwt_secrets:
- key: "{{ .F7T_AUTH_URL }}/auth/realms/{{ .F7T_AUTH_REALM }}"
algorithm: "{{ .F7T_AUTH_REALM_TYPE }}"
rsa_public_key: "-----BEGIN PUBLIC KEY-----\n{{ .F7T_AUTH_REALM_PUBKEY }}\n-----END PUBLIC KEY-----"
consumer: "{{ .username }}"
{{- end }}
routes:
- name: reject
# rejects any undefined route with 'request-termination' plugin
Expand Down
3 changes: 1 addition & 2 deletions deploy/k8s/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ global:
F7T_RESERVATIONS_HOST: "https://svc-reservations"
auth:
- username: kc-demo
F7T_AUTH_URL: "http://svc-keycloak:8080"
F7T_AUTH_REALM: "kcrealm"
F7T_AUTH_ISSUER: "http://svc-keycloak:8080/auth/realms/kcrealm"
F7T_AUTH_REALM_PUBKEY: 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqB44q32bQp8LbyW6dQvgsjseXESkLT1g5LQKGb+P79AC+nOAtxhn8i/kmgc6zsQH8NlUtNJruLxlzdo2/OGmlDGYZH1x6VmAwvJPJ4er0xPUrvZ8YclxYQC16PY5LFiQRNBMRyQwP5Kne1O46FpmADFVWMfoabdnaqoXexxB56b25o8tE2ulRBgfpnrRgZAvf7kWjugRCNO06FV074FVMYHA1aBk0ICyaFCDM/Tb5oaDyGr5c/ZvdrRUrw8vaiYyMgaAnnJPL75cebGoHeMJaEyZalsHA+iuhRAfeAwpSClsmhVqnfH7a7hqrqumVRo27dydqmfVgpFjU5gbFcBZ5wIDAQAB'
F7T_AUTH_REALM_TYPE: "RS256"

0 comments on commit 2f06883

Please sign in to comment.