Skip to content

fix: restrict access to scoped capsules (#22113)#22135

Merged
mverzilli merged 2 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-22113-scoped-capsules
Mar 30, 2026
Merged

fix: restrict access to scoped capsules (#22113)#22135
mverzilli merged 2 commits into
backport-to-v4-next-stagingfrom
claudebox/backport-22113-scoped-capsules

Conversation

@AztecBot

@AztecBot AztecBot commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Backport of #22113 to v4-next.

Introduces a CapsuleService wrapper that enforces scope-based access control on capsule operations invoked through oracles, ensuring they are within the scopes authorized for the current execution context.

Cherry-pick conflicts

Conflicts were in docs files only:

  • docs/docs-developers/docs/resources/migration_notes.md — positional conflict in TBD section (incoming content for capsule scope enforcement note + ## 4.2.0-aztecnr-rc.2 header)
  • docs/netlify.toml — missing /errors/9 and /errors/10 redirect entries

Both resolved by accepting the incoming content. All TypeScript changes applied cleanly.

Test plan

  • CI passes on backport branch
  • Capsule scope enforcement works as described in migration notes

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Mar 30, 2026
@AztecBot

AztecBot commented Mar 30, 2026

Copy link
Copy Markdown
Collaborator Author

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/d803f7f2dea4785f�d803f7f2dea4785f8;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_l1_reorgs.parallel.test.ts "updates L1 to L2 messages changed due to an L1 reorg" (66s) (code: 0) group:e2e-p2p-epoch-flakes

@AztecBot AztecBot force-pushed the claudebox/backport-22113-scoped-capsules branch from 81fa701 to 314078e Compare March 30, 2026 17:34
@mverzilli mverzilli marked this pull request as ready for review March 30, 2026 17:37
@mverzilli mverzilli enabled auto-merge March 30, 2026 17:38
@mverzilli mverzilli merged commit 0939861 into backport-to-v4-next-staging Mar 30, 2026
10 of 13 checks passed
@mverzilli mverzilli deleted the claudebox/backport-22113-scoped-capsules branch March 30, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants