> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-mintlify-c74cb75a.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring and Fetching Secrets

<Note>
  Starting from Bruno v4.0.0, secret manager configuration has moved from **Collection > Secrets** to **Environment > External Secrets**.
</Note>

1. Go to **Environment** > **External Secrets** and select **AWS Secrets Manager**

<img src="https://mintcdn.com/bruno-a6972042-mintlify-c74cb75a/gzBEQzDtiQXT21Y4/images/screenshots/v4/secret-managers/external-secret-overview.webp?fit=max&auto=format&n=gzBEQzDtiQXT21Y4&q=85&s=2e0c2ffb881b163b4dc7991551ea8ce6" alt="external-secret-overview" width="2602" height="1214" data-path="images/screenshots/v4/secret-managers/external-secret-overview.webp" />

2. You will see the configured **Secret Manager** accounts list from **Preferences** settings. Select the **AWS Secrets Manager** account you want to use.

* Use **Add new account** button to add a new AWS Secrets Manager account

<img src="https://mintcdn.com/bruno-a6972042-mintlify-c74cb75a/gzBEQzDtiQXT21Y4/images/screenshots/v4/secret-managers/aws-account-config.webp?fit=max&auto=format&n=gzBEQzDtiQXT21Y4&q=85&s=d4765180502804d16c1d9f3bbd98eb5a" alt="aws-account-config" width="2602" height="1040" data-path="images/screenshots/v4/secret-managers/aws-account-config.webp" />

3. Enter a **Name** and the **AWS Secret Name or ARN** for the secret you want to fetch.

   * **Name** - the alias used to reference the secret in Bruno, e.g. `apiCredentials`
   * **AWS Secret Name / ARN** - the exact secret name or full ARN, e.g. `prod/api-key` or `arn:aws:secretsmanager:us-east-1:123456789012:secret:prod/api-key`

4. Click the **Fetch Secrets** button in the top-right corner.

5. The fetched secret keys and their values appear in the **Secret Keys** column.

Use three dots menu to:

* **Edit account** to edit the account details
* **Remove secret manager** to remove the secret manager configuration

<img src="https://mintcdn.com/bruno-a6972042-mintlify-c74cb75a/gzBEQzDtiQXT21Y4/images/screenshots/v4/secret-managers/aws-edit-account.webp?fit=max&auto=format&n=gzBEQzDtiQXT21Y4&q=85&s=a8202d9977ff51e00149f6e96f5dfcba" alt="aws-edit-account" width="2602" height="1040" data-path="images/screenshots/v4/secret-managers/aws-edit-account.webp" />
