←back to thread

199 points elza_1111 | 1 comments | | HN request time: 0.206s | source
Show context
v3ss0n ◴[] No.44452592[source]
Daily reminder:

- Once it is on the internet - it is always there so Rotate the key/secrets FIRST.

- Never think secrets are gone because of you have recommited .

- Deleting a commit is not enough , use BFG Cleaner - https://rtyley.github.io/bfg-repo-cleaner/ , and force commit to change history.

Edit- Forget to add most important thing - rotating the key.

replies(3): >>44452614 #>>44452660 #>>44452676 #
hnlmorg ◴[] No.44452614[source]
The problem here is that GitHub keeps the ref logs even for commits that no longer exist.

I don’t see how BFG helps here

replies(1): >>44453295 #
v3ss0n ◴[] No.44453295[source]
it rewrites the history. Isn't that really enough? You can remove all the keys from the git history. and I agree , i forget the point about rotating the key which i do always in first .
replies(2): >>44453408 #>>44456010 #
1. Timwi ◴[] No.44453408[source]
It might remove it from your local repo, but not from GitHub, that's the point.