-
Notifications
You must be signed in to change notification settings - Fork 543
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
[canonical-livepatch-onprem] Add Canonical Livepatch on-prem server support #3418
Conversation
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
|
||
def setup(self): | ||
self.add_copy_spec([ | ||
"/etc/livepatchd.yaml", |
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, just a question: is there an api token or a user/pass we should obfuscate in this file?
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.
There are both, actually - user credentials and a token that authenticates against upstream livepatch.. User password is already encoded, but perhaps not a bad idea to obfuscate. Is that something we'd do in the plugin directly, or elsewhere in sos?
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.
You can do it directly in the plugin itself. Here's an example of obfuscation in a yaml file:
https://github.com/sosreport/sos/blob/main/sos/report/plugins/juju.py#L65
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.
Awesome, thanks for the link! I have some obfuscation code in now that looks like it's having the intended effect 🙂 I'll push once I get the simplification that Arif mentioned sorted out.
if you added |
Hey @arif-ali , I tried doing the following as (I think you) suggested:
...but I didn't see the journal or service status in the resultant sos report? Normally these were appearing in |
You're missing a comma in |
Awesome, got it! Thanks for the feedback - pushed an update to implement these things. Looking forward to any more feedback! |
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
Livepatch on-prem server support Resolves: SET-382 Signed-off-by: Adam Vest <[email protected]>
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines