Open getvictor opened 3 months ago
Issue https://github.com/fleetdm/fleet/issues/19545 added view_pin parameter to the Lock Host activity item
Hey @getvictor, what does this view_pin
key tell me as a user? https://github.com/fleetdm/fleet/pull/19792/files#diff-9f70e9133b8f91c2034329e45fbe2386fdc4fb0b27c114ce6e3b6f0310320551R1006
My understanding is that for macOS hosts, we always return the PIN when a user hits the POST /lock
API. This will be clear in the REST API documentation (PR here).
Do we set view_pin
to false
if the user selects the Lock button in the UI?
That would kind of make sense because the user doesn't see the PIN when they select Lock. That said, it would also not make sense because the PIN shows up in the browser's console (Network tab).
Goal
Context
Issue #19545 added
view_pin
parameter to the Lock Host activity item. Frontend should use that parameter to update the activity text in the UI.Changes
Product
Engineering
QA
Risk assessment
Manual testing steps
Testing notes
Confirmation