Class AWSSecretBackend
java.lang.Object
com.atlassian.secrets.service.aws.AWSSecretBackend
- All Implemented Interfaces:
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAWSSecretBackend(String backendId, AWSSecretBackendConfig config) AWSSecretBackend(String backendId, AWSSecretBackendConfig config, SecretsManagerClientFactory factory) -
Method Summary
-
Field Details
-
AWS_FORCE_DELETE_SECRET_SYSTEM_PROP_KEY
- See Also:
-
-
Constructor Details
-
AWSSecretBackend
-
AWSSecretBackend
public AWSSecretBackend(String backendId, AWSSecretBackendConfig config, SecretsManagerClientFactory factory)
-
-
Method Details
-
seal
- Specified by:
sealin interfaceSecretServiceBackend- Throws:
SecretServiceException
-
unseal
- Specified by:
unsealin interfaceSecretServiceBackend- Throws:
SecretServiceException
-
delete
- Specified by:
deletein interfaceSecretServiceBackend- Throws:
SecretServiceException
-
getType
- Specified by:
getTypein interfaceSecretServiceBackend
-