feat(credentials): add native iOS Keychain lifecycle#122
Merged
Conversation
tcballard
marked this pull request as ready for review
July 24, 2026 20:26
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.
Summary
Implements the first Phase 3 credential boundary in
WF-ROADMAP-0016.Adds:
Scope
Included
CredentialStoreactor contract and Security framework backendkSecAttrAccessibleWhenUnlockedThisDeviceOnlyprotection.swiftpmand Xcode metadata ignoresExcluded
Product / Architecture Decisions
com.wayfinder.router.ios.credentialsservice.AppModelreceives only configured/not-configured snapshots.whenUnlockedThisDeviceOnlyand explicitly disable synchronization.User-Facing Contract
CLI
No CLI changes.
Human Output
JSON Output
No public JSON schema changes. Credential values and paths never enter conversation exports.
Exit Codes
No exit-code changes.
Verification
Ran
Signed simulator:
Result: 30 passed, 0 failed, 0 skipped. This includes a real Security framework save/read/delete cycle.
CI-equivalent unsigned simulator:
Result: 29 passed, 0 failed, 1 skipped. Only the system-Keychain entitlement smoke test skips in the deliberately unsigned host; deterministic custody and policy tests still run.
Manual iPhone 17 simulator flow:
Covered
Review Path
CredentialStore.swiftfor credential identity, Keychain policy, and Security backend.AppModel.swiftfor status-only state and lifecycle orchestration.APIKeysView.swiftandSettingsView.swiftfor the native user flow.CredentialStoreTests.swiftand credential cases inAppModelTests.swift.Notes For Reviewer
The next Phase 3 PR will add the generic OpenAI-compatible provider runtime. This PR deliberately stops at credential custody and does not make any key routable.