Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sources/keycloak-config/templates/keycloak-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
key: airm-ci-client-secret
property: value
secretKey: CI_CLIENT_SECRET
- remoteRef:
key: keycloak-initial-devuser-password
property: value
secretKey: KEYCLOAK_INITIAL_DEVUSER_PASSWORD
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ spec:
key: argocd-client-secret
property: value
secretKey: ARGOCD_CLIENT_SECRET
- remoteRef:
key: keycloak-initial-devuser-password
property: value
secretKey: KEYCLOAK_INITIAL_DEVUSER_PASSWORD
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
Expand Down
6 changes: 6 additions & 0 deletions sources/keycloak-old/templates/keycloak-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ spec:
sed -i -e "s/__MINIO_CLIENT_SECRET__/$MINIO_CLIENT_SECRET/g" /opt/realms/airm-realm.json
sed -i -e "s/__GITEA_CLIENT_SECRET__/$GITEA_CLIENT_SECRET/g" /opt/realms/airm-realm.json
sed -i -e "s/__ARGOCD_CLIENT_SECRET__/$ARGOCD_CLIENT_SECRET/g" /opt/realms/airm-realm.json
sed -i -e "s/__DEVUSER_INITIAL_PASSWORD__/$DEVUSER_INITIAL_PASSWORD/g" /opt/realms/airm-realm.json
else
echo "Warning: /opt/realm_templates/airm-realm.json not found, skipping airm realm setup"
fi
Expand Down Expand Up @@ -154,6 +155,11 @@ spec:
secretKeyRef:
key: ARGOCD_CLIENT_SECRET
name: airm-realm-credentials
- name: DEVUSER_INITIAL_PASSWORD
valueFrom:
secretKeyRef:
key: KEYCLOAK_INITIAL_DEVUSER_PASSWORD
name: airm-realm-credentials
image: ghcr.io/silogen/keycloak-init:0.1
name: init-realm-scripts
volumeMounts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,12 +549,9 @@ data:
"totp": false,
"credentials": [
{
"id": "596f57d5-41d0-4dd8-bd6f-bb16db235be2",
"type": "password",
"userLabel": "My password",
"createdDate": 1746628471958,
"secretData": "{\"value\":\"15oUl8X/o/maH7BWBI4mGDj7WFXPXSc+BbPsIBTcqHE=\",\"salt\":\"RDnI5bojai0rUPa5j7T1rQ==\",\"additionalParameters\":{}}",
"credentialData": "{\"hashIterations\":5,\"algorithm\":\"argon2\",\"additionalParameters\":{\"hashLength\":[\"32\"],\"memory\":[\"7168\"],\"type\":[\"id\"],\"version\":[\"1.3\"],\"parallelism\":[\"1\"]}}"
"value": "__DEVUSER_INITIAL_PASSWORD__",
"temporary": false
}
],
"disableableCredentialTypes": [],
Expand Down