Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

feat: Multiple SSH keys for Linux & Windows nodes #582

Merged
merged 2 commits into from
Feb 26, 2019

Conversation

PatrickLang
Copy link
Contributor

Reason for Change:
I'd like to use this to add extra single-use SSH keys for the purposes of log collection during Kubernetes upstream test passes. My workflow will be:

  1. Create a SSH keypair
  2. Add that new ssh public key, along with my personal one to the apimodel
  3. Create & deploy the cluster
  4. Run tests using the KUBECONFIG provided by aks-engine
  5. Automatically collect logs when done using SSH from the node with the private key from step 1
  6. Destroy the cluster

This ensures that my personal private key is never stored on a test automation machine, but I can still use it to connect to machines to debug test passes. I can also disable password login on all machines. There's little risk of the private key from step 1 being leaked because it's never used outside that one test pass.

Issue Fixed:
Fixes #515

Requirements:

@PatrickLang
Copy link
Contributor Author

/assign @tariq1890

@codecov
Copy link

codecov bot commented Feb 26, 2019

Codecov Report

Merging #582 into master will increase coverage by 0.04%.
The diff coverage is 84.61%.

@@            Coverage Diff             @@
##           master     #582      +/-   ##
==========================================
+ Coverage   56.74%   56.78%   +0.04%     
==========================================
  Files          91       91              
  Lines       13870    13894      +24     
==========================================
+ Hits         7870     7890      +20     
- Misses       5336     5338       +2     
- Partials      664      666       +2

@tariq1890
Copy link
Contributor

/lgtm

@acs-bot acs-bot added the lgtm label Feb 26, 2019
Copy link
Contributor

@tariq1890 tariq1890 left a comment

Choose a reason for hiding this comment

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

/approve

@acs-bot
Copy link

acs-bot commented Feb 26, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: PatrickLang, tariq1890

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@acs-bot acs-bot merged commit bbcfb2b into Azure:master Feb 26, 2019
jackfrancis added a commit that referenced this pull request Feb 26, 2019
jackfrancis added a commit that referenced this pull request Feb 26, 2019
juhacket pushed a commit to juhacket/aks-engine that referenced this pull request Mar 14, 2019
* Supporting multiple SSH keys on Linux & Windows

* Updating docs
juhacket pushed a commit to juhacket/aks-engine that referenced this pull request Mar 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple SSH keys in linuxProfile
3 participants