Skip to content

Add OIDC and API key authentication (issue #57)#64

Merged
barreiro merged 1 commit into
Hyperfoil:mainfrom
stalep:issue_57
May 13, 2026
Merged

Add OIDC and API key authentication (issue #57)#64
barreiro merged 1 commit into
Hyperfoil:mainfrom
stalep:issue_57

Conversation

@stalep
Copy link
Copy Markdown
Member

@stalep stalep commented Apr 25, 2026

Wire up HTTP authentication for h5m's REST API. API keys use Authorization: Bearer H5M_xxx with SHA-256 hashing. OIDC is opt-in via environment variables. First user to authenticate is auto-promoted to admin. Read endpoints are public, write endpoints require auth, value purge requires admin role. Local mode provides a synthetic admin identity so existing behavior is unchanged.

Wire up HTTP authentication for h5m's REST API. API keys use
Authorization: Bearer H5M_xxx with SHA-256 hashing. OIDC is opt-in
via environment variables. First user to authenticate is auto-promoted
to admin. Read endpoints are public, write endpoints require auth,
value purge requires admin role. Local mode provides a synthetic
admin identity so existing behavior is unchanged.
@stalep stalep requested a review from barreiro April 25, 2026 09:14
Copy link
Copy Markdown
Contributor

@barreiro barreiro left a comment

Choose a reason for hiding this comment

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

looks good.

probably should also add some @RolesAllowed annotations on the service implementations to enforce the authorization, but can be done at a later stage.

@barreiro barreiro merged commit ce04c60 into Hyperfoil:main May 13, 2026
1 check passed
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