Skip to content

fix: skip authorise() for AUTHENTICATED/PUBLIC sentinels in WebSocket mux#972

Merged
cybermaggedon merged 1 commit into
release/v2.5from
fix/whoami-auth-failure
Jun 3, 2026
Merged

fix: skip authorise() for AUTHENTICATED/PUBLIC sentinels in WebSocket mux#972
cybermaggedon merged 1 commit into
release/v2.5from
fix/whoami-auth-failure

Conversation

@cybermaggedon

Copy link
Copy Markdown
Contributor

The mux unconditionally called auth.authorise() for every operation, passing capability sentinels like AUTHENTICATED ("authenticated") to the IAM regime. Since no role grants "authenticated", the regime denied the request — breaking whoami (and any future AUTHENTICATED-only operation) over the WebSocket path while the HTTP endpoints worked fine.

Match the guard pattern used by iam_endpoint.py and registry_endpoint.py: only call authorise() for real capability strings, not sentinels.

… mux

The mux unconditionally called auth.authorise() for every operation,
passing capability sentinels like AUTHENTICATED ("__authenticated__")
to the IAM regime. Since no role grants "__authenticated__", the regime
denied the request — breaking whoami (and any future AUTHENTICATED-only
operation) over the WebSocket path while the HTTP endpoints worked fine.

Match the guard pattern used by iam_endpoint.py and registry_endpoint.py:
only call authorise() for real capability strings, not sentinels.
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Contributor License Agreement ✅

All contributors have signed the CLA. Thank you!

@cybermaggedon cybermaggedon merged commit aa158e1 into release/v2.5 Jun 3, 2026
3 checks passed
@cybermaggedon cybermaggedon deleted the fix/whoami-auth-failure branch June 3, 2026 08:46
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