Questions tagged [aws-secrets-manager]

AWS Secrets Manager helps encrypt, store, and retrieve credentials for your databases and other services. Instead of hardcoding credentials in apps, you can make calls to Secrets Manager to retrieve credentials whenever needed. Secrets Manager helps protect access to IT resources and data by rotating and managing access to secrets.

See also: What Is AWS Secrets Manager? - AWS Secrets Manager

864 questions
0
votes
1 answer

Pytest Mock AWS SecurityManager

my project has a file called config.py which has, among others, the following code: class Secret(Enum): DATABASE_A = 'name_of_secret_database_A' DATABASE_A = 'name_of_secret_database_A' def secret(self): if self.value: …
0
votes
1 answer

How to stop spring cloud AWS secrets manager trying to load profile based secrets

I'm using spring cloud AWS secrets manager support to load in configuration defined by terraform which creates the application secret defaults. Once adding a policy statement to the services accessing the secret I run into spring not starting as…
Brett Ryan
  • 26,937
  • 30
  • 128
  • 163
0
votes
0 answers

Database connection through aws secret manger

i have secret key for db connection on AWS secret manager. I am retrieving through this code https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/php/example_code/secretsmanager/GetSecretValue.php Now how i connect with DB using this…
0
votes
1 answer

AWS Config Credentials are not being accessed in docker

I setup secret manager on my local system and now I have .aws directory in my windows root directory. And by using the following code, I am retrieving my access-key-id and value. client.getSecretValue({SecretId: secretName}, function(err, data) { //…
0
votes
1 answer

New to terraform - parsing error while trying to integrate with AWS secrets manager

I am trying to integrate with AWS secrets manager using terraform. I am new to terraform but I have looked at numerous examples online and this seems like it should work but I am getting the error: " error parsing local value "master_username" at…
thurmc
  • 495
  • 1
  • 8
  • 29
0
votes
1 answer

Access AWS Secrets Manager secret from AWS Lambda with JS

I created a secret in the AWS Secrets Manager. Trying the example code I got from the AWS Secret manager page does not yield any result. Below is the example code dumbly copied into a javascript AWS Lambda function. In order to make it work, I had…
0
votes
1 answer

Kubernetes injecting secret key as token into a set template file AKS

I have a pod and inside it, i need to override a configuration.txt file that contains id and password to database. For example : when running the application it looks to see if /etc/configuration.txt exists , if not it uses a default id and…
Rory Lester
  • 2,858
  • 11
  • 49
  • 66
0
votes
2 answers

How do you set key/value secret in AWS secrets manager using Ansible?

The following code does not set the key/value pair for secrets. It only creates a string. But I want to create key/value and the documentation does not even mention it.... - hosts: localhost connection: local gather_facts: no tasks: -…
shan
  • 125
  • 3
  • 16
0
votes
1 answer

Javascript jest testing a function that was returned inside an object

I have a function being returned inside an object that I'm trying to have test coverage for. I'm using vanilla JavaScript and Jest. Here's my code... function getDataManager() { const config = conf(env); const { data } = config; if…
dotteddice
  • 271
  • 1
  • 2
  • 9
0
votes
2 answers

AWS secrets manager: how to decrypt data when secret has been rotated?

This question is about the rotation of AWS secrets manager. When creating a secret, you could choose rotation frequency, but I can't figure out how rotation works. Imagine a scenario like the following. You create a secret A1 in aws secret manager,…
Ryan Lyu
  • 4,180
  • 5
  • 35
  • 51
0
votes
1 answer

Trying to configure reading from secrets manager in spring boot and region error thrown

I am attempting to follow the answer here How to integrate AWS Secret Manager with Spring Boot Application also described https://cloud.spring.io/spring-cloud-aws/2.1.x/multi/multi__cloud_environment.html . It appears to be trying to read from…
thurmc
  • 495
  • 1
  • 8
  • 29
0
votes
1 answer

InvalidSignatureException in using GetSecretValue AWS secrets manager API

I am getting Invalid Request with below error message when trying to retrieve secret value using AWS secrets manager REST API GetSecretValue I followed the steps given here…
0
votes
1 answer

AWS Lambda function for oracle password rotation

Hi I am using lambda function for oracle password rotation and am getting the below error once every grants provided: START RequestId: f515ffc3-56d4-4301-96a5-426ab14c68a2 Version: $LATEST [INFO] 2020-05-14T13:54:14.9Z …
0
votes
2 answers

Glue job workaround: call lambda to get secrets. But that doesn't work from Glue (but does from EC2)

I need to get a Python Shell Glue job some database credentials stored in AWS Secrets Manager. This should be simple, but the organization I'm working for seems to have an obfuscatory Secrets Manager role that I so far haven't been able to modify to…
0
votes
1 answer

aws lambda function to support secret manager rotation

I have created a lambda function which I intend to serve as a secret rotation function to be used by the secrets manager, but when I try to add this function as a rotation function in the secrets manager I get the error "Secrets Manager cannot…