MHN
Add a comment on Hacker News →
8 of 433 comments
  1. If you really need to commit private files to GitHub, use Turbocrypt https://github.com/jedisct1/turbocrypt/blob/main/docs/git.md

  2. I keep all my creds in a password manager (1Password in my case) and Claude can’t see them - when a cred is needed it runs a script that calls the op CLI and I tap my fingerprint for access. Sometimes I need to do it a bunch of times for complex operations, but it’s worth it.

    1. I refuse to use op cli because of the absolutely bunkers security model that’s a wontfix:

      https://news.ycombinator.com/item?id=45478553

      https://codeberg.org/manchicken/1password-cli-vuln-disclosur...

      Risk of exposing a single credential is nothing compared to the risk of exposing everything through op cli’s expected behavior. Has there been any improvement on this?

      1. I read up and that vuln and it’s not the behavior I see. Any read operation to any key in any vault requires auth. Even if the vault is “open” it still asks me every time.

        1. This is false, I just ran my own thorough reproduction script on macOS with latest 1Password app and op cli. Approve a prompt once in a shell session, and all subsequent read attempts of any other secret in that vault from the same shell session (including from subprocesses) don’t result in additional prompts within the time threshold. It’s not at all granular.

  3. I still don't understand why people are using GitHub for their vibecoded projects. Just install git locally on your own NAS and control it there. What a weird fetish to publish online.

  4. Here is how to solve this:

    Use a private dev repo and do all your dev inside it.

    Releases go to a seperate public repo

    In the private dev repo use a script which Cherry picks release files from a whitelist that you maintain in the public repo.

    Essentially, you define the files and folder structure of a release and that ensures every release looks great with no cruft and it's never going to have .secret.json in or whatever

    Hardcoded secrets is seperate and you can have another script to grep for those

  5. Why bother with GitHub, anyway? Seems like an accident waiting to happen. Always has.