-
Notifications
You must be signed in to change notification settings - Fork 131
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
Add/document MDM option to enforce passcode #532
Comments
@michaelstingl please share your thoughts as discussed in sprint planning regarding better UX / user flow for this feature |
My 1st 2 findings regarding the end to end user experience:
|
@michaelstingl Just put explanation here (see screenshot)? More detailed text instead of "Enter code"? Or separate screen? |
both are valid approaches. you can start with the least effort approach. Just write "Set code" at first start maybe… Maybe good idea in general, independent from MDM option. |
@michaelstingl May be something like "You are required to set a passcode to use the app"?.. May be as optional subtitle in the same view under "Enter code"? |
yeah, we can try this 👍 |
@michaelstingl I shared IPA with you on 21.09. Did you try? Does it look like you would expect it? |
Yes, *.IPA looks good 👍 @jesmrec will start MDM testing with JAMF after the 11.4.2 release. (Technically everything is prepared) Documentation part of this issue is blocked by #755 (WiP: Key-Metadata-JSON export from @felix-schwarz , then JSON ==> AsciiDoc with gomplate) |
First insights after testing with With the key:
the result i got is: everything is hidden in I installed the app with Xcode. Other keys like Same test was repeated by archiving branch Then, i test on the other way, by setting from scratch:
and re-enrolling the device to reinstall (i did not find another way to force a reinstallation). I got also same result: everything hidden in So, the idea that come to my mind: is there something hardcoded in the code? password enforced does not work, but same changes in other key/values work fine. My expectation here:
|
Hm, "Lock application" or the biometrical stuff would still be useful? @mneuwert additional MDM parameter for the lock delay? Otherwise iOS Files app won't work with |
yes, makes sense 👍 |
@michaelstingl @jesmrec I found first reason why the behaviour is as described... If ownCloud app is deleted, keychain data is retained on the device which somehow I was not thinking about. So here the previously stored passcode is there after re-install but the flag in user defaults is lost since they are stored in the app sand-box and are wiped with the app. Therefore some logic is broken.. We should consider implementing mechanism described here and wipe keychain on re-install: Apple Engineer has suggested in the dev forum to add additional layer of encryption: encrypt all items stored in the keychain and store the key in the app sand-box, so that the key is wiped when app is deleted. So no key -> no valid data -> wipe everything and start from scratch. |
@michaelstingl @jesmrec Updated a branch.. now should be looking better, somehow I didn't find manage logging in to JAMF instance to play with different settings. |
New iteration with commit Problems reported above:
A couple of glitches to be reported in the next messages |
Check these steps out:
Current: You can start to use the app with no pincode Expected: After killing and re-opening, pincode must be asked again Commit: |
Small glitch when the switch manually on/off
Current: Expected: NOTE: by switching off, same behaviour. In base branch Commit: |
@jesmrec Last glitch is works as designed I guess.. I am not sure we decided to be able to dynamically react to changes in settings.. We could technically subscribe to notification here, then we could update UI as soon as MDM server pushes new settings. WDYT @michaelstingl? |
the glitch is probably not very important. If this is the expected by design, we can iterate as usual to improve. Not a blocker. #532 (comment) is still happening |
@mneuwert I think this could be solved with less effort. I'm right? |
I think I nailed it.. the problem was due to release notes being shown and preventing other views from being able to be presented modally. I provided a fix in the |
I checked it and it's fixed. I will check it again with all tests together in the scope of next release |
Completely tested. In first message, the tests executed. It was linked correctly. |
1st idea: User should be forced to enter a new passcode when opening the app the first time…
Related: #2
Branch:
feature/mdm_enhancements
PR: #773
Documentation: https://github.com/owncloud/ios-app/blob/feature/mdm_enhancements/docs/modules/ROOT/pages/ios_mdm.adoc#passcode-enforcement
QA [Approved]:
Key: passcode.enforced
Location: Security section on
Settings
.Features: Passcode, Biometrical (touch or face id) and security enforcement.
Documentation link: https://github.com/owncloud/ios-app/blob/master/docs/modules/ROOT/pages/ios_mdm.adoc#passcode-enforcement
ACs:
1) Security not enforced from scratch
2) Security enforced from scratch
3) Hot swap
4) Documentation
Link on the top of this post. In this case, only one parameter to set-up (
passcode.enforced
).passcode.enforced
QA Reports:
Tested with: iPhoneXR, iOS 14.4
The text was updated successfully, but these errors were encountered: