Skip to content

fix(workflow): bind trigger author to the signed event - #4607

Open
jmecom wants to merge 1 commit into
mainfrom
codex/security-workflow-trigger-author
Open

fix(workflow): bind trigger author to the signed event#4607
jmecom wants to merge 1 commit into
mainfrom
codex/security-workflow-trigger-author

Conversation

@jmecom

@jmecom jmecom commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

This change derives trigger_author exclusively from the signed event pubkey. Actor tags remain available as event data but cannot override the identity used by author-sensitive workflow conditions.

This removes the impersonation path without changing workflow definitions or requiring stored-data migration.

Testing

  • bin/cargo test -p buzz-workflow at 78819df: 154 passed, 2 Postgres-dependent tests ignored
  • git diff --check origin/main...codex/security-workflow-trigger-author

Originating Buzz thread: buzz://message?channel=3928fe05-df61-4b5d-b9c7-d623b9b10ea1&id=3c6c02312f763fbe0d2bfc33a6c1a362f91d0354f3d18b039cf7a0558c1439d1

Ignore signer-controlled actor tags when building workflow trigger context so author-sensitive filters cannot impersonate another identity.

Co-authored-by: Jordan Mecom <jm@squareup.com>
Signed-off-by: Jordan Mecom <jm@squareup.com>
@jmecom
jmecom marked this pull request as ready for review August 3, 2026 21:00
@jmecom
jmecom requested a review from a team as a code owner August 3, 2026 21:00
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