Repository navigation
permissions-cluster-info: ask before printing the token or streaming - #166
Merged
Merged
Conversation
oc whoami * and oc config view * allowed --show-token and --raw, which put the user's full token into the model context without a prompt. oc logs -f and oc get -w/--watch never end and hung the agent without a prompt. Ask rules after the wildcard allows now catch them in every flag position; last-match-wins makes them override, and remove still clears the wildcards.
trick77
force-pushed
the
fix-cluster-info-unsafe-allows
branch
from
November 22, 2026 16:30
9304b14 to
fdd2efb
Compare
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.
oc whoami and oc config view allowed --show-token and --raw, which put the user's full token into the model context without a prompt. oc logs -f and oc get -w/--watch never end and hung the agent without a prompt. Both now ask, in every flag position (leading, middle, trailing, =value).
The wildcard allows stay in the body so remove still clears them; the ask rules come after them and win (opencode is last-match-wins). Combined short flags such as -cf are not recognised; the README row says so.