Report keychain failures during AppKeychain and SharedKeychain access#25702
Report keychain failures during AppKeychain and SharedKeychain access#25702crazytonyli wants to merge 3 commits into
Conversation
Generated by 🚫 Danger |
|
| App Name | WordPress | |
| Configuration | Release-Alpha | |
| Build Number | 32846 | |
| Version | PR #25702 | |
| Bundle ID | org.wordpress.alpha | |
| Commit | 59b3d12 | |
| Installation URL | 02v1g82s7uob8 |
|
| App Name | Jetpack | |
| Configuration | Release-Alpha | |
| Build Number | 32846 | |
| Version | PR #25702 | |
| Bundle ID | com.jetpack.alpha | |
| Commit | 59b3d12 | |
| Installation URL | 4n3rde5269k9o |
Both keychain wrappers now route every read, write, and delete failure through a shared reporter. The expected not-found stays silent, other real failures are logged via swift-log together with the failing call site, and an entitlement mismatch crashes because it means the access group is unreachable for the entire build rather than a recoverable runtime condition. This adds a swift-log dependency to the WordPressShared target.
f8900b9 to
c29ac79
Compare
jkmassel
left a comment
There was a problem hiding this comment.
This looks generally correct, though I wonder if we can collapse a bunch of the repeated do/catch statements?
Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>
The |
Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>


Both keychain wrappers now route every read, write, and delete failure through a shared reporter. The expected not-found stays silent, other real failures are logged via swift-log together with the failing call site, and an entitlement mismatch crashes because it means the access group is unreachable for the entire build rather than a recoverable runtime condition. This adds a swift-log dependency to the WordPressShared target.