What’s the Best Way to Secure Environment Variables?

0
16
Asked By CloudyNinja42 On

I'm currently using a setup where we attach a file in our Apache vhost while others have their own .env files. I'm looking for a more secure solution and considering using a secrets manager. My main concern is to ensure that the values of these variables are not exposed to anyone who shouldn't see them.

4 Answers

Answered By DataSafeJoe On

Just a heads-up, if users have access to the host machine, they might still be able to see decrypted environment variables by inspecting the service processes. It’s important to clarify your thread model. Are you using ECS, EKS, Lambda, or just EC2?

Answered By DopplerFan12 On

I’ve been using Doppler, which is free for me as part of my GitHub Student Pack. It works well for managing environment variables securely!

Answered By TechGuru99 On

Using AWS Secrets Manager is a great option for securing your environment variables. You can store all sensitive data there and access it in your application code, which keeps those values hidden from unauthorized users. This way, you eliminate the reliance on .env files and increase your security.

Answered By SecureDev78 On

I recommend going with a secrets manager too, as it's straightforward to retrieve values from it. Plus, you can control who sees what through IAM permissions, which adds another layer of security.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.