Skip to content

permissions-cluster-info: ask before printing the token or streaming - #166

Merged
trick77 merged 1 commit into
masterfrom
fix-cluster-info-unsafe-allows
Nov 22, 2026
Merged

trick77 merged 1 commit into
masterfrom
fix-cluster-info-unsafe-allows

Conversation

@trick77

@trick77 trick77 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

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.

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
trick77 force-pushed the fix-cluster-info-unsafe-allows branch from 9304b14 to fdd2efb Compare November 22, 2026 16:30
@trick77
trick77 merged commit 727a4d9 into master Nov 22, 2026
3 checks passed
@trick77
trick77 deleted the fix-cluster-info-unsafe-allows branch November 22, 2026 16:31
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