Skip to content

[Backport] fix(party): allow delegated access without instantiation rights#4327

Merged
olemartinorg merged 1 commit into
release/v4.32from
backport/4326
Jul 23, 2026
Merged

[Backport] fix(party): allow delegated access without instantiation rights#4327
olemartinorg merged 1 commit into
release/v4.32from
backport/4326

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #4326

This is an automated backport of PR #4326 to the release/v4.32 release branch.

Original PR

Changes

Cherry-picked the merge commit from the original PR onto the release branch.


🤖 This backport PR was created automatically by the Auto Backport workflow.

* party: allow delegated access without instantiation parties

PartyProvider rejected every authenticated user whose allowed-to-instantiate
party list was empty, even when the URL already identified an existing
instance. This prevented delegated users from opening instances the backend
authorized them to access.

Limit the empty-party error to entry without an instance ID. Cover the
distinction with a signing flow where the signer has real delegated access
while the allowed-to-instantiate response is deliberately empty.

* test: make existing instance access portable to TT02

Tenor party IDs differ between localtest and TT02, and newly delegated
signing access is not reliable in TT02 due to authorization caching. Those
environment details obscured the frontend regression the test is meant to
protect.

Select the organization by its stable Tenor number and reopen the instance as
its original user. Mock only the instantiation-party response on the second
load so the test isolates the frontend guard while retaining real backend
instance authorization in both environments.

* test: use Tenor user shared by localtest and TT02

The TT02-compatible regression initially used a Tenor identity that is not
available in localtest, so the test could not validate the fix in both target
environments.

Use Human Andrefiolin and select their organization by its stable organization
number. This keeps the instance authorization real while allowing the same
negative-control test to run in podman and TT02.

---------

Co-authored-by: Ole Martin Handeland <git@olemartin.org>
@github-actions github-actions Bot added automated backport-ignore This PR is a new feature and should not be cherry-picked onto release branches kind/other Pull requests containing chores/repo structure/other changes labels Jul 23, 2026
@olemartinorg
olemartinorg merged commit d42f2e1 into release/v4.32 Jul 23, 2026
@olemartinorg
olemartinorg deleted the backport/4326 branch July 23, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated backport-ignore This PR is a new feature and should not be cherry-picked onto release branches kind/other Pull requests containing chores/repo structure/other changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant