Logo

dev-resources.site

for different kinds of informations.

What is the secure way to store environment variables?

Published at
6/12/2023
Categories
javascript
node
encrypt
help
Author
cryogon
Categories
4 categories in total
javascript
open
node
open
encrypt
open
help
open
Author
7 person written this
cryogon
open
What is the secure way to store environment variables?

So I was working on project with someone else. I was just using .env file to store secrets but then he told me that it's not the secure way to store secrets. So after digging around the internet I found AWS KMS and used to to encrypt the secret but now I'm in the same situation since I ended up with apiKeyId and apiSecretAccessKey. Now how to I store those even if I encrypt these keys two but then I will again end with some encryption key and so on.
So can anyone help me understand how to go around about it.

And Also If some attacker breached my server what could be some step which could be taken to prevent or at least minimize that

encrypt Article's
25 articles in total
Favicon
Encrypt/Decrypt Data between Python 3 and JavaScript (AES algorithm)
Favicon
HideIPVPN: Unblock, Encrypt, & Explore Freely
Favicon
Encrypt Password Laravel
Favicon
Introduction to the Principles of JavaScript Encryption and JavaScript Obfuscation
Favicon
What is the secure way to store environment variables?
Favicon
Java 01 - Jasypt: Protegendo dados sensรญveis com criptografia.
Favicon
How to encrypt a text using Python (key and text) and decrypt that cipher in JavaScript using the same key.
Favicon
Differences Between HTTP and HTTPS?
Favicon
Managing and sharing secrets in a Git repository with Keybase
Favicon
How To Encrypt And Decrypt String In Laravel 9
Favicon
PGP - Create a Public/Private Key Pair(Part 2)
Favicon
PGP - Introduction Encryption and Decryption (Part 1)
Favicon
๐Ÿ”How to encrypt variables in NodeJS
Favicon
Java - How to Encrypt or Decrypt PDF Documents
Favicon
backup the .env files to git/gist/dropbox in old school way!
Favicon
Protect Python Source Code
Favicon
Python Encrypt Source Code Online
Favicon
Top 15 Modules 2022: Encrypt and Decrypt String Python
Favicon
Email Encryption: What it is, How Does It Work, and How to Encrypt an Email
Favicon
Add Https to Azure Web App with Let's Encrypt
Favicon
Ansible Vault Quick Start
Favicon
Nginx configures free SSL certificate in Windows environment (Letโ€™s Encrypt)
Favicon
Encrypt/ Decrypt PDF Files in Java Application
Favicon
How to use GnuPG for encrypting files on MacOS
Favicon
Protect presentation slides in Java

Featured ones: