---
name: secrets-manager-getting-started
title: Getting started with Secrets Manager
description: This tutorial focuses on storing and managing a username and password in IBM Cloud&reg; Secrets Manager. With Secrets Manager, you can create, lease, and centrally manage secrets that are used in IBM Cloud services or your custom-built applications. Secrets are stored in a dedicated Secrets Manager instance, built on HashiCorp Vault.
last-updated: 2026-07-09
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/secrets-manager?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

{:codeblock: .codeblock}
{:screen: .screen}
{:download: .download}
{:external: target="_blank" .external}
{:faq: data-hd-content-type='faq'}
{:gif: data-image-type='gif'}
{:important: .important}
{:note: .note}
{:pre: .pre}
{:tip: .tip}
{:preview: .preview}
{:deprecated: .deprecated}
{:beta: .beta}
{:term: .term}
{:shortdesc: .shortdesc}
{:script: data-hd-video='script'}
{:support: data-reuse='support'}
{:table: .aria-labeledby="caption"}
{:troubleshoot: data-hd-content-type='troubleshoot'}
{:help: data-hd-content-type='help'}
{:tsCauses: .tsCauses}
{:tsResolve: .tsResolve}
{:tsSymptoms: .tsSymptoms}
{:video: .video}
{:step: data-tutorial-type='step'}
{:tutorial: data-hd-content-type='tutorial'}
{:api: .ph data-hd-interface='api'}
{:cli: .ph data-hd-interface='cli'}
{:ui: .ph data-hd-interface='ui'}
{:terraform: .ph data-hd-interface="terraform"}
{:curl: .ph data-hd-programlang='curl'}
{:java: .ph data-hd-programlang='java'}
{:ruby: .ph data-hd-programlang='ruby'}
{:c#: .ph data-hd-programlang='c#'}
{:objectc: .ph data-hd-programlang='Objective C'}
{:python: .ph data-hd-programlang='python'}
{:javascript: .ph data-hd-programlang='javascript'}
{:php: .ph data-hd-programlang='PHP'}
{:swift: .ph data-hd-programlang='swift'}
{:curl: .ph data-hd-programlang='curl'}
{:dotnet-standard: .ph data-hd-programlang='dotnet-standard'}
{:go: .ph data-hd-programlang='go'}
{:unity: .ph data-hd-programlang='unity'}
{:release-note: data-hd-content-type='release-note'}


# Getting started with Secrets Manager
{: #getting-started}
{: toc-content-type="tutorial"}
{: toc-services="secrets-manager"}
{: toc-completion-time="10m"}



This tutorial focuses on storing and managing a username and password in IBM Cloud&reg; Secrets Manager. With Secrets Manager, you can create, lease, and centrally manage secrets that are used in IBM Cloud services or your custom-built applications. Secrets are stored in a dedicated Secrets Manager instance, built on HashiCorp Vault.
{: shortdesc}

Looking for a different secret type? You can also [create Identity and Access Management (IAM) credentials](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-iam-credentials&format=markdown) to access an IBM Cloud resource, or you can [add arbitrary secrets](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-arbitrary-secrets&format=markdown) that can hold structured or unstructured data.
{: tip}

## Before you begin
{: #gs-prereqs}

Before you begin, be sure to [create a Secrets Manager service instance](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-create-instance&format=markdown) in your IBM Cloud account. To complete this tutorial, you need the [**Manager** service role or higher](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-iam&format=markdown).

## Choose a type of secret
{: #gs-secret-type}
{: step}

You can get started with Secrets Manager by choosing the type of [secret](#x2789492){: term} that is required by the resource that you want to access. For this tutorial, complete the following steps to select a secret that contains a username and password.

1. In the console, go to **Menu** ![Menu icon](../icons/icon_hamburger.svg) **> Resource List**.
2. From the list of services, select your instance of Secrets Manager.
3. In the **Secrets** table, click **Add**.
4. Select the **User credentials** tile.

    You're all set to enter the details of your new secret. To describe and store your secret, continue to the next step.

## Store the secret securely
{: #gs-add-secret}
{: step}

When you're working with secrets, it's important to organize them in a single location so that you help to reduce the risk of compromised credentials. By storing a secret in Secrets Manager, you can manage a secret centrally, use [secret groups](#x9968962){: term} to control access, and avoid coding it directly into your apps or version control systems.

Complete the following steps to enter the details of a secret and store it securely in your instance.

1. In the **Add user credentials** page, add a name and description to easily identify your secret.
2. Add the secret to a group to control who on your team has access to it.

    You can click **Create** to provide a name and a description for a new group. Later, you can assign an access policy to the group so that you control who on your team has access to its contained secret.
3. Optional: Add labels to help you to search for similar secrets in your instance.
4. Supply the username and password values that you want to associate with the secret.
5. Optional: Set an expiration date for the secret.
6. Click **Add**.

    You did it! The username and password are now stored in your dedicated, single-tenant instance of Secrets Manager.

## Manage its lifecycle
{: #gs-manage-lifecycle}
{: step}

After you add a secret to your instance, you can establish a regular cadence for managing its lifecycle. For example, you might need to adhere to an internal requirement or regulatory control in your business for rotating secrets every 30 days.

1. In the **Secrets** table, click the **Actions** menu ![Actions icon](../icons/actions-icon-vertical.svg) to open a list of options for your secret.
    1. To view and edit details about the secret, click **Edit details**.
    2. To rotate the secret, click **Rotate**.
    3. If you no longer need the secret, click **Delete**.

## Next steps
{: #gs-next-steps}

Now you can add more secrets and design a secrets management strategy to control who has access to them.

- To find out more about organizing secrets, check out [Best practices for organizing secrets and assigning access](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-best-practices-organize-secrets&format=markdown).
- To find out more about rotating secrets, check out [Best practices for rotating secrets](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-best-practices-rotate-secrets&format=markdown).