Skip to content

feat(env): skip .kube in default grep ignore (port #51 to main)#53

Merged
ysyneu merged 1 commit into
mainfrom
chore/grep-ignore-kube-main
Jun 5, 2026
Merged

feat(env): skip .kube in default grep ignore (port #51 to main)#53
ysyneu merged 1 commit into
mainfrom
chore/grep-ignore-kube-main

Conversation

@ysyneu
Copy link
Copy Markdown
Collaborator

@ysyneu ysyneu commented Jun 5, 2026

What

Ports the .kube grep-ignore from PR #51 (feat(env): grep-ignore .kube) onto main.

PR #51 merged into feat/ai-sre only and never reached main, so this kubeconfig-token hygiene was missing from the release trunk. This is the only content that lived on feat/ai-sre and not on main; landing it here lets us retire feat/ai-sre.

Change

  • environment/environment.go: add .kube to defaultGrepIgnoreDirs so the Go grep fallback skips read-only kubeconfigs placed by /init and keeps their tokens out of grep output.
  • environment/environment_test.go: assert .kube is ignored.

Cherry-pick of 875aa6a (clean, +5 lines).

Verify

  • go build ./environment/ — OK
  • go test ./environment/ -run TestEnvironment_Grep_DefaultIgnore — PASS

@ysyneu ysyneu merged commit d47b2d5 into main Jun 5, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant