Skip to content

feat(keychain): add per-app secret store#233

Merged
LorrisSaintGenez merged 6 commits into
feat/profile-deprfrom
feat/app-secrets
Jun 9, 2026
Merged

feat(keychain): add per-app secret store#233
LorrisSaintGenez merged 6 commits into
feat/profile-deprfrom
feat/app-secrets

Conversation

@LorrisSaintGenez

@LorrisSaintGenez LorrisSaintGenez commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

What

  • Adds a per-application secret store in pkg/keychain (SaveAppSecrets/LoadAppSecrets), backed by the OS keychain (service algolia-cli, user app:<application_id>, JSON {api_key, crawler_api_key}).
  • Lives in a neutral package (not pkg/auth) so the upcoming read-resolution step in pkg/config can use it without a configauth import cycle.
  • Missing entry → (nil, nil); keychain-unavailable / malformed-JSON → error; empty appID rejected. No callers yet.

Test

  • go test ./pkg/keychain -v

LorrisSaintGenez and others added 4 commits June 8, 2026 12:03
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codacy-production

codacy-production Bot commented Jun 8, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 15 complexity · 0 duplication

Metric Results
Complexity 15
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes.

@LorrisSaintGenez LorrisSaintGenez self-assigned this Jun 8, 2026
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@LorrisSaintGenez LorrisSaintGenez marked this pull request as ready for review June 8, 2026 20:54
Avoids a config<->auth import cycle: the upcoming read-resolution step (pkg/config) needs LoadAppSecrets, but pkg/auth already imports pkg/config. A neutral pkg/keychain package both can depend on.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@LorrisSaintGenez LorrisSaintGenez changed the title feat(auth): add per-app keychain secret store feat(keychain): add per-app secret store Jun 8, 2026
@LorrisSaintGenez LorrisSaintGenez merged commit a9cfcea into feat/profile-depr Jun 9, 2026
2 checks passed
@LorrisSaintGenez LorrisSaintGenez deleted the feat/app-secrets branch June 9, 2026 15:20
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.

2 participants