Skip to content

feat(env): grep-ignore .kube (kubeconfig token hygiene)#51

Open
ysyneu wants to merge 1 commit into
feat/ai-srefrom
feat/grep-ignore-kube
Open

feat(env): grep-ignore .kube (kubeconfig token hygiene)#51
ysyneu wants to merge 1 commit into
feat/ai-srefrom
feat/grep-ignore-kube

Conversation

@ysyneu
Copy link
Copy Markdown
Collaborator

@ysyneu ysyneu commented May 28, 2026

Summary

  • Add .kube to defaultGrepIgnoreDirs so the Go-fallback grep walker skips read-only kubeconfigs that /init places at <workspace>/.kube/. Prevents a grep -r token from leaking a bearer token into the agent's context/transcript.

Context

Supports the fc-safari /init native-kubectl cluster-access feature (targets feat/ai-sre). ripgrep already skips hidden dirs by default; this aligns the Go fallback.

Test plan

  • go test ./environment/ -run TestEnvironment_Grep_DefaultIgnore green (now asserts .kube skipped; red→green TDD)
  • go build ./... && go test ./environment/... green

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