Skip to content

Commit

Permalink
Update missed references to jwks
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoliaw committed Nov 14, 2024
1 parent dd0fe3f commit 2212140
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions charts/opa/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ spec:
name: {{ tpl .Values.orgData.bundlerSecret.name . }}
key: {{ .Values.orgData.bundlerSecret.key }}
{{- end -}}
{{- if and .Values.orgPolicy.enabled .Values.orgPolicy.jwksEndpoint }}
{{- if .Values.orgPolicy.enabled }}
{{- with .Values.orgPolicy.issuer }}
- name: ISSUER
value: {{ .Values.orgPolicy.issuer }}
value: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.extraEnv }}
{{- .Values.extraEnv | toYaml | nindent 12 }}
Expand Down
6 changes: 3 additions & 3 deletions docs/how-tos/deploy-with-helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ kubectl create secret generic bundler --from-literal=bearer-token=<BUNDLER_BEARE

By default the deployed OPA instance will not load the [Organisational Policy](../references/organisational-policy.md), however this can be enabled by setting the `opa.orgPolicy.enabled` value to `true` in your `values.yaml`.

By default this will use the KeyCloak JSON Web Key Set (JWKS). If you wish to change this you should set the `opa.orgPolicy.jwksEndpoint` value to the desired endpoint.
By default this will use the KeyCloak instance. If you wish to change this you should set the `opa.orgPolicy.issuer` value to the desired endpoint.


!!! example "values.yml"
Expand All @@ -55,7 +55,7 @@ By default this will use the KeyCloak JSON Web Key Set (JWKS). If you wish to ch
opa:
orgPolicy:
enabled: true
jwksEndpoint: https://authn.diamond.ac.uk/realms/master/protocol/openid-connect/certs
issuer: https://authn.diamond.ac.uk/realms/master
```

## Adding Additional Bundles
Expand Down Expand Up @@ -89,7 +89,7 @@ Configuration for additional services and bundles can be supplied via the `opa.e
min_delay_seconds: 30
max_delay_seconds: 120
extraEnv:
- name: MY_BUNDLE_SERVER_BEARER_TOKEN
- name: MY_BUNDLE_SERVER_BEARER_TOKEN
valueFrom:
name: my-bundle-server
value: bearer-token
Expand Down

0 comments on commit 2212140

Please sign in to comment.