Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Vault charm authorization instructions for newer Vault charm version #69

Merged
merged 3 commits into from
Nov 25, 2024
Merged
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
10 changes: 9 additions & 1 deletion tutorial/deploy_jaas_microk8s.rst
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,15 @@ Run the following command to unseal Vault and export the unseal token and root k
export VAULT_TOKEN=$(echo "$key_init" | sed -n -e 's/.*Root Token: //p'); echo "Root Token = $VAULT_TOKEN"
export UNSEAL_KEY=$(echo "$key_init" | sed -n -e 's/.*Unseal Key 1: //p'); echo "Unseal Key = $UNSEAL_KEY"
vault operator unseal "$UNSEAL_KEY"
juju run vault/leader authorize-charm token="$VAULT_TOKEN"

Authorises the charm to be able to interact with Vault to manage its operations.

.. code:: bash

vault_secret_id=$(juju add-secret vault-token token="$VAULT_TOKEN")
juju grant-secret vault-token vault
juju run vault/leader authorize-charm secret-id="$vault_secret_id"
juju remove-secret "vault-token"

Now run ``juju status`` again and confirm your Vault unit is in an active state.

Expand Down
Loading