Skip to content

feat: Store tokens from authentication in system keystore#71

Merged
eikek merged 12 commits into
mainfrom
feat/token-keystore
Jun 19, 2026
Merged

feat: Store tokens from authentication in system keystore#71
eikek merged 12 commits into
mainfrom
feat/token-keystore

Conversation

@eikek

@eikek eikek commented Jun 12, 2026

Copy link
Copy Markdown
Member

This PR changes the way the auth tokens are stored, using the keyring-rs crate. It provides integration into the system keyring for Linux, Windows and OSX. For Linux, the DBus variant is preferred if it is available, otherwise the kernel keyring is used. It is possible to force a specific variant via an env variable, which is meant as a fallback if the default behavior doesn't work for some reason.

Then the project context is also being read from the .renku/config.toml file if present. It would be preferred to an environment variable. The file is created, if a project is cloned with this tool.

@eikek eikek force-pushed the feat/token-keystore branch 2 times, most recently from 70ca47d to 9e825b9 Compare June 17, 2026 05:58
@eikek eikek force-pushed the feat/token-keystore branch from 9e825b9 to 7f69b4b Compare June 17, 2026 06:23
@eikek eikek marked this pull request as ready for review June 17, 2026 08:35
@eikek eikek force-pushed the feat/token-keystore branch from 092e9e9 to 44cb87a Compare June 17, 2026 08:36
@eikek eikek requested review from Panaetius and olevski June 17, 2026 08:46
@eikek eikek added the enhancement New feature or request label Jun 17, 2026

@Panaetius Panaetius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, very nice work with making the keystore configurable.

Comment thread src/httpclient/keystore.rs Outdated
Comment thread flake.nix
Comment on lines +201 to +202
#keyutils
#gnome-keyring

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this leftover code? I assume this means commented out?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes it is commented out, to be easily activated if someone wants to test things wrt keystore. I can also remove it, but it is only part of the development shell.

@eikek eikek requested a review from Panaetius June 19, 2026 11:48
@eikek eikek merged commit ce8227a into main Jun 19, 2026
5 checks passed
@eikek eikek deleted the feat/token-keystore branch June 19, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants