Class AWSSecretBackend

java.lang.Object
com.atlassian.secrets.service.aws.AWSSecretBackend
All Implemented Interfaces:
SecretServiceBackend

public class AWSSecretBackend extends Object implements SecretServiceBackend
A SecretServiceBackend implementation for storing and retrieving secret data from AWS Secrets manager. The seal(String, String) method will create a secret or update an existing secret. The first parameter is used as the secret ID, the second parameter is used as secret value.

Inversely, unseal(SealedSecret) can be used to retrieve a secret stored in AWS Secrets Manager, where the identifier of the SealedSecret is used as the secret ID. The AWSSecretBackendConfig provided in the constructor is used to specify the region, as well as an option endpoint override or prefix to prepend to all secret IDs. The SecretsManagerClientFactory should only be overridden within automated tests.

Since:
5.0.0