ArgoCD SSO Configuration
Prerequisites
- Ensure the Global SSO Settings have already been configured for this cluster.
- Access to Keycloak Master Realm
Create Keycloak Client
tip
If this client already exists due to it being configured for another cluster, consider adding the environment name as common prefix to the client name. For example, the client name could be my-org-run-argocd
.
- While you are in the
smoothglue
realm, click onClients
underManage
in the left pane. - Click
Create client
. - Enter client name
argocd
forClient ID
. - Click on the
Next
button. - Toggle on
Client authentication
. - Click on the
Next
button. Note: The application's FQDN name may be obtained by runningkubectl get virtualservice -A
- Enter
https://{{ application_fqdn }}/auth/callback
forValid Redirect URIs
. - Click on the
Save
button.
Creating Client Scopes
ArgoCD
needs to be added in the Client Scopes.
- While you are in the
smoothglue
realm, click onClient Scopes
. - Click
Create client scope
. - Enter
ArgoCD
forName
, and click on theSave
button. - Go to the
Mappers
tab. - Click
Configure a new mapper
. - Select
Group Membership
- Enter the following information:
- Name -
Groups
- Token claim Name -
groups
- Full group path - Enabled
- Add to ID token - Enabled
- Add to access token - Enabled
- Save
- Name -
- Go to
Clients
, and click on theargocd
client. - Go to the
Client Scopes
tab. - Click
Add client scope
. - Enable the
ArgoCD
client scope. - Click
Add
->Default
.
SSO Configuration
Retrieve the client_secret
from the Keycloak client:
- As a Keycloak Admin and within the
smoothglue
realm, clickClients
on the left-hand panel. - Click on the
argocd
client. - Click on the
Credentials
tab. - Copy the value from the
Client Secret
field.
Add the following values to bigbang-secrets.yaml
to configure SSO:
# SSO Settings
addons:
argocd:
sso:
client_id: argocd # should match the client name in keycloak
client_secret: "" # change to your ArgoCD client secret
enabled: true
provider_name: Keycloak
groups: |
g, /_structsureAdmins, role:admin
g, /_structsureAudit, role:readonly
info
See How to Configure Big Bang Values for more information on configuring Big Bang applications.