Setting up your Vault Dedicated instance

In this tutorial, you learn how to set up a Vault Dedicated plan instance of IBM Cloud® Secrets Manager by provisioning the instance, retrieving its endpoints, and opening the Vault Web UI for initial configuration.

The Vault Dedicated plan delivers Vault Enterprise as a managed service in IBM Cloud. After your instance is provisioned, you can use the instance dashboard to find connection details and open the Vault UI to begin configuring your Vault environment.

The Vault Dedicated plan is currently available as a public beta. Beta features are provided for evaluation and testing purposes and have limitations compared to generally available features.

Vault Dedicated public beta limitations

During the public beta period, the Vault Dedicated plan has the following temporary restrictions:

  • Instance limit: Only 1 Vault Dedicated instance per account during beta.
  • No upgrade path: Cannot upgrade from beta to GA. All beta instances will be deleted before general availability.
  • Regional availability: Available in Dallas and Frankfurt.
  • Free during beta: No charges apply during the beta period.
  • Beta to GA migration: Data migration from beta instances to GA instances is not supported.

These limitations are temporary and apply only during the public beta period. It will be removed or modified when the Vault Dedicated plan reaches general availability.

Before you begin

Before you begin, make sure that you have an IBM Cloud account and the required IAM access to work with the service.

You need the following roles:

Provision a Vault Dedicated plan instance

Create a Vault Dedicated plan instance from the IBM Cloud catalog.

  1. In the IBM Cloud console, go to the Catalog.

  2. Select Secrets Manager.

  3. Choose the Vault Dedicated plan.

  4. Configure the instance:

    • Select a deployment region.
    • Enter a unique instance name.
    • Select a resource group.
    • Choose either service-managed encryption or customer-managed encryption by using Key Protect.
    • Select private-only endpoints, or enable a public endpoint if required.

    If you select private-only endpoints, note the following requirements before you try to connect:

    If you plan to use both Standard and Vault Dedicated plan instances, adopt a naming convention that makes the instance type easy to identify, such as including -standard or -vault dedicated in the instance name.

  5. Click Create.

Provisioning typically completes within a few minutes, but it can take up to 15 minutes.

For more information about provisioning an instance, see Creating an instance.

Open the Vault Web UI

Open the native Vault Web UI directly from the instance dashboard to begin your initial configuration. The experience depends on your IAM role.

  1. In the Secrets Manager instance dashboard, click Launch Vault Web UI.

If you have the IAM Manager role, your browser redirects you directly to an authenticated Vault Web UI session. You can immediately begin configuring your Vault environment.

If you do not have the IAM Manager role, your browser redirects you to the native Vault Web UI login screen. Authenticate by using a Vault token or another authentication method that your Vault administrator has provisioned for you.

The Vault session is backed by a 1-hour, non-renewable admin token. The Vault Web UI automatically logs you out when the token expires. To start a new session, return to the instance dashboard and click Launch Vault Web UI again.

Generating an admin token for CLI or API access

You can generate a plain admin token for direct API or CLI use, or a wrapped token for secure, single-use access to the Vault Web UI.

Plain admin token

To generate a plain Vault admin token, run the following command. The token is valid for an hour and is non-renewable. Store it securely and revoke it as soon as you no longer need it.

ibmcloud secrets-manager-instance-management admin-token-create --id {instance_id}

Wrapped admin token (for Vault Web UI login)

To open the Vault Web UI without exposing the real admin token, generate a wrapped token and navigate to the Vault UI URL in your browser.

ibmcloud secrets-manager-instance-management admin-token-create \
  --id {instance_id} \
  --response-wrapping true

Navigate to the following URL, replacing {vault_ui_endpoint} with the vault_ui value from your instance endpoints and {wrapping_token} with the value returned by the command:

https://{vault_ui_endpoint}/ui/vault/auth?wrapped_token={wrapping_token}

The Vault UI automatically unwraps the token and establishes an authenticated session. The wrapping token is single-use and expires after 30 seconds.

The Vault session is backed by a 1-hour, non-renewable admin token. The Vault Web UI automatically logs you out when the token expires. To start a new session, generate a new wrapped token and navigate to the URL again.

Generating an admin token for CLI or API access

Plain admin token

To generate a plain Vault admin token, omit the request body, send an empty object {}, or set response_wrapping to false. The token is valid for 1 hour and is non-renewable.

curl -X POST \
  -H "Authorization: Bearer {iam_token}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{}' \
  "https://{region}.secrets-manager.cloud.ibm.com/v2/instances/{id}/admintokens"

A successful request returns HTTP 201 Created:

{
  "token": "hvs.CAESIJ..."
}

Wrapped admin token (for Vault Web UI login)

To open the Vault Web UI without exposing the real admin token, generate a wrapped token.

curl -X POST \
  -H "Authorization: Bearer {iam_token}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"response_wrapping": true}' \
  "https://{region}.secrets-manager.cloud.ibm.com/v2/instances/{id}/admintokens"

A successful request returns HTTP 201 Created with a wrapped_token field. Navigate to the following URL in your browser to open an authenticated Vault Web UI session:

https://{vault_ui_endpoint}/ui/vault/auth?wrapped_token={wrapped_token}

The wrapping token is single-use and expires after 30 seconds.

The Vault session is backed by a 1-hour, non-renewable admin token. The Vault Web UI automatically logs you out when the token expires. To start a new session, request a new wrapped token and navigate to the URL again.

Generating an admin token with Terraform

To generate a Vault admin token with Terraform, use the ibm_sm_admin_token resource. The token is valid for 1 hour and is automatically refreshed when it is close to expiry. Use the token to authenticate directly to the Vault API.

resource "ibm_sm_admin_token" "sm_admin_token" {
  instance_id = "bfc50c2e-d66d-4f37-9ccf-9713f8325b39"
}

After the resource is created, the Vault admin token is available in the token attribute.

Revoke the admin token

After you finish the initial setup, revoke any active admin tokens to help reduce the risk of unintended access.

Revoking admin tokens in the UI

  1. In your Secrets Manager instance dashboard, click Revoke in the Revoke all admin tokens section.
  2. Confirm the revocation when prompted.

Revoking the token immediately invalidates it and helps reduce the risk of unintended access.

Revoking admin tokens from the CLI

To revoke all active Vault admin tokens by using the IBM Cloud CLI, run the following command.

ibmcloud secrets-manager-instance-management admin-tokens-delete --id {instance_id}

This operation immediately invalidates all admin tokens, requiring new tokens to be generated for future administrative access.

Revoking admin tokens with the API

curl -X DELETE \
  -H "Authorization: Bearer {iam_token}" \
  "https://{region}.secrets-manager.cloud.ibm.com/v2/instances/{id}/admintokens"

A successful revocation returns a 204 No Content status code.

Next steps

After you sign in to Vault, you can continue with the initial configuration of your instance.