8000 fix(settings): keep oauth client secrets out of a private export by hanthor · Pull Request #597 · hyprlab/hylki · GitHub
[go: up one dir, main page]

Skip to content

fix(settings): keep oauth client secrets out of a private export - #597

Open
hanthor wants to merge 2 commits into
hyprlab:mainfrom
tuna-os:fix/settings-export-secret
Open

hanthor wants to merge 2 commits into
hyprlab:mainfrom
tuna-os:fix/settings-export-secret

Conversation

@hanthor
@hanthor hanthor commented Nov 5, 2026
Copy link
Copy Markdown
Contributor

The settings export included each account's OAuth client_secret and was written with umask permissions. It is now written 0600 (through write_private) and leaves client secrets out; importing on the same computer puts back the secret it already has for the same address, client id and token URL.

Not included: moving client_secret from accounts.toml into the keyring, which needs a load-time migration like the old password one.

Tests: removing and restoring client secrets; the settings-bundle golden.

Export settings wrote the bundle with umask permissions and each account's OAuth client secret. It is now written 0600 without the secrets, and an import keeps the secret already on this computer for the same address and client.
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

0