Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cache support for none keyring type #3692

Closed
wants to merge 27 commits into from

Conversation

talanknight
Copy link
Contributor

The repository now stores a map of auth token ids to auth tokens used when refreshing the cache with for personas that are not stored in the keystore. The map is cleaned up any time a persona might have been deleted, like when removing stale personas, or when adding a persona beyond the maximum number of personas trackable by the cache.

When a keyring type is set to none the token name and the auth token id must match. That token name is then used for updating information related to the last time the token was used by the CLI.

Leaving this a draft PR just because the branch this is based off of is already based off of another branch waiting to be reviewed and merged into llb-client-daemon so significant changs might be needed while those other PRs get reviewed.

jimlambrt and others added 20 commits September 5, 2023 12:48
Exporting FlagOutputCurlString allows other commands that embed
the base.Command to access the flag as needed
This new command will support both managing and searching the
local CLI cache daemon.
* Add persona table and move files to new directories
* Add unix socket listen and dialers with file permissions applied

* Update the pathing to match RFC
* Separate daemon from server

* Add persona handler to daemon server (#3579)
* exec.Command for background process

* Log to stderr when in foreground and file always

* Use pid files across platform for start and stop
* requests with version info must match daemons
@talanknight talanknight force-pushed the alanknight_cache_sessions branch 2 times, most recently from 4790b97 to 3e8f34c Compare September 14, 2023 16:46
Base automatically changed from alanknight_cache_sessions to llb-client-daemon September 14, 2023 17:01
@talanknight talanknight closed this Oct 9, 2023
@talanknight talanknight deleted the alanknight_keyringless_personas branch June 24, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants