Closed getvictor closed 1 day ago
@noahtalerman @RachelElysia I added backend handling of timeouts and insufficient admin permission errors for NDES (see demo video). Should we surface these in the UI when Fleet admin is configuring NDES? If so, please provide copy.
Hey @getvictor sorry for the delay.
Should we surface these in the UI when Fleet admin is configuring NDES? If so, please provide copy.
Yes! Easy to understand error messages are core to Fleet.
Victor, can you please take a stab at the updated copy and then ask @marko-lisica to review? Marko can provide a second set of eyes to see that we're using language/formatting that's consistent w/ other error messages.
Hey @noahtalerman @getvictor, I wrote error messages. Let me know wdyt.
Insufficent permissions:
Couldn't add. This account doesn't have sufficient permissions. Please use the account with enroll permission.
Wrong credentials:
Couldn't add. Admin URL or credentials are invalid.
Timeout:
Couldn't add. Request to NDES timed out. Please try again.
We usually start with Couldn't <verb (e.g. save, connect, add)>
. We have some principles we follow when writing errors in handbook.-,Writing%20error%20messages,-When%20writing%20error).
@marko-lisica
The insufficient permissions message looks good.
Wrong credentials. We already have the error message implemented from the original story.
Invalid admin URL or credentials. Please correct and try again.
Timeout can either happen on the SCEP URL or the Admin URL -- should we have separate error messages?
I would change one for wrong credentials too, to be more consistent.
Timeout can either happen on the SCEP URL or the Admin URL -- should we have separate error messages?
I guess we could have 2 error messages:
Couldn't add. Request to NDES (SCEP URL) timed out. Please try again.
Couldn't add. Request to NDES (admin URL) timed out. Please try again.
Created #23813 for the frontend fixes.
QA Notes:
confirm error handling has improved after fix. Additional testing notes here #23813
Pending profiles clear, With NDES time-outs known, Fleet's truth now appears.
This is technically an unreleased bug, but we're treating it as a story since it mainly improves debuggability when the NDES server is having issues.
💥 Actual behavior
When a connection to NDES (admin or SCEP URL) times out, the SCEP profile still shows Pending and not failed.
While we're at it, let's return a good error for this permission issue:
You do not have sufficient permission to enroll with SCEP. Please contact your system administrator.
🧑💻 Steps to reproduce
@PezHub saw this during QA, and restarting ngrok fixed the timeout to admin URL.
🕯️ More info (optional)
Fleet server cuts the connection with
context canceled
and does not save the error.Demo
[Demo] Handling timeout and insufficient permission errors in NDES #23525 - Watch Video