Package com.atlassian.secrets.store.aws
Class AwsSecretsManagerStore
java.lang.Object
com.atlassian.secrets.store.aws.AwsSecretsManagerStore
- All Implemented Interfaces:
SecretStore
A
SecretStore implementation for
storing and retrieving secret data from AWS Secrets manager.- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AwsSecretsManagerStore
-
AwsSecretsManagerStore
public AwsSecretsManagerStore()
-
-
Method Details
-
get
Fetches the secret from AWS Secrets Manager service. The configuration parameters are passed as a JSON string with expected structure. The following parameters are supported:- region (required)
- secretId (required)
- secretPointer
- endpointOverride
{"region": "ap-southeast-2", "secretId": "mySecret/production", "secretPointer": "/password"}Note that in case the secret pointer is missing forward slash, it will be added automatically. This is due to easy misconfiguration.- Specified by:
getin interfaceSecretStore- Parameters:
jsonParams- data which has been stored by usingstore(String)- Returns:
- secret value from the AWS Secrets Manager
-
store
This function is currently not implemented because the products are not using it to store secrets.- Specified by:
storein interfaceSecretStore- Parameters:
plainTextData- data in plain text which should be stored securely- Returns:
- a string representing the stored secret to be saved in the configuration file
-