I don't know that I'd disagree here, but there are plenty of others complaining about the UI's timeout. I can't see your ticket, so I thus have no idea what you reported beyond what's stated in this thread, but I have a hard time agreeing that "browsing to the UI's reboot endpoint reboots the server" is anything like "insane." It instead sounds like the system is working exactly as designed--surely with room for improvement, but nonetheless as (reasonably) designed.
At the end of the day, if I have 30 tabs open and lose a TrueNAS one, if I switch back to 'the wrong one' the server reboots.
I don't know the precise cause and unfortunately I am not 1000% positive what is going on.
I'm switching back to a tab, the tab is possibly in a chrome 'sleeping' state (it seems so) and it then wakes and refreshes the tab
Now I don't know if I'm being prompted to log in and so I do so and then bam it reboots, but I *think* I'm not even logging in. I am literally just using CTRL-Tab, switching to or past, an idle TrueNAS tab and in doing so, the server reboots.
I generally don't even know it's been done until I realise the server isn't up.
What I can tell you, with certainty is that I'm not clicking "are you sure" or "ok" or anything like that and yet it reboots.
Like I said, I shouldn't have a lot of tabs open, but this is adhd behaviour and sooner or later a 'normal' person is going to suffer the same fate, on a production server.