• floquant@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    15 hours ago

    Hmm not natively but I think you could hack something together using git plumbing, perhaps just some hooks. I would still advise against adding secrets to version control even if it stays completely local though, it’s still “bad hygiene” and something you should try to avoid. You don’t need to go with a full-fledged secret management solution, just keep your secrets in .envs or similar external files and use a password manager to store your live keys. Of course it all depends on the specific context, if it’s something bound to loopback I’m not going to stop you from running admin:admin and committing that to your personal docker-compose stash, but if it’s protecting something you care about don’t put it in git.