Show HN: From dotenv to dotenvx – better config management
41–50 of 223 posts
Re: Show HN: From dotenv to dotenvx – better config management
#42Earlier quoted context omitted.
This just moves the problem to a different step. How are you going to manage access to said secrets, especially when your application lives off premises?
Many hosting environments give you this. For example AWS gives you multiple ways of injecting secrets as env vars into your containers when they boot up (ECS + secrets manager, EKS, etc)
Re: Show HN: From dotenv to dotenvx – better config management
#43Re: Show HN: From dotenv to dotenvx – better config management
#44Can a kind soul point me some documentation on how to put .env in a vault correctly? Possibly open-source solutions? If the vault is password protected, aren't you just adding one more indirection and nothing more? How is that helpful, since now I have to write the vault password in clear-text somewhere such that my application can read the env file from the vault?
At no point does the application have access to the vault itself, and access to read the vault is guarded by IAM role permissions.
Re: Show HN: From dotenv to dotenvx – better config management
#45I suppose if you don’t want it to stay after execution i believe you can:
> $(source .env; my command)
I’m sure there is a fairly straightforward way to encrypt and decrypt a local fileRe: Show HN: From dotenv to dotenvx – better config management
#46Can a kind soul point me some documentation on how to put .env in a vault correctly? Possibly open-source solutions? If the vault is password protected, aren't you just adding one more indirection and nothing more? How is that helpful, since now I have to write the vault password in clear-text somewhere such that my application can read the env file from the vault?
A lot of modern cloud deployments read from a secret management system or vault at deployment time, and the secrets are made accessible to the application through various indirect methods so they cannot be accessed later on (i.e. if someone were to gain access to a running Kubernetes container). At no point does the application have access to the vault itself, and access to read the vault is guarded by IAM role permi…
I hope someone can do me a ELI5.
Re: Show HN: From dotenv to dotenvx – better config management
#47Re: Show HN: From dotenv to dotenvx – better config management
#48Re: Show HN: From dotenv to dotenvx – better config management
#49[flagged]
Re: Show HN: From dotenv to dotenvx – better config management
#50Earlier quoted context omitted.
This just moves the problem to a different step. How are you going to manage access to said secrets, especially when your application lives off premises?
I've always wondered this. Seems like a password to get more passwords is potentially actually less secure (as in practice people will reuse master keys and they might actually increase the surface area, or make it a persistent threat after the keys themselves rotate)
Typically the application instance sessions are automatically rotated very frequently, AWS’s sessions are limited to 6 hours for example.