tools/write-ssh-key-fingerprints: do not display empty header/footer#817
Conversation
TheRealFalcon
left a comment
There was a problem hiding this comment.
Overall, this change looks good. Might be worth making a function out of the shellcheck comment and the logger options to cleanup the calls to logger.
I appreciate the additional cloud tests, but unfortunately these tests are deprecated now. Docs for the new test framework are here, but the TLDR for this PR would be to add a test to test_keys_to_console.py with a full blacklist in the cloud-config and assert there's no headers/footers (similar to the bottom two tests in the file)
|
@TheRealFalcon Hi there I'll find some time in the next few days to work on this. Regarding the correction of the 'ec2' string - @OddBloke mentioned on IRC that there might be some stuff out there (Subquity?) relying on that value and he would look into it further. I can drop this portion of the PR if its likely to cause problems. |
|
Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close. If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging mitechie, and he will ensure that someone takes a look soon. (If the pull request is closed and you would like to continue working on it, please do tag mitechie to reopen it.) |
4f288dc to
89f2e63
Compare
Done.
Done. |
|
@mitechie ping! |
|
pong! I've cleared the tag and we'll get another round of reviews going. Thanks for the ping. |
TheRealFalcon
left a comment
There was a problem hiding this comment.
Looking good. Just a couple changes the integration test needed
When output of SSH host keys and/or SSH fingerprints are disabled for all keys do not display headers and footers. Prevent risk of message text being interpreted as "logger" option by appending "--" to logger options. Correct syslog output that was tagged with "ec2" regardless of DataSource in use. Now use "cloud-init" tag instead. Various "shellcheck" corrections. Add testcase for disabled output of SSH host keys.
89f2e63 to
a3c5ec1
Compare
When console output of SSH info is disabled show no headers/footers.
Prevent risk of message text being interpreted as "logger" option by
appending "--" to logger options.
Correct syslog output that was tagged with "ec2" regardless of DataSource
in use. Now use "cloud-init" tag instead.
Various "shellcheck" corrections.
Add testcase for disabled output of SSH host keys.
LP: #1915460
Provides alternative solution to #811.
Test Steps
In user-data config add either, or both, of the following lines:
Checklist: