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
2
votes
1 answer

Terraform picks up secrets value from AWS secrets manager in wrong format

I have a secrets manager secret like: key: value example: "1.1.1.1/1", "2.2.2.2/2", Now in the plaintext in secrets manager the value shows up like: "\"1.1.1.1/1\", "\"2.2.2.2/2\"", adding these extra \" before and after the values. Now, when I…
devgirl
  • 671
  • 3
  • 16
  • 39
2
votes
0 answers

AWS Secret Manager throws HttpErrorResponseException after many requests

I'm kind lost for a moment I have the following code on .NET 6, and everything looks right, and the application even work well, but after like 100 connection on the API, I always getting the error as…
2
votes
2 answers

The security token included in the request is invalid. When no profile specified

When running this: session = boto3.session.Session() client = session.client(service_name="secretsmanager", region_name='region') secret_response = client.get_secret_value(SecretId='secret_name') print(secret_response) This is the error that I…
2
votes
1 answer

Mock secret manager with pytest

I'm using the default Lambda function to rotate our Aurora password in AWS Code here: https://github.com/aws-samples/aws-secrets-manager-rotation-lambdas/blob/master/SecretsManagerRDSMariaDBRotationSingleUser/lambda_function.py I have to test this…
BigPig89
  • 51
  • 4
2
votes
1 answer

Connect to AWS RDS using AWS Secrets Manager

I'm new to AWS and I tried to use the secrets manager to connect to an RDS database. I managed to do it with spring Datasource but I want the connection to rds to be done using the DB identifier. I don't know exactly how to do it, this is my current…
2
votes
0 answers

Strapi | How to connect in database using async credentials?

I’m need get database credentials from Amazon Aws Secrets in a async call, but the database.ts file is syncronous so an error occur when Strapi try to connect in database: Error: Unknown dialect undefined So my question is: How to connect in…
btd1337
  • 2,616
  • 2
  • 16
  • 25
2
votes
2 answers

Github Secrets are not really secured, how to secure secrets permanently

I don't know why Github secrets are really called secrets, because it can be printed out by any person working in organization with push access, i.e. they create branch use below trick to print secret and then delete the branch, and with snap of…
2
votes
1 answer

mock secret manager using pytest

I am trying to mock secret manager. Here is the code which is written for secret manager using boto3 which I am trying to mock and test. utils.py import boto3 secret_id = os.environ.get("SECRETS") client = boto3.client('secretsmanager') response =…
Lovika
  • 577
  • 2
  • 10
  • 21
2
votes
1 answer

Google Service Account credentials stored in AWS SecretManage

in my Aws EC2 instance, I've a python script that interacts with Google Bigquery to perform several operations. For security reasons, I don't want to use the service account private key as a file in my project, so, I stored it in my AWS Secrets…
2
votes
2 answers

Extract secret value only from SecretString using Ansible amazon.aws.aws_secret

I am trying to get a secret value to a var from AWS Secret Manager using Ansible. My original attempt was as follows: mySecret: "{{ lookup('amazon.aws.aws_secret', 'my/awesome/secret', region='eu-west-2')}}" This returns a value like: {"password" :…
Molenpad
  • 833
  • 2
  • 14
  • 34
2
votes
1 answer

AWS secret manager time out sometimes

I am fetching a secret from secret manager on a lambda. The request fails sometimes. Which is totally strange, it is working fine and couple of hours later I check and I am getting time out. def get_credentials(self): """Retrieve credentials…
2
votes
0 answers

How can I reference json nested value from secret manager via serverless?

I am using serverless to deploy to AWS. And I need to read secrets from secret manager. Below is the syntax it supports. It works fine for a string value. If my secret saved as a json, how can I reference the nested value from json? DARKSKY_APIKEY:…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
2
votes
2 answers

How to use Terraform to store a new secret in AWS Secrets Manager using already KMS-encrypted string?

I need to write Git-revisioned Terraform code to put a secret string into AWS Secrets Manager. Given a secret string in a textfile: % cat /tmp/plaintext-password my-super-secret-password I am able to make an encrypted version of it using a KMS…
2
votes
0 answers

java.lang.NoSuchFieldError: CLIENT_ENDPOINT with amazon ses and secrets manager

Getting this issue while trying to use aws secrets manager and AWS SES. I saw someone mentioning that the SES,secrets manager and ses versions has to be same. tried matching these sdk versions but still no use. Below is the code with all the…
sanketh s
  • 345
  • 1
  • 5
  • 14
2
votes
1 answer

How to create many secrets in AWS secrets manager using terraform

What I want to do is feed a list of key names to a module that will be used to generate many secrets with different random passwords in secrets manager. I have tried many different things but have failed so far. This is what I have currently: module…