agebox icon indicating copy to clipboard operation
agebox copied to clipboard

End to end dotenv encryption tutorial

Open evangineer opened this issue 9 months ago • 2 comments

Agebox looks like a really good project. I discovered it yesterday and it should be ideal for my use case which is to encrypt an entire .env using age and then decrypt and retrieve all of the env vars.

However, being new to age and agebox, I was not able to pull all the pieces together to make it work.

Would it be possible for you to create an end to end tutorial that covers this very common use case, starting with key creation and moving onto .env encryption?

This is so needed, here's proof: https://github.com/djenko-it/mattermostbehindtraefik/issues/1

evangineer avatar Mar 06 '25 11:03 evangineer

I'm finding this useful for figuring out how to correctly setup age public keys for agebox.

https://github.com/slok/agebox-test

I now have a .env.agebox file.

evangineer avatar Mar 06 '25 16:03 evangineer

And I was able to decrypt once I implemented AGEBOX_PRIVATE_KEYS as per: https://github.com/slok/agebox?tab=readme-ov-file#private-keys

evangineer avatar Mar 06 '25 16:03 evangineer