Skip to content

PDS: fix rpc audience check for service proxying#4602

Closed
devinivy wants to merge 3 commits intomainfrom
divy/fix-scope-check
Closed

PDS: fix rpc audience check for service proxying#4602
devinivy wants to merge 3 commits intomainfrom
divy/fix-scope-check

Conversation

@devinivy
Copy link
Collaborator

@devinivy devinivy commented Feb 3, 2026

Fixes an issue where the rpc scope audience checks weren't properly taking into account the service id when service proxying.

Comment on lines +59 to +60
const { url: origin, did: aud } = await parseProxyInfo(ctx, req, lxm)
const proxy = await parseProxyInfo(ctx, req, lxm)
const aud = serviceAud(proxy)
Copy link
Collaborator Author

@devinivy devinivy Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where the issue was: aud was a bare DID without a service id, causing it to fail the scope checks.

Copy link
Contributor

@matthieusieben matthieusieben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat

@devinivy devinivy closed this Mar 6, 2026
@devinivy
Copy link
Collaborator Author

devinivy commented Mar 6, 2026

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.

2 participants