Skip to content

ignore: for deploying and testing#1272

Draft
leafty wants to merge 5 commits intomainfrom
leafty/feat-self-mint-tokens-zenodo-sandbox
Draft

ignore: for deploying and testing#1272
leafty wants to merge 5 commits intomainfrom
leafty/feat-self-mint-tokens-zenodo-sandbox

Conversation

@leafty
Copy link
Copy Markdown
Member

@leafty leafty commented Apr 27, 2026

Build self-minted tokens + sandbox zenodo for testing.

leafty added 5 commits April 15, 2026 13:06
Details:
* Add the `RenkuSelfAuthenticator` class which authenticates internal tokens. (This is a new `authenticator`).
* Add the `RenkuSelfTokenMint` class which can create internal tokens. Tokens are signed with the `HS512` algorithm.
* Add the `POST /api/data/internal/authentication/token` endpoint to renew internal tokens. This endpoint has the same OpenAPI definition as `POST /api/data/oauth2/connections/:connection_id/token_endpoint`.
OAuth 2.0 token endpoint to support applications running in sessions
* Update the `pyjwt` dependency.

Note: the next PRs will make use of the new internal tokens for `git-proxy`, `remote-session-controller` and `csi-rclone`.
Use self-minted tokens for sessions.

Details:
* git-proxy: use internal access and refresh tokens
* remote-session-controller: use internal access and refresh tokens
* csi-rclone: use internal refresh tokens with long expiry (24 hours)
  * the `POST /api/data/oauth2/connections/:connection_id/token_endpoint` API endpoint is updated to support only internal refresh tokens
Verify the scope claim when refreshing internal tokens:
* Check that the corresponding session or deposit job is running
Base automatically changed from build/feat-self-mint-tokens to main April 29, 2026 12:38
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