Authentication¶
Updating an Identity Provider Secret¶
VOR Stream stores OIDC client secrets for configured identity providers in Vault. To update these secrets, there are two options:
- update the
oidc_providers.yaml
file for the deployment, and rerun the deployment - manually update the secrets stored in Vault
To manually update the secrets stored in Vault, the secret needs to be updated in two places: the OIDC config JSON file and the Vault OIDC authentication method for the identity provider. The steps to update these are outlined in the two sections below.
Updating the oidc-config
Vault KV JSON entry¶
The oidc-config
Vault KV JSON entry stores OIDC credentials used by
the Django Midtier
to authenticate users via the VOR Stream web UI. To manually update the
credentials, follow the steps below.
- Log in to the Vault instance with root credentials.
-
Navigate to the
oidc-config
entry in the KV secrets engine. -
Click Create new version.
- Edit the JSON in the to update the secret (
client_secret
in the JSON) for the identity provider that needs its secret updated. - Click Save.
-
Restart the Django Midtier.
Note
The command below needs to be run by the installation user (
vrisk
, by default) on the host that is running the Django Midtier.supervisorctl restart uwsgi
-
Attempt to log in to the web UI to ensure the change is successful.
Updating secrets for Vault OIDC authentication method¶
The deployment automatically configures a Vault OIDC authentication method for
each entry in the oidc_providers.yaml
file. This auth method is used to authenticate users to Vault directly as
well as to the CLI. To manually update its credentials, follow the steps below.
- Log in to the Vault instance with root credentials.
- Select Access in the navigation pane.
- Select Authentication Methods in the sub-navigation pane.
- Find the associated authentication method for the identity provider that
needs its secret updated. It will have a name
that matches the key of the identity provider in the
oidc_providers.yaml
file. -
Click the Configure button.
-
Scroll to the bottom of the page and expand OIDC Options.
- Enter the new secret in the OIDC client secret field.
- Click Save.
- Try logging in to the CLI using
vor login
to ensure the change is successful.