Repository navigation
feat: keep package secrets in the Keychain - #36
Merged
Merged
Conversation
This was referenced Oct 16, 2026
Seb-GRAF
force-pushed
the
feat/package-secrets
branch
from
October 16, 2026 10:03
d04cb35 to
ac51e7c
Compare
This was referenced Oct 16, 2026
|
🎉 This PR is included in version 0.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Part of #33: "Add a
secretsetting type kept in the Keychain instead ofconfig.json, for API tokens."Changes
{ "type": "secret", "title": "…" }has no default. A package can use it only as a whole value in theenvironmentof a widget or provider it defines. Templates, profiles and the top-levelenvironmentcan't, so a package can't hand its token to every command.--queryand Customize never hold the token. The marker becomes the Keychain value right before the command starts, off the main thread and before event values merge in.--query, Customize) and what it doesn't (other packages, programs running as you, and commands that print their token), and the Keychain prompt that ad-hoc signed builds show after an update.Testing
swift test: all tests pass, including where markers are allowed, rejected markers and selection values, and the swap with a lookup function passed in. No test touches the Keychain.github-notificationspackage, which uses a secret token, passes the store's check against this build.--queryshows only the marker. Not tried by hand yet: the Keychain prompt, and saving or removing a token.Merging
A merge commit. Stacked on #35.
Claude Opus 5.5 via Claude Code, reviewed by GPT-6.1-Sol via Codex.