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.
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.