Skip to content

vault unlock: store the key from a new session keyring (WSL); 0.7.10 - #55

Merged
2styx2 merged 2 commits into
devfrom
fix/keyring-session
Nov 10, 2026
Merged

2styx2 merged 2 commits into
devfrom
fix/keyring-session

Conversation

@2styx2

@2styx2 2styx2 commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Found on WSL: roster vault unlock said keyctl setperm failed. Its default session keyring is the user-session keyring, whose keys the process does not possess, so a key added there cannot have its permissions set. (0.7.6 moved the add to @s to fix su, where @U had the same problem.)

unlock now runs the whole store in a new session keyring (keyctl session -), whose keys are always possessed: add, set permissions and timeout, link into @U, unlink. Any failure invalidates the key, and the key stays on stdin. Checked with the real keyctl on WSL (dummy key), and the same method after su. Version 0.7.10.

Found on WSL: `roster vault unlock` said keyctl setperm failed. Its
default session keyring is the user-session keyring, whose keys the
process doesn't possess, so a key added there can't have its permissions
set (0.7.6 moved the add there to fix su, where @U had the same problem).
unlock now runs the whole store in a new session keyring (keyctl session
-), whose keys are always possessed: added, permissions and timeout set,
linked into @U, unlinked; any failure invalidates the key. Checked with
the real keyctl on WSL and after su. Version 0.7.10.
CI found both on a fresh container: Arch supports no partial upgrades, so
pacman -Sy then -S broke on an openssl transition; both scripts now use
pacman -Syu. A GitHub 500 on the bw download failed the whole install;
the fzf and bw downloads now retry (3 times, on any error).
@2styx2
2styx2 merged commit cc37720 into dev Nov 10, 2026
16 checks passed
@2styx2
2styx2 deleted the fix/keyring-session branch November 10, 2026 16:57
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