Repository navigation
chore: harden .gitignore against secrets and local config - #2
Merged
Merged
Conversation
Adds the org-wide baseline blocking kubeconfigs, private keys and keystores, Terraform state, .env files, cloud CLI credential caches, vendored dependencies and OS noise. Coverage gap this closes (measured across all 69 repos): kubeconfig not ignored in 67 *.key/*.pem not ignored in 67 id_rsa not ignored in 68 .env not ignored in 63 .env.example and .env.*.example remain tracked via negation. Refs POps-Rox/.github#1 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 0543f12b-012b-495d-a226-87b651348071
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the org-wide hygiene pass. Refs POps-Rox/.github#1
Why
A full-history scan found private keys, a Kubernetes kubeconfig with cluster credentials, and a Terraform state file committed across this organization. The root cause was not carelessness in one repo — it was that nothing was configured to stop it:
kubeconfig*.key/*.pemid_rsa.envThree repos had no
.gitignoreat all.What this adds
An identical baseline block in every repo covering: Kubernetes credentials, private keys/keystores, Terraform state and local workspace,
.envfiles, cloud CLI credential caches, vendored dependencies, and OS noise..env.example/.env.*.examplestay tracked via explicit negation.Note
Push protection is now enabled org-wide, but it only blocks recognized secret patterns — it will not stop a
kubeconfigor.tfstate. This is the complementary control.Removing this material from history is a separate decision tracked in POps-Rox/.github#1.