Skip to content

The AWS Secrets Manager Credential Provider uses the AWS Secrets Manager Credential Provider Integration to retrieve secrets stored in AWS Secrets Manager.

You must have the following to create an AWS Secrets Manager Credential Provider:

This credential provider supports secrets stored in either plain text or JSON formats.

Plain Text Secrets: Aembit retrieves the entire secret value and passes it as the credential.

JSON Secrets: When using the JSON format, the Credential Value Type dropdown determines how the credential provider extracts values:

  • Single: Extracts one value from the JSON using a specified key
  • Username/Password: Extracts two values from the JSON using separate keys for username and password

When you configure a Server Workload to use the AWS Secrets Manager Credential Provider, you must select the appropriate Credential Type based on the secret format.

Accessing AWS Secrets Manager on private networks

Section titled “Accessing AWS Secrets Manager on private networks”

If your AWS Secrets Manager is only accessible from a private network (such as an AWS Virtual Private Cloud (VPC)), enable Private Network Access to retrieve secrets through your Aembit Edge component instead of Aembit Cloud.

For details on when to use Private Network Access, how it works, and troubleshooting, see Private Network Access for Credential Providers.

Username/Password limitation

When you enable Private Network Access, the Username/Password Credential Value Type isn’t supported for HTTP Basic Auth server workloads.

Database protocols (MySQL, PostgreSQL, Redis) work correctly with Private Network Access and Username/Password credentials.

To configure an AWS Secrets Manager Value Credential Provider, follow these steps:

  1. Log into your Aembit Tenant.

  2. Go to Credential Providers in the left sidebar.

    Aembit directs you to the Credential Providers page displaying a list of existing Credential Providers.

    Credential Providers - Main Page Empty

  3. Click + New.

    This opens the Credential Providers dialog window.

  4. Enter a Name and optional Description for the Credential Provider.

  5. For Credential Type, select AWS Secrets Manager Value.

  6. For Credential Provider Integration, select the desired AWS Secrets Manager Credential Provider Integration.

    If you select an integration with Populate Secrets ARNs turned on, the next field changes to a dropdown menu.

  7. In the AWS Secrets Manager Secret ARN field, you have two options depending on the Credential Provider Integration:

    • Without Populate Secrets ARNs - Enter the Amazon Resource Name (ARN) of the AWS Secrets Manager secret that you want to use for this Credential Provider.

    • With Populate Secrets ARNs - Select or search for an existing secret from the dropdown list. Aembit populates this list with the secrets available in your AWS account that match the integration you selected.

  8. For Credential Value Type, select the type of credential you want to retrieve from AWS Secrets Manager.

    The options are:

    • Plain Text - Retrieve the entire secret value as a single credential.
    • Single Value - Retrieve a single value from the JSON secret using a specified key.
    • Username/Password - Retrieve two values from the JSON secret using separate keys for username and password.

    See the Compatible Server Workloads section for details on how each type interacts with Server Workloads.

  9. Depending on the Credential Value Type you selected, additional fields may appear:

    • Secret Key - If you selected Single Value, enter the secret key to extract the value from the JSON secret.
    • Username & Password Key - If you selected Username/Password, enter the key for the username in the JSON secret.
  10. Select Private Network Access if you have restricted your AWS Secrets Manager secret to only allow access from a private network (such as an AWS VPC) and you want to access it through Aembit Edge Components (Aembit CLI or Agent Proxy).

    Once completed, the form should look similar to the following screenshot:

    Credential Providers - Dialog Window complete

  11. Click Save.

    Aembit creates the new AWS Secrets Manager Credential Provider and displays it in the list of Credential Providers. You can now use this Credential Provider with your Server Workloads.