Fl4m3Ph03n1x

Fl4m3Ph03n1x

Background

I am doubling a little bit as a DevOps in the company where I am now. Recently I showed them the 12 factor app standard, that specifies you should not have your ENV, config and passwords inside your git repository together with your project - you should store them in a safe place instead.

Research

After some research we came across Vault however our team manager now thinks this is quite overkill and will soon become a monster.

Torus seemed a good alternative but the install page doesn’t even work, will be payed and it looks like it only runs for Node.

I also read this discussion but there is no definitive answer:

Questions

  1. What tools do you use to store your secrets?
  2. How do you your apps access them?

Showing Posts 1 to 10

theangryangel

theangryangel

Currently smaller projects get deployed via anisble, secrets stored in ansible-vault (which is not the same as hashicorp vault!). These get written to a file as environment variables (which the systemd unit reads) and then that’s restricted via file system permissions (only root and application user can read the file). It’s not perfect, but does give you good starting point before heading to things like hashicorp Vault imho

jhosteny

jhosteny

Using ansible-vault is a good starting point, but if you have more than a few secrets, or need to generate things like certs for inter-service TLS, I’d recommend the investment in Hashicorp Vault. It really is invaluable, especially when coupled with something like envconsul.

If you stick with ansible-vault, I’ve found this to be helpful. Otherwise, it is easy to forget where vaulted vars are, and grep does you no good since they are encrypted at rest. Be sure to keep those refs close to where the actual vaulted vars are.

axelson

axelson

Scenic Core Team

We run on Heroku so the 12 factor app approach has been working quite well

ryanwinchester

ryanwinchester

I don’t know why nobody ever seems to talk about it, but I use AWS Parameter Store.

Maybe I should write ablog post about it… `¯\(ツ)/¯

acrolink

acrolink

But this can be used in the context of AWS only? Correct? Cannot be used for applications hosted at other cloud providers?

acrolink

acrolink

Any updates on the topic, what is the best way to store secrets e.g. encryption keys for Elixir applications?

dimitarvp

dimitarvp

PaintingWithCode

PaintingWithCode

Hush supports AWS, GCP and local env variables in a pluggable manner with the option to extend with custom providers too.

Adzz

Adzz

On some projects I use GitHub - Adzz/gcp_secret_provider: A configuration provider that pulls secrets from GCPs Secret Manager on App boot. · GitHub which is a config provider that reads in secrets when the app starts.

Generally reading in the secret from Google Secret Manager (on GCP) when the app starts has been working well for me.

AndyL

AndyL

Mozilla Sops is a nice tool. Encrypted secrets stored in YAML/JSON, keys in plaintext, values encrypted with one or more of AWS KMS, GCP KMS, Azure Key Vault, PGP. Encrypted datafile can be checked into the repo. Supports diffing.

Where Next? Top

Trending in Discussions Top

cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
515 12931 101
New
wmnnd
Hey folks, I wanted to share with you a project I’ve been working on for a while: It’s an Open Source (AGPLv3) newsletter tool. Think Ma...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
Ganna
Hi everyone, I have 8 years of production experience with Erlang/OTP and I’m just starting to get to know Elixir. What would you learn f...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New
AstonJ
A remark @Garrison made… ..has already inspired a thread for the technical side of reclaiming our internet, but there is of course anot...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews