public class AwsSecretsManagerStore extends Object implements SecretStore
SecretStore implementation for
storing and retrieving secret data from AWS Secrets manager.| Constructor and Description |
|---|
AwsSecretsManagerStore() |
AwsSecretsManagerStore(SecretsManagerClientFactory clientFactory) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String jsonParams)
Fetches the secret from AWS Secrets Manager service.
|
String |
store(String plainTextData)
This function is currently not implemented because the products are not using it to store secrets.
|
public AwsSecretsManagerStore(SecretsManagerClientFactory clientFactory)
public AwsSecretsManagerStore()
public String get(String jsonParams)
{"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.get in interface SecretStorejsonParams - data which has been stored by using store(String)public String store(String plainTextData)
store in interface SecretStoreplainTextData - data in plain text which should be stored securelyCopyright © 2023 Atlassian. All rights reserved.