Settings → Users & Roles → External Vaults
Connect an existing HashiCorp Vault, OpenBao, AWS Secrets Manager, or Azure Key Vault to MisterShell. Resource credentials can then read their values from that vault when connecting, without permanently storing the retrieved credentials in MisterShell.
An external vault defines how MisterShell reaches and authenticates to a secret store. A credential mapping selects the secrets and fields to use for a resource. Platform and user credentials can select their vaults independently. Configure the vault here, then create mappings under Manage → Configuration → Service account credentials.
External vaults are separate from Account → Personal Vault, which holds credentials saved in MisterShell by users and teams.
What you can do
- Register, edit, test, disable, and delete external vault connections.
- Use the vault’s service identity for resource checks, background operations, and connections.
- Configure a separate reference for each interactive user’s credentials.
- For HashiCorp Vault and OpenBao, let the vault authorize user reads through a signed MisterShell identity assertion.
Creating, changing, testing, and using external vault sources requires the Pro edition. If it becomes unavailable, external reads stop; MisterShell does not switch silently to another credential. Existing entries can still be viewed and deleted, and credentials can be changed back to local storage with new values.
Common tasks
Create an external vault
Before starting, arrange read access to the intended secrets with your vault administrator. MisterShell Core must be able to reach the vault and authenticate to it. If you choose a workload identity, that identity belongs to Core, not your browser or the resource being connected to.
| Provider | Access needed in the external provider |
|---|---|
| HashiCorp Vault / OpenBao | A policy granting read on <mount>/data/<path> for KV v2, or <mount>/<path> for KV v1, attached to the service token, AppRole, or Kubernetes role. The policy path includes data/ for v2; the credential mapping’s path does not. |
| AWS Secrets Manager | secretsmanager:GetSecretValue on the selected secrets, plus kms:Decrypt on their key if they use a customer-managed KMS key. With Assume-role ARN, the source identity must be allowed to assume that role, and the role needs the secret-read permissions. See AWS secret-read permissions. |
| Azure Key Vault | For a vault using Azure RBAC, grant the service principal or Core identity Key Vault Secrets User at the intended scope. For access-policy vaults, allow secret Get; List is optional and only affects the saved-configuration test warning. See Azure Key Vault roles. |
- Open Settings → Users & Roles → External Vaults.
- Click Create External Vault.
- Fill Vault details, then the provider-specific sections below. Hover over or focus a ? hint for help with a field.
- Click Save.
- Click the Test saved configuration icon on the new row. This checks service authentication, not unsaved edits or individual secret reads. For AWS it checks identity through STS, so it does not test the Secrets Manager Endpoint URL. For HashiCorp Vault and OpenBao it does not test the KV mount or per-user JWT role. Azure also tries listing secret metadata; Listing denied is a warning because mapped secrets may still be readable.
- Create an external credential and check its reference before using it on resources.
Edit or disable a vault
- Click the edit icon on its row.
- Change the settings. Provider and Mnemonic cannot be changed after creation. Leave stored secret fields untouched to keep their values; use their edit control to replace them.
- Turn Enabled off to block further reads, including cached values, while retaining the vault and its mappings. A disabled vault cannot be selected for new credentials, and changes to its credential mappings cannot be saved until it is enabled again.
- Click Save. If you changed connection or authentication settings, test the saved configuration again.
Switching authentication methods removes the old method’s credentials. For AWS temporary credentials, replacing them with long-lived keys also requires Remove stored session token; leaving the token field blank keeps the stored token. Keep stored session token cancels that removal before saving.
Changes affect every credential using this vault. After saving or testing it, click Verify again in any open resource form before Create resource or Save changes; pending verification results become stale.
Delete a vault
- Reassign or remove the credentials that reference it.
- Click the trash icon and confirm.
Deleting the connection does not delete secrets from the external provider. A vault still referenced by a credential cannot be deleted.
Fields
Vault details
| Field | Notes |
|---|---|
| Provider | HashiCorp Vault, OpenBao, AWS Secrets Manager, or Azure Key Vault. Fixed after creation. |
| Name | Display name shown when authors select a vault for a credential. |
| Mnemonic | Unique lowercase identifier using letters, digits, and hyphens, such as production-vault. Fixed after creation; also identifies this vault in user identity assertions. |
| Enabled | Allows credentials to read from this vault. |
| Description | Optional notes about its purpose or owner. Do not enter secrets here. |
HashiCorp Vault and OpenBao
Both providers support KV v1 and KV v2 secrets. Each vault connection selects one KV mount and version; credential mappings choose paths within it.
| Section / field | Notes |
|---|---|
| Connection — Vault URL | Server URL, such as https://vault.example.com:8200. Do not include an API path. |
| Namespace | Optional namespace; leave blank for the root namespace or a server without namespaces. |
| Verify TLS certificate | Verify the server’s certificate. For an internal authority, add it under CA Certificates. |
| Authentication — Authentication method | Service token, AppRole, or Kubernetes service account. The matching fields appear below. |
| Service token | For Service token: a service token permitted to read the mapped secrets. |
| AppRole auth mount / Role ID / Secret ID | For AppRole: its authentication mount, usually approle, and the matching Role ID and Secret ID. Omit the auth/ prefix from the mount. |
| Kubernetes auth mount / role | For Kubernetes: its authentication mount, usually kubernetes, and a role bound to Core’s Kubernetes service account. Core needs its standard mounted service-account token. Omit auth/ from the mount. |
| Secrets and caching — KV mount | Secrets engine mount, usually secret. Do not add /v1 or /data; the credential mapping supplies the secret path. |
| KV version | Match the engine: KV v1 or KV v2. Default: v2. |
| Cache lifetime (seconds) | See Caching and secret changes. |
| User identity — User identity mode | Service identity only uses the configured service identity for all reads. Per-user JWT identity authorizes user references through the connecting user’s MisterShell identity. |
| JWT auth mount / JWT role | Shown for per-user JWT identity. See Authorize reads per user. |
AWS Secrets Manager
| Section / field | Notes |
|---|---|
| Connection — AWS region | Region containing the secrets, such as eu-west-1. |
| Endpoint URL | Optional Secrets Manager endpoint override. Leave blank for the standard regional endpoint. |
| Authentication — Authentication method | Access keys or Core workload identity (ambient). Ambient uses the AWS identity available to Core. |
| Access Key ID / Secret Access Key | Shown for Access keys. Supply a matching pair with access to the intended secrets. |
| Session Token | Optional token required when that pair belongs to temporary AWS credentials. Update all three together before expiry. |
| Assume-role ARN | Optional IAM role to assume before reading secrets. Its trust policy must allow the source identity. |
| External ID | Optional value required by the assumed role’s trust policy. |
| Secrets and caching — Cache lifetime (seconds) | See Caching and secret changes. |
Mappings select a secret name or ARN and, optionally, a version stage. They can read individual JSON keys or the entire text value. Binary secrets are not supported.
Azure Key Vault
| Section / field | Notes |
|---|---|
| Connection — Vault URL | HTTPS URL, such as https://my-vault.vault.azure.net. Public, US Government, and China cloud vault domains are supported. |
| Authority host | Leave blank to select the authority for the vault’s Azure cloud, or supply a matching Microsoft Entra authority. |
| Authentication — Authentication method | Service principal (client secret) or Core workload identity (ambient). Ambient uses the Azure identity available to Core. |
| Tenant ID | Directory containing the service application; shown for client-secret authentication. |
| Application (Client) ID | Service application’s client ID. Grant this identity read access to the intended secrets. |
| Client Secret Value | The application’s secret value, not its secret ID. Replace it before expiry. |
| Secrets and caching — Cache lifetime (seconds) | See Caching and secret changes. |
Each mapped credential field selects a Key Vault secret name, optionally followed by /version. There is no shared secret path to fill in for this provider.
Authorize reads per user
This option is available for HashiCorp Vault and OpenBao. A user reference can select a different secret for each operator with either identity mode. Per-user JWT identity additionally lets the vault enforce which secrets that operator may read. AWS and Azure user references use the configured service identity.
- Set
app_base_urlunder Advanced Settings → Deployment identity and HTTPS to MisterShell’s public origin: scheme and host, with an optional port and no path. Replace the default localhost address. The vault must be able to reach and trust it; Identity assertions and saving per-user JWT settings require this configuration. - Click Identity assertions on the External Vaults tab. Share the issuer and JWKS information with your vault administrator.
- Configure the vault’s JWT authentication method to trust that issuer and JWKS. Bind its role to audience
mistershell-vault:<mnemonic>, set user_claim to email, and grant the intended read permissions. The vault identifies the user by their MisterShell account email address. - Edit the external vault. Choose Per-user JWT identity, enter JWT auth mount without the
auth/prefix, and enter JWT role. Click Save. - In the credential form, enable Require user credential for interactive sessions, open User Credential, select External vault and this vault, and configure a User reference, such as
users/{{ user.email }}/network/{{ resource.name }}for a KV path. - Check the user reference for the intended user and resource before connecting.
Platform references continue using the service identity for onboarding and unattended operations. An interactive user’s identity does not replace it.
Use the exact email address for the vault identity; MisterShell does not turn it into a slug. For paths such as users/{{ user.email }}/network, each email must contain only letters, numbers, _, ., @, or -. Addresses containing other characters, such as + or /, still work for JWT authentication; use a different secret path and grant access to that path in the vault policy. If an email changes or is reassigned, review its vault aliases, permissions, and secret paths so the new owner does not inherit the previous owner’s access. Matching an email does not automatically link identities from different vault authentication methods.
Rotate Signing Key changes the key used to sign new user assertions. Previous public keys remain available for at least 24 hours; vaults must refresh the JWKS. This action does not rotate passwords or other credentials held in the vault.
Caching and secret changes
Cache lifetime (seconds) controls how long MisterShell may temporarily reuse retrieved values: 60 by default, up to 3600. Set it to 0 to read the provider on each resolution. Retrieved values are not permanently stored in MisterShell.
After changing a secret in the external provider, allow the configured lifetime to pass before expecting a new connection to use it. To refresh sooner, run Test saved configuration on the vault; this invalidates its cached reads as well as pending resource verification results, even if the test fails. During a provider outage, testing also discards cached values that might otherwise allow new connections until they expire. A version-pinned mapping continues reading that version until you change the mapping. Existing sessions are not reauthenticated automatically. Unexpired cached values may still be used during a provider outage; disabling the vault blocks reads immediately.
Provider authentication secrets, such as a service token or client secret, are stored encrypted in MisterShell and masked when editing. Literal credential fields are also stored locally. To keep resource passwords solely in the external vault, map those fields instead of entering literal values. Workload identity can avoid saving a provider authentication secret where supported.
Troubleshooting
| Symptom | What to check |
|---|---|
| A create, edit, test, or resolve control is missing or locked | Check the Pro license and your permissions. |
| Saved-configuration test succeeds, but a credential fails | Check the credential’s path, version, field names, and read permissions with Resolve reference. The provider test checks service authentication; it does not validate individual mappings or, for AWS, the Secrets Manager endpoint. |
| Resource or location inputs are required | Supply onboarding sample inputs when testing a reference, or verify it from a resource. Enter any name or connection value used by its template before verification. |
| A secret or mapped field is missing | Check the rendered reference and remote field names, including case. Check that the selected version exists. |
| Access denied or authentication failed | Check service identity permissions, expired tokens/client secrets, or the JWT role’s issuer, audience, and policies. |
| Provider is unavailable | Check Core’s network access, provider health, and TLS trust. An outage or access denial does not fall back to stored local credentials. |
| A changed secret is not used yet | Check the cache lifetime and whether the mapping pins a version. Start a new connection after the cache expires, or ask an administrator to test the saved vault configuration to refresh sooner. Testing also invalidates cached values during an outage. |
| Delete is refused | Reassign or remove the credentials that still reference the vault. |
Table columns
| Column | Notes |
|---|---|
| Name / Provider | Display name and provider type. |
| Status | Enabled or Disabled. |
| Last check / Checked at | Result and time of the saved-configuration test; Never if none has run. |
| Credentials | Number of credentials referencing this vault. |
| Updated | Last configuration change or saved-configuration test. |
| Actions | Test saved configuration, Edit, and Delete, according to permissions. |
Permissions
- View vault configuration and identity assertion information:
app.auth_providers.read. - Create / edit / test vaults, resolve references as an administrator, and rotate the signing key:
app.auth_providers.write. - Delete:
app.auth_providers.delete. - Create / edit credential mappings:
app.credentials.write. Authors can select a vault without access to its authentication secrets or connection settings. - Use onboarding sample locations in a reference check:
app.resources.readat the selected location.
Credential authors can select secrets readable by the configured service identity. Scope that identity’s permissions in the external provider to the secrets intended for MisterShell. Resource access and connection policies still apply when a credential is used.