-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amplify uses 'shared-access-group' keyChain store, while also making an assumption it's private #3277
Comments
Thanks for reporting this and for the thorough explanation @myeyesareblind! We're actively investigating it and will get back back to you here as soon as possible. |
Hello, We currently have a feature request in place for adding an |
This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you! |
Tracking this in #2508 and closing this. |
Describe the bug
We have a few build of our app - AhHoc, Beta, Alpha, AppStore.
At some point, we found that when internal dev installs & launches 'Beta', it will magically sign off user from AppStore or any other build.
Turns out, we have 'keychain-access-group' entitlement added to the app.
Now, by default, KeyChain writes to ('first-keychain-access-group' ?? app-id).
Which makes the keyChain store actually shared across all the apps.
We are using cognito & it writes to the same key.
https://developer.apple.com/documentation/security/ksecattraccessgroup
I don't know why Apple has made such design choice, but the Amplify 'must' set keychain-group to app-id, otherwise it makes it shared.
Here is my keychain item that I got from Cognito, as you can see there is 'Access Group' added.
Steps To Reproduce
Expected behavior
Cognito KeyChain is not shared across the apps.
Amplify Framework Version
2.3.0
Amplify Categories
Auth
Dependency manager
Swift PM
Swift version
5.9
CLI version
12.1.1
Xcode version
14.3.1
Relevant log output
Is this a regression?
No
Regression additional context
No response
Platforms
iOS, macOS
OS Version
iOS 16
Device
iPhone X
Specific to simulators
No response
Additional context
My team spend quite some time figuring this out ...
The text was updated successfully, but these errors were encountered: