DEV Community

Hanane Kacemi
Hanane Kacemi

Posted on

Postman and AWS secrets Manager

Recently, the project (website) I am working on was attacked :( we decided it's time to analyse the code to find if there is any vulnerabilities to correct in order to improve the security (so we postpone the work that we had plan to do to implement new features). We were shocked to discover that many credentials that we use to access API are hardcoded in the application! we have decided to use AWS Secrets Manager in order to manage different passwords of API used in our app.

I never worked with AWS Secrets Manager, so it was for me the opportunity to use it. Here is the first steps that allow me to retrieve my password from AWS Secrets Manager using Postman :

  1. I created a pair of value, key at AWS Secrets Manager, it's simple and well explained at this link :

  2. In order to access to the value stored, I added a Permission Policy SecretsManagerReadWrite, more information at the documentation :

  3. Everything is ready to test retrieving the value via Postman :
    the Endpoint :

In the body, I specified the secretId that I took from AWS Secrets Manager:

and voila, the result :

Top comments (0)