-
Notifications
You must be signed in to change notification settings - Fork 67
feat: add certificate renewal service #3523
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
Conversation
Robot Results
|
9552a12
to
b9b3b30
Compare
f14d88e
to
d7d1970
Compare
d7d1970
to
ad9f465
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
ad9f465
to
9e99075
Compare
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.
Approved. Nice to see that no more script is required to wrap tedge cert
.
; Always run the timer on time | ||
AccuracySec=1us |
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.
Surprising to have such a precise accuracy for randomized delays, but indeed recommended.
Execute Command tedge reconnect c8y | ||
|
||
# Enforce a renewal using the service | ||
Execute Command sudo tedge config set certificate.validity.minimum_duration 365d |
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.
Smart way to force a renewal without hacking the service nor the certificate :-)
Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
97cf9ea
to
3b2217b
Compare
Proposed changes
Add certificate renewal service which is a dependency of the tedge-mapper-c8y service (and its systemd template variant).
The renewal is called by the systemd components (timer and script), however a script has been created to reliably renew the certificate and verify it and roll back to the previous certificate if necessary.
Note: The certificate renewer service will be installed and enabled by default when using the tedge-mapper-c8y service. However the renewal will fail if the user has not activated the new Cumulocity certificate-authority feature.
Types of changes
Paste Link to the issue
Checklist
just prepare-dev
once)just format
as mentioned in CODING_GUIDELINESjust check
as mentioned in CODING_GUIDELINESFurther comments