Skip to content

Commit

Permalink
!feat(sso-stack): account3 console with redirect ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-w committed Nov 30, 2023
1 parent 5f556ee commit 7f5fd91
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/sso-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: sso-stack
description: Keycloak-based Signle-Sign-On and some useful extras
type: application
version: "0.0.1"
appVersion: "0.0.1"
version: "0.1.0"
appVersion: "0.1.0"

dependencies:
- name: common
Expand Down
23 changes: 23 additions & 0 deletions charts/sso-stack/templates/account-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
kind: Ingress
apiVersion: networking.k8s.io/v1
metadata:
name: account-console-redir
annotations:
kubernetes.io/tls-acme: 'true'
nginx.ingress.kubernetes.io/permanent-redirect: {{ printf "https://%s/realms/master/account/#/personal-info" .Values.hosts.keycloak }}
spec:
tls:
- hosts:
- {{ .Values.hosts.account_console }}
secretName: account-console-redir-tls
rules:
- host: {{ .Values.hosts.account_console }}
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: keycloak
port:
name: http
2 changes: 1 addition & 1 deletion charts/sso-stack/templates/keycloak.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:
tls: true
extraEnvVars:
- name: KC_FEATURES
value: 'declarative-user-profile,recovery-codes'
value: 'declarative-user-profile,recovery-codes,account3'
extraVolumes:
- name: theme-login
configMap:
Expand Down
1 change: 1 addition & 0 deletions charts/sso-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ domain: ""
hosts:
keycloak: ""
authproxy: ""
account_console: ""

smtp:
host: ""
Expand Down

0 comments on commit 7f5fd91

Please sign in to comment.