this post was submitted on 14 Dec 2023
36 points (100.0% liked)

Selfhosted

39940 readers
430 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi everyone, I was perusing through Conjur and Vault documentation, since I'm starting to think that learning a secret-management system might be a worthwhile investment with the app secrets and SSH keys and CA certificates around.

I was wondering, what do you use in your network? I plan to take a look at Teleport's documentation too, was curious about what the community uses at home.

Thanks!

all 19 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 10 months ago (1 children)

I’m using sops with my GPG key currently.

[–] [email protected] 3 points 10 months ago

That's new, haven't heard of that before. Thanks

[–] [email protected] 4 points 10 months ago (5 children)

I'm using pass at home, but I've used hashicorp vault at a few jobs with great success.

IBM just forked it to openBao as well to get around the business license, if that's a concern for your. But honestly I'd trust hashicorp more than IBM at this point.

[–] jmd_akbar 5 points 10 months ago (1 children)

Please excuse the absolute newbie question - What's "pass"?

[–] [email protected] 4 points 10 months ago (1 children)

Pass for personal use is great. Especially if paired with a self hosted private git repo like gitea.

Pass works well on all platforms I've tried, even android and wsl (although I've not tried with iPhone).

In a corporate setting. The biggest questions is going to be if there is already a secret store that has an API. If security will let you roll your own. How is it allowed to be networked. Who are the preferred vendors and is there any enterprise support available.

[–] [email protected] 1 points 10 months ago (1 children)

Pass works decently for us (fine except for the GPG key management aspect really) and allows us to have our Puppet config management write new secrets easily and read secrets for config file generation and similar purporses.

[–] [email protected] 1 points 10 months ago (1 children)

How do you securely authenticate, restrict access to secrets and store secrets with pass? Other than GPG authentication and discrete keys for different secrets (in which case, how would you automate key policies and life cycles?)

[–] [email protected] 2 points 10 months ago

We do use GPG keys that are essentially signed by one of our admin keys which is set to fully trusted on the client machines so that keys it signs are trusted with just the one signature. The keys themselves are generated with revocation certificates for those admin keys and a limited lifetime as well by our helper script. The signed keys are stored in the pass repository in a separate folder and the helper script has an idempotent import command which also checks a few other settings and common issues and generates missing revocation certificates after an admin key is replaced. Any automated changes in the repository itself (such as updating the .gpgid files in project directories to include all project members and reencryption afterwards) are made by our puppet master.

It certainly isn't perfect but it works well enough.

[–] [email protected] 2 points 10 months ago

Indeed, I had heard of OpenBao recently. If it's a Vault replacement, I'm assuming good support with API and orchestration tools. I'll check it out, thanks.

How is pass treating you?

[–] [email protected] 1 points 10 months ago

If you like pass, you might want to look into passage

[–] [email protected] 1 points 10 months ago (1 children)

Does pass have an API I can use in Ansbile/Terraform/IaC tools?

[–] [email protected] 1 points 10 months ago (2 children)

It's a cli tool, so you can call it within another call using dollar sign syntax

terraform apply --var "myvalue=$(pass path/to/value)"
[–] [email protected] 1 points 10 months ago
[–] [email protected] 1 points 10 months ago (1 children)

Could you tell me how I can use pass whilst authenticating an application with something akin to identities? I.e. I need application 1 to be able to access a certain key but I don't want application 2 to be able to do so. How would I be able to restrict access to keys?

A bit about the scenario: I will be running this in a VM which will act as my central password suite on the network, which I will access using a password/keys.

[–] [email protected] 1 points 10 months ago (1 children)
[–] [email protected] 1 points 10 months ago

I might actually have to use Conjur for temporary credentials in my network. Thanks