generated from patrickleet/streaming-ssr-react-styled-components
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: auth w/ gatekeeper * fix: chart typo * fix: chart typo 2 * fix(auth): keycloak client secret * feat: reference generated secret from keycloak client * fix: client id * fix: yaml indentation * fix: use namespace for client id as it changes per ns but not per build * fix: use namespace for clientId in deployment as well * fix: auth only * fix: audience mapper only * fix: roles and username mapper * fix: refactor some variables out and set gatekeeper resources for HPA to be happy * fix: more refactoring * chore: resource settings test * fix: missing resource change from HPA tests * fix: calculate redirectUris * feat(auth): tenant mapper * feat(auth): rm tenant mapper - did not work * fix(auth): update keycloak details * fix(auth): add /* of domain as valid redirects
- Loading branch information
1 parent
079dd10
commit bcbe0c3
Showing
5 changed files
with
110 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apiVersion: k8s.kiwigrid.com/v1beta1 | ||
kind: KeycloakClient | ||
metadata: | ||
name: {{ .Release.Namespace }} | ||
spec: | ||
keycloak: {{ .Values.keycloak.keycloak }} | ||
realm: {{ .Values.keycloak.realm }} | ||
clientId: {{ .Release.Namespace }} | ||
clientType: confidential | ||
directAccessGrantsEnabled: true | ||
standardFlowEnabled: true | ||
implicitFlowEnabled: false | ||
redirectUris: | ||
{{- if .Values.keycloak.redirectUris.allowAll }} | ||
- https://* | ||
{{- else }} | ||
{{- if .Values.keycloak.redirectUris.includeNamespace }} | ||
- https://{{ .Values.keycloak.redirectUris.serviceName }}-{{ .Release.Namespace}}.{{ .Values.keycloak.redirectUris.domain }}/* | ||
- https://{{ .Values.keycloak.redirectUris.serviceName }}-{{ .Release.Namespace}}.{{ .Values.keycloak.redirectUris.domain }} | ||
{{- else }} | ||
- https://{{ .Values.keycloak.redirectUris.serviceName }}.{{ .Values.keycloak.redirectUris.domain }}/* | ||
- https://{{ .Values.keycloak.redirectUris.serviceName }}.{{ .Values.keycloak.redirectUris.domain }} | ||
{{- end }} | ||
{{- end }} | ||
mapper: | ||
- name: audience | ||
protocolMapper: oidc-audience-mapper | ||
config: | ||
claim.name: audience | ||
access.token.claim: "true" | ||
included.client.audience: {{ .Release.Namespace }} | ||
- name: username | ||
protocolMapper: oidc-usermodel-property-mapper | ||
config: | ||
access.token.claim: "true" | ||
claim.name: username | ||
jsonType.label: String | ||
user.attribute: username | ||
- name: roles | ||
protocolMapper: oidc-usermodel-client-role-mapper | ||
config: | ||
access.token.claim: "true" | ||
claim.name: roles | ||
jsonType.label: String | ||
multivalued: "true" | ||
|
This file contains 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
This file contains 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
This file contains 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