I have created a keyclock deployment/pod using the below yaml in my EKS kubernetes cluster. The keycloak is connected to external postgres rds database. I created the admin user and password during initial setup using kubernetes secrets. Now if someone updates the admin password from keycloak console/UI , what will be the impact of -
In the above cases will the inital password takes presedence or the admin password in database ?
apiVersion: apps/v1
kind: Deployment
metadata:
name: keycloak
spec:
selector:
matchLabels:
app: keycloak
replicas: 1
template:
metadata:
labels:
app: keycloak
spec:
containers:
- image: quay.io/keycloak/keycloak:20.0.3
name: keycloak
args: ["start-dev"]
env:
- name: KEYCLOAK_ADMIN
value: "admin"
- name: KEYCLOAK_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: db-keycloak-secret
key: keycloakpassword
- name: KC_STORAGE
value: "jpa"
- name: KC_DB_DRIVER
value: "org.postgresql.Driver"
- name: KC_DB
value: "postgres"
- name: KC_DB_URL
valueFrom:
secretKeyRef:
name: db-keycloak-secret
key: dburl
- name: KC_DB_URL_DATABASE
value: "keycloak_db"
- name: KC_DB_URL_PORT
value: "5432"
- name: KC_DB_USERNAME
value: "qakeycloak"
- name: KC_DB_PASSWORD
valueFrom:
secretKeyRef:
name: db-keycloak-secret
key: dbpassword
- name: KC_HTTP_RELATIVE_PATH
value: "/keycloak"
- name: KC_HOSTNAME_STRICT_HTTPS
value: "false"
- name: KC_HOSTNAME_STRICT_BACKCHANNEL
value: "true"
- name: KC_HOSTNAME_STRICT
value: "false"
- name: KC_PROXY
value: "edge"
- name: KC_HTTP_ENABLED
value: "true"
ports:
- containerPort: 8080
Updating the admin password from keycloak console/UI, the impact will be -
Updating the password value in secret and rerun the same deployment yaml. Can login from new password?