feat: enable cert renewal when using cloud profiles with Cumulocity#3783
Merged
reubenmiller merged 1 commit intothin-edge:mainfrom Sep 18, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
d050034 to
74e8c05
Compare
74e8c05 to
15a133d
Compare
Contributor
Robot Results
|
Contributor
didier-wenzek
left a comment
There was a problem hiding this comment.
The new doc is really helpful. One point is missing, though.
Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
1ad5e1a to
f9d7290
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Add a new systemd service template to handle the certificate renewal when using a Cumulocity mapper with cloud profiles. The previous service
tedge-cert-renewer@.serviceisn't able to support cloud profiles as the template variable (the part after the@sign) is used for the mapper type, and not the cloud profile name.The new
tedge-cert-renewer-c8y@.timerunit (not the-c8ybefore the@sign!) will be automatically activated when thetedge-mapper-c8y@.serviceis enabled/created. The timer then will trigger the correspondingtedge-cert-renewer-c8y@.servicewhich then does the actual certificate renewal commands for the given cloud profile.Note: You can manually enable and start the renewal process for a given Cumulocity cloud profile using the following commands:
systemctl enable tedge-cert-renewer-c8y@second.timer systemctl start tedge-cert-renewer-c8y@second.timerThe PR also included an extension to the existing cloud profiles documentation to provide an end-to-end example of how to setup a second connection and going into some details about why (to reflect a customer scenario).
Types of changes
Paste Link to the issue
Checklist
just prepare-devonce)just formatas mentioned in CODING_GUIDELINESjust checkas mentioned in CODING_GUIDELINESFurther comments