Skip to content

Commit

Permalink
Merge pull request #9 from lalithkota/main
Browse files Browse the repository at this point in the history
Added Superset keycloak client
  • Loading branch information
pjoshi751 authored Jan 21, 2024
2 parents 74cf608 + fb938a1 commit 1549984
Show file tree
Hide file tree
Showing 8 changed files with 744 additions and 12 deletions.
4 changes: 3 additions & 1 deletion kubernetes/keycloak/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ if [ "$KEYCLOAK_INIT_ENABLED" != "false" ]; then
export OPENG2P_MINIO_CLIENT_SECRET=$(kubectl -n $NS get secret keycloak-client-secrets -o jsonpath={.data.openg2p_minio_client_secret} | base64 --decode)
export OPENG2P_KAFKA_CLIENT_SECRET=$(kubectl -n $NS get secret keycloak-client-secrets -o jsonpath={.data.openg2p_kafka_client_secret} | base64 --decode)
export OPENG2P_KIBANA_CLIENT_SECRET=$(kubectl -n $NS get secret keycloak-client-secrets -o jsonpath={.data.openg2p_kibana_client_secret} | base64 --decode)
export OPENG2P_SUPERSET_CLIENT_SECRET=$(kubectl -n $NS get secret keycloak-client-secrets -o jsonpath={.data.openg2p_superset_client_secret} | base64 --decode)

envsubst \
'${KEYCLOAK_HOSTNAME}
Expand All @@ -43,7 +44,8 @@ if [ "$KEYCLOAK_INIT_ENABLED" != "false" ]; then
${OPENG2P_SERVICEPROVIDER_CLIENT_SECRET}
${OPENG2P_MINIO_CLIENT_SECRET}
${OPENG2P_KAFKA_CLIENT_SECRET}
${OPENG2P_KIBANA_CLIENT_SECRET}' < ${KEYCLOAK_REALM_NAME}-realm.json > /tmp/${KEYCLOAK_REALM_NAME}-realm.json
${OPENG2P_KIBANA_CLIENT_SECRET}
${OPENG2P_SUPERSET_CIENT_SECRET}' < ${KEYCLOAK_REALM_NAME}-realm.json > /tmp/${KEYCLOAK_REALM_NAME}-realm.json

keycloak_import_realm \
"$(keycloak_get_admin_token)" \
Expand Down
4 changes: 3 additions & 1 deletion kubernetes/keycloak/keycloak-init/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ clientSecrets:
secret: ""
- name: openg2p_kibana_client_secret
secret: ""
- name: openg2p_superset_client_secret
secret: ""
- name: mosip_abis_client_secret
secret: ""
- name: mosip_admin_client_secret
Expand Down Expand Up @@ -64,4 +66,4 @@ clientSecrets:
- name: mosip_testrig_client_secret
secret: ""
- name: mpartner_default_opencrvs_secret
secret: ""
secret: ""
Loading

0 comments on commit 1549984

Please sign in to comment.