Dashboard › opencode › PTY supervisor MainPID authentication
01a07f7d-848a-7a0e-ae06-abb313b075b5Chose connection-lifetime pidfd authentication plus an invocation-bound assertion immediately before StartTransientUnit over one-time SO_PEERCRED/PID checks because socket descriptors can be inherited or transferred and PIDs can be reused. Verify exact UID/GID, active systemd MainPID, InvocationID, and service cgroup; keep the CLOEXEC pidfd open through the privileged start. Peer credentials alone identify the original connector, not the process currently possessing a delegated connection.