feat: add url flag to tedge cert download c8y#3689
feat: add url flag to tedge cert download c8y#3689reubenmiller merged 1 commit intothin-edge:mainfrom
Conversation
Signed-off-by: reubenmiller <reuben.d.miller@gmail.com>
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! 🚀 New features to boost your workflow:
|
didier-wenzek
left a comment
There was a problem hiding this comment.
The code is correct, however I wonder why a specific treatment for this setting. There are many place where tedge uses settings that can be overwritten by env variable but not with a command argument. A more systematic fix is what you propose here #3688
A more convincing argument has been given offline. Having the ability to provide the CA host on the command line is helpful when a user wants to switch from one tenant to another. A certificate for the new tenant can then be requested without having to twist the current configuration. |
Robot Results
|
Proposed changes
Add
--urlflag to thetedge cert download c8ycommand which allows users to provde the url where the certificate should be downloaded from.By having a flag, it avoids problems with setting environment variables via sudo if the user does not have the SETENV sudo option set.
Types of changes
Paste Link to the issue
#3686
Checklist
just prepare-devonce)just formatas mentioned in CODING_GUIDELINESjust checkas mentioned in CODING_GUIDELINESFurther comments