Skip to content

Parse and handle SSH public keys in different formats#780

Closed
trstringer wants to merge 3 commits into
canonical:masterfrom
trstringer:thstring/ssh-key-parsing-and-handling
Closed

Parse and handle SSH public keys in different formats#780
trstringer wants to merge 3 commits into
canonical:masterfrom
trstringer:thstring/ssh-key-parsing-and-handling

Conversation

@trstringer
Copy link
Copy Markdown
Contributor

@trstringer trstringer commented Jan 20, 2021

Proposed Commit Message

If SSH public keys from IMDS are in the OpenSSH format, then consume them directly. Otherwise, utilize the OVF path to retrieve the OpenSSH-formatted public keys.

Additional Context

This is the long-term fix for the regression that was fixed with the temporary/short-term PR #760

Test Steps

Checklist:

  • My code follows the process laid out in the documentation
  • I have updated or added any unit tests accordingly
  • I have updated or added any documentation accordingly

Copy link
Copy Markdown
Collaborator

@OddBloke OddBloke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Thomas, a couple of high-level observations here; I haven't had a chance to dig in in more detail yet.

Comment thread cloudinit/sources/DataSourceAzure.py Outdated
Comment thread cloudinit/sources/DataSourceAzure.py Outdated
@OddBloke OddBloke self-assigned this Jan 29, 2021
@github-actions
Copy link
Copy Markdown

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, please do feel free to reopen it if you wish to continue working on it.)

@github-actions github-actions Bot added the stale-pr Pull request is stale; will be auto-closed soon label Feb 17, 2021
@trstringer
Copy link
Copy Markdown
Contributor Author

@OddBloke, let me know if there's anything else you want to see changed in this PR! // @mitechie

@github-actions github-actions Bot closed this Feb 25, 2021
@OddBloke OddBloke reopened this Feb 25, 2021
@github-actions github-actions Bot closed this Mar 5, 2021
@trstringer
Copy link
Copy Markdown
Contributor Author

Can I get this PR re-opened? @OddBloke @mitechie

@OddBloke
Copy link
Copy Markdown
Collaborator

OddBloke commented Mar 9, 2021

Yep, and let me remove that tag too to stop it happening again.

@OddBloke OddBloke reopened this Mar 9, 2021
@OddBloke OddBloke removed the stale-pr Pull request is stale; will be auto-closed soon label Mar 9, 2021
@github-actions
Copy link
Copy Markdown

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.)

@github-actions github-actions Bot added the stale-pr Pull request is stale; will be auto-closed soon label Mar 24, 2021
@mitechie mitechie removed the stale-pr Pull request is stale; will be auto-closed soon label Mar 24, 2021
@trstringer trstringer force-pushed the thstring/ssh-key-parsing-and-handling branch from 6425945 to 332edc8 Compare March 25, 2021 16:28
Comment thread cloudinit/sources/DataSourceAzure.py Outdated
@trstringer trstringer force-pushed the thstring/ssh-key-parsing-and-handling branch from e445629 to 766505d Compare April 1, 2021 20:32
@trstringer
Copy link
Copy Markdown
Contributor Author

@OddBloke, I've implemented @smoser's suggestions and this PR is ready for review. Thanks!

@trstringer trstringer requested a review from OddBloke April 5, 2021 15:49
Copy link
Copy Markdown
Collaborator

@OddBloke OddBloke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Thomas, this looks good to me! I have one proposed improvement inline, but that's a nit so I think this is fine to land without it.

What I would like to see is an integration test! I know that you have other work contingent on this landing, so we can do that as a follow-up PR to make life easier. This will likely require a little framework modification, but I believe we have the broad support for it in place. I've just filed https://bugs.launchpad.net/cloud-init/+bug/1922801, I'll expand over there.

Comment thread cloudinit/sources/DataSourceAzure.py Outdated
@trstringer trstringer force-pushed the thstring/ssh-key-parsing-and-handling branch from 0ab189f to 12f62d9 Compare April 7, 2021 17:30
@trstringer trstringer force-pushed the thstring/ssh-key-parsing-and-handling branch from 36a1dca to 3856505 Compare April 26, 2021 15:57
@trstringer
Copy link
Copy Markdown
Contributor Author

Closing this PR as its code was merged in #865.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants