logoalt Hacker News

rowanG077today at 3:39 PM4 repliesview on HN

Doesn't git crypt solve this? You can have encrypted blobs in a repo that will be auto decrypted if you have a working key.


Replies

danudeytoday at 4:47 PM

That depends on you distributing working keys for any components you want to restrict access to, and managing those keys for all users, revoking them when access permissions change, etc. It's a lot more complex, more work, and harder to manage than centralized RBAC or similar.

giancarlostorotoday at 3:44 PM

People don't use git crypt nearly enough unfortunately.

show 1 reply
everforwardtoday at 4:13 PM

Not really, precisely because it’s decentralized. You can’t audit whether a user accessed one of the hidden files, or really even who can access it once you accept the reality of the risk that some team will put a key on S3 or a shared drive or whatever.

It’s fine for things that you want devs to be able to see without the Git host being able to see them, it’s less good at RBAC because there’s no real “identity” component at read-time.

show 1 reply
embedding-shapetoday at 4:07 PM

Git submodules + SSH keys is another (somewhat "homebrew") solution to this.