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

How to get all secrets from a different AWS accounts secret manager with Boto3?

I have several EC2 instances on one account. These ec2 instances need to get a all the secrets from the Secrets Manger from another account. I gather from the boto3 documentary, I can only get the secrets of the account a session is associated…
0
votes
3 answers

AWS Secret Manager best Practice

I have having a spring boot dockerize application running inside fargate cluster.This is application uses aurora DB. I want to store DB password and API key in AWS Secret Manager.My idea was to make a API from Application and fetch the secret from…
0
votes
1 answer

How to use AWS ECS to get Database secrets from Parameter Store

I am working on getting a Spring Boot microservice working in AWS using ECS. We want the service to retrieve the database username and password values from Secrets Manager or Parameter Store. We are using all AWS services (CodeCommit, CodeBuild,…
0
votes
0 answers

Starting spring boot application, results in java.lang.RuntimeException

I'm implementing secret manager for rds mysql database for password. It's a spring boot application. While starting up, application is throwing the following error. WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext.refresh -…
shekhar
  • 21
  • 1
0
votes
0 answers

I need to create a username and password for ec2 instance with secrets manager secret

I am standing up a server with cloudformation, I want the user and password for that user to be created on startup. But I do not want the username or password in plaintext via cloudformation script. I want to have a username and password in a secret…
0
votes
1 answer

How to configure Spring Boot application to use AWS Secrets manager VPC endpoint?

I have integrated my Spring boot application with spring cloud aws secrets manager config and it's working. Now, i want the application to use Secrets Manager VPC endpoint instead of public endpoint. How can i do that?
jyharin
  • 1
  • 1
0
votes
3 answers

AWS Secrets Manager Update Secret Request Using AWS-SDK Java

I want to update existing secret's secret string in AWS secrets manager using AWS-SDK for Java. From the example request https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_UpdateSecret.html#API_UpdateSecret_Examples I could figure…
0
votes
1 answer

AWS Secrets Manager password issue in python3 and pystfp

Currently trying to connect sftp server using user credential from AWS secret manager, and password contains double quote special character, which causing the issue. Below is sample code, import sys import boto3 import base64 from…
Ajay Kharade
  • 1,469
  • 1
  • 17
  • 31
0
votes
1 answer

AWS ECS EC2: TaskCanceledException when calling AWS API (connection timed out)

I have set up an AWS ECS cluster with EC2-type container instances. In task definition, there is "SECRETS" environment variable specified with the value corresponding to a particular secret name. Task definition uses awsvpc network mode. In order to…
0
votes
1 answer

Amazon Secrets Manager, Java 7, and CipherSuites

I am trying to get AWS Secrets Manager to work on an older Java 7 platform. Unfortunately we're locked on Java 7 for now. The issue I have is that Java 7 had some security issues with SSL, and most modern Java platforms are using newer…
wdtj
  • 4,554
  • 3
  • 17
  • 20
0
votes
0 answers

Is there any way to override System.Data.SqlClient.SqlConnection?

I am using Secrets Manager to retrieve database credentials and store it in a cache. I was trying to handle a scenario when we do rotation on Secrets Manager, cache should be invalidated as soon as the connection to the database raise an error…
Raymond Natio
  • 556
  • 3
  • 22
0
votes
2 answers

AWS Secrets Manager and Cloud Formation - can not create secret because it already exists

I have a CF template with a simple secret inside, like this: Credentials: Type: 'AWS::SecretsManager::Secret' Properties: Name: !Sub ${ProjectKey}.${StageName}.${ComponentId}.credentials Description: client credentials …
0
votes
2 answers

Assigning permission to single cognito user access to a secret created on AWS's Secret Manager

I have created a secret on AWS's Secrets Manager. I have a python service with cognito authentication, and I want to assign to a particular user permission to get this secret. I created the following policy to allow users to get the secret's…
0
votes
1 answer

Storing a Database Connection String in AWS Fargate Container

Right now I have a container for an API that I am looking to push to an AWS Fargate instance that has a connection string for a DB on a privately hosted server. For testing this has been stored in a string in my Golang program, but I don't really…
Thingable
  • 55
  • 2
  • 9
0
votes
1 answer

How to set value to a property present in application.properties for Spring boot

I have ssl enabled for my spring boot application. I am fetching the keystore password from AWS Secrets Manager through a class in my application. How do I refer to this password in my application.properties?