News for hackers. Stuff that matters.
Re:Upgrading Executable on the Fly by mholt on Tuesday January 04, 2022 @03:55PM (#29800360)
> an application should never be able to replace itself with "random code" to be executed.

To clarify: it doesn't, nor has it ever worked that way. You have to be the one to do that (or someone with privileges to write to that file on disk). Most production setups don't give Caddy that permission. And you have to trigger the upgrade too.

Re:Upgrading Executable on the Fly by eliaspro on Tuesday January 04, 2022 @06:53PM (#29802772)
Ok, this explains a lot and also clearly shows I never used this feature :)

I always assumed it would be the Caddy process itself taking care of downloading the update & replacing the binary, before restarting it.

Re:Upgrading Executable on the Fly by mholt on Tuesday January 04, 2022 @09:29PM (#29804241)
Caddy 2 can do that at least, but it's something you have to command it to do. :)