remram 1 day ago

You're describing a private repo. GitHub/GitLab/... have that.

2
erinaceousjones 21 hours ago

We started using git-crypt hurriedly and out of necessity/paranoia from the time we heard that our GitLab instance could've been compromised due to a "anyone can be admin" class exploit that had just been disclosed. This must've been a fair few years ago.

Don't trust private repos to be private!

ratorx 1 day ago

Not exactly. A private repo is entirely private. You might have an open source project which has some deployment secrets etc that you want to check in to git. All the code and config is perfectly safe to expose to the internet, but you want to hide a specific file.

I think this pattern was common for things like Ansible and Terraform configs and dotfiles.

remram 1 day ago

So a private submodule?

My point is, don't use an end-to-end encryption scheme if you want more than the ends decrypting it.

richbell 1 day ago

I believe git-secret[0] does what you describe. The author of Lunar[1] uses it to hide the private elements in a public repo.

[0]: https://sobolevn.me/git-secret/

[1]: https://github.com/alin23/Lunar/