caddy icon indicating copy to clipboard operation
caddy copied to clipboard

Feature request: notify out-of-date version

Open m13253 opened this issue 6 years ago • 6 comments

0. Feature request

Hello Caddy dev,

Although we have discussed (#576) that we currently can't find a suitable method to auto upgrade Caddy, since Caddy now has a telemetry system, can we implement an out-of-date notification (so the administrator can upgrade Caddy manually)?

We might need to repeat the notification every X minutes or when every Y lines of logs are print to avoid being ignored.

Thanks.

m13253 avatar Oct 14 '18 12:10 m13253

I would like this as well.

brink668 avatar Nov 08 '18 00:11 brink668

This is a good idea. The Caddy version is reported in telemetry already. I guess we just need to show it on the stats page for your instance, then you can set up an alert to monitor for that. How does that sound?

(Actually, if you look at the network tab, it should already return the version information in JSON -- it's just not rendered on the page yet. I'm trying to remember from the top of my head so I'm not positive but give it a look.)

mholt avatar Nov 08 '18 02:11 mholt

PowerDNS checks updates anonymously via DNS, see: https://doc.powerdns.com/authoritative/security.html#security-polling

theel0ja avatar Feb 26 '20 21:02 theel0ja

Oooh, that's clever @theel0ja, thanks for pointing that out!

francislavoie avatar Feb 26 '20 21:02 francislavoie

@mholt is this something you'd be willing to implement?

We could do this as part of our release CI job with a little Go program that uses whatever libdns plugin necessary for the caddyserver.com domain, it could write a TXT record with the current version number.

francislavoie avatar Aug 23 '21 05:08 francislavoie

Mmm, lemme think about it. It's definitely weird...

mholt avatar Aug 23 '21 17:08 mholt

I think this is unlikely to happen any time soon. I'll close this as stale for now. We might come back to this later.

francislavoie avatar Feb 26 '23 02:02 francislavoie