Created attachment 226746 [details] Add a weekly periodic job to check zrepl SSL certs for impending expiration. Expiring SSL certificates are a persistent problem. I wrote a periodic job to detect whether zrepl's certificates are close to expiration, and warn the sysadmin ahead of time.
Created attachment 236226 [details] Add a weekly periodic job to check zrepl SSL certs for impending expiration Fixed a bug in the periodic script. It would whine if there were not certificates installed. Now it doesn't.
Thank you. Triage: * reduce severity, to the norm for a feature * in progress (work has started, assignee is a person) * …
Hi Alan, I like the idea behind your script, but I am wondering does this only check certs that are relevant to zrepl usage, or does it check all certs on the present machine? "Add a weekly periodic job to check zrepl SSL certs for impending expiration." From this comment I would think it only considers zrepl SSL certs that will be reported by the script but I cant see the relevant logic in the script which accomplishes that?
Oh nvm, /usr/bin/find %%ETCDIR%%, its right here, and %%ETCDIR%% gets expanded to a zrepl dedicated config dir. I'll land this somewhere this weekend, nice feature!
Actually, feel free to land this yourself, LGTM!
If you don't have the cycles let me know and I'll land it for you!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0de11ff4ffa507b3c91eada0307bb45fea28112a commit 0de11ff4ffa507b3c91eada0307bb45fea28112a Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2021-07-27 22:08:38 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2023-01-13 20:10:59 +0000 sysutils/zrepl: warn of impending SSL certificate expiration Add a periodic script that will warn of impending certifiate expiration. PR: 257464 Approved by: dries (maintainer, ports) Sponsored by: Axcient sysutils/zrepl/Makefile | 7 ++++-- sysutils/zrepl/files/500.zrepl.in (new) | 41 +++++++++++++++++++++++++++++++++ sysutils/zrepl/files/pkg-message.in | 10 ++++++++ sysutils/zrepl/pkg-plist | 1 + 4 files changed, 57 insertions(+), 2 deletions(-)
Thanks for the review, driesm !