-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
caddypki: Load intermediate for signing on-the-fly #4669
Conversation
So apparently this still isn't working yet. The callback does get called, but it still provides the old value. Is it because we need to use a pointer receiver for |
68297ad
to
daf715c
Compare
After discussing with @francislavoie in Slack, I also feel confident that a pointer is necessary here, @ronau -- I think the latest patch has potential to fix the problem unless there's something else going on. Basically, the closure has access to the original copy of Can you please try it and let us know? Thanks! |
Thanks a lot for the explanation!! |
Re pointer receiver stuff, played around with this playground to prove it to myself that a pointer is needed on the function if a closure defined within reads from the struct: https://go.dev/play/p/9GWIdVOTA6j |
This is probably the last remaining big fix I'd like to get in before the release candidate, once we have confirmation it works. 🤞 |
A quick update: Until now the intermediate cert has not been renewed (validity: Most recent backend certificate re-issue took place at 16:28 today
I will wait until tomorrow noon. By then the intermediate for sure should have been renewed, I suppose. Maybe you can reopen the topic over there at the community forum? |
Great, thanks for the update. I suppose it's been 4-ish days since it was issued, and 2/3 through its lifetime would be about 4.6 days, so... yeah, hopefully by tomorrow afternoon. Maybe just a smidgin too early... thanks for keeping us posted! (Forum topic reopened btw.) |
Sorry about that, I reopened it and picked "in two weeks" thinking that would be enough time to do a round of testing 😂 guess it didn't work the first time. Your testing is super appreciated @ronau, thank you! |
Ok, so yesterday I didn't manage to have a look. Anyway, I've got some good news. Here's the most recent renewal of the intermediate cert:
About an hour later, the acme server reissued the backend caddy's certificate, this time with the new intermediate:
So seems like the fix really did it!!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you very much for your testing, @ronau , and for the patch, @francislavoie -- nice job figuring out the pointer receiver. And thanks to the Smallstep team for their support.
Francis, we can merge this but I do want to add a comment explaining the nuance of using a pointer receiver here if that's alright.
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
Fixes #4517
Big thanks to @maraino for adding an API in
smallstep/certificates
so that we can fix this