Proxy should only work with claims #40

Closed
opened 2026-04-29 20:43:33 +00:00 by mik-tf · 1 comment
Owner

Today the proxy carries two parallel authorization vocabularies:

  • Per-route auth machinery: auth_mode (none/bearer/oauth/signature), oauth_provider, allowed_pubkeys, plus per-provider allowed_emails.
  • Claims: resolved via users → groups → roles → claims, injected as X-Hero-Claims. Per home#191, no backend currently enforces on it.

Direction: the proxy should only work with claims. Authentication is whatever produces claims; routes declare what claims they require; backends consume X-Hero-Claims. The first vocabulary collapses into the second.

@lee Kristof suggested you could have a look at this.

Today the proxy carries two parallel authorization vocabularies: - Per-route auth machinery: `auth_mode` (none/bearer/oauth/signature), `oauth_provider`, `allowed_pubkeys`, plus per-provider `allowed_emails`. - Claims: resolved via users → groups → roles → claims, injected as `X-Hero-Claims`. Per [home#191](https://forge.ourworld.tf/lhumina_code/home/issues/191), no backend currently enforces on it. Direction: the proxy should only work with claims. Authentication is whatever produces claims; routes declare what claims they require; backends consume `X-Hero-Claims`. The first vocabulary collapses into the second. @lee Kristof suggested you could have a look at this.
Owner

the title is wrong,
auth = auth, means login
claims, means define what user has access too

its not OR

the title is wrong, auth = auth, means login claims, means define what user has access too its not OR
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_proxy#40
No description provided.