Browse through the questions and answers listed below or filter and sort to narrow down your results.
1
answers
0
votes
6
views
asked 14 days ago
0
answers
0
votes
1
views
asked a month ago
2
answers
0
votes
7
views
asked a month ago
1
answers
0
votes
7
views
asked a month ago
How does an EC2 instance assume an IAM Role?
I am working through the Security Learning Plan and was recently watching the video about AWS Secrets Manager.
The real question that concerns me is why using AWS Secrets Manager is better than say, store encrypted credentials in a config file. I know that there are a couple of aspects where Secrets Manager is obviously a lot better than a config file (credential rotation, central point of maintenance of credentials) but these don't answer my question.
To clarify, let me give you an example. Let's say I have an EC2 instance running Tomcat and Tomcat needs credentials to connect to a DB. I store the creds in Secrets Manager and use the Java API to let Tomcat retrieve them. I guess (I didn't try it out yet) I need to grant the required permissions to the EC2 instance by assigning it an IAM role with appropriate permissions (maybe this assumption is incorrect, if so, how would I do it instead?). And now come my questions:
1. How does Secrets Manager know the credential request is legimitate?
2. How will the HTTP Query Tomcat sends authenticate against Secrets Manager?
3. Will Secrets Manager see that a Java process is querying or will it only see a request coming from instance i-something?
4. If the answer of 3 is "Secrets Manager sees only the instance querying" then how can I prevent another process on the same box querying the DB creds? If I chose the solution with the config file one of the major security drawbacks is that any intruder on the box can read the files, reverse the code the encrypts the creds and decrypt them. I would like to know if Secrets Manager provides a good solution for this fundamental problem.
I didn't find any posts discussing this in the required detail (e.g. [https://repost.aws/questions/QUAsOpdhR-QAKVZEL0nRGTkw/aws-secrets-manager-with-boto-3-in-python](https://repost.aws/questions/QUAsOpdhR-QAKVZEL0nRGTkw/aws-secrets-manager-with-boto-3-in-python)).
I hope I explained the problem well enough. Thanks for every answer.
Accepted AnswerAWS Identity and Access Management
2
answers
0
votes
9
views
asked 2 months ago
2
answers
0
votes
4
views
asked 2 months ago