Skip to content

fix(wizard): Whack a mole part 1: admit field-log bash denials that are build/lint-class work - #1016

Draft
gewenyu99 wants to merge 3 commits into
mainfrom
posthog-code/whack-a-mole-1
Draft

fix(wizard): Whack a mole part 1: admit field-log bash denials that are build/lint-class work#1016
gewenyu99 wants to merge 3 commits into
mainfrom
posthog-code/whack-a-mole-1

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Admit the bash-fence denials from the last 24h of wizard: bash denied telemetry that are build/lint-class risk.

Before: bash {"command":"bin/rubocop app/models/user.rb"}
        → Bash command not allowed: `bin/rubocop app/models/user.rb`. `bin/rubocop` is not an allowed tool.
After:  bash {"command":"bin/rubocop app/models/user.rb"}
        → runs

Before: bash {"command":"bin/rails zeitwerk:check"}   → denied (not in allowlist)
After:  bash {"command":"bin/rails zeitwerk:check"}   → runs; bin/rails db:drop still denied

Also: bare curated lint tools on PATH (eslint src), npm exec -- tsc, bare npm run (script listing), gradle --configuration <value> + spotless*, xcodegen generate (supersedes #1011). Dev servers, arbitrary scripts, and publish actions stay denied.


Created with PostHog Code

…ss work

From the last 24h of `wizard: bash denied` events: Rails binstubs
(bin/rubocop, bin/rails zeitwerk:check), bare curated lint tools on PATH,
npm exec's `--` separator, bare `npm run` (script listing), gradle
--configuration value flags and spotless* tasks, and xcodegen generate.
Dev servers, arbitrary scripts, and publish actions stay denied.

Generated-By: PostHog Code
Task-Id: affdea28-7761-4d50-8335-6b32376b1a82
@gewenyu99 gewenyu99 changed the title feat(bash-fence): whack-a-mole 1 — admit field-log denials that are build/lint-class work fix(wizard): Whack a mole part 1: admit field-log bash denials that are build/lint-class work Jul 28, 2026
Generated-By: PostHog Code
Task-Id: affdea28-7761-4d50-8335-6b32376b1a82
@gewenyu99

Copy link
Copy Markdown
Collaborator Author

Hmmm, we need to be able to surface permission asks. These are dangerous

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