Repository navigation
Conversation
Just add the basic skeleton.
This way nothing lives in the critical path of ssh to host; which admins will turn to (ideally only) when something is badly wrong. It's also just less code and keeps the functionality in one place.
|
I tested login sessions but not tainting yet. /hold |
|
I agree that this is likely a better path. However we still cannot apply taints at the moment as it would break e2e. I suggest for the time being, have this to write to |
|
(One minor point of trivia: this approach will also work if someone logs in on a "local" console; which you'd have to set a password via a MachineConfig to do. Think bare metal physical console, and most of the cloud providers offer a connection to a virtual console) |
Ah. So no matter what this code has to change. EDIT: Done ⬇️
Yeah. My vote is we change the default |
We still have to port the tests.
|
Tested this patch stack and as expected it just results in some logs: |
|
/retest |
|
/hold cancel Although we still aren't decided if this is the way to go. |
|
/retest |
|
/retest |
jlebon
left a comment
There was a problem hiding this comment.
Some minor suggestions, but looks sane to me overall. Will let others take a look.
/approve
| } | ||
| if err := dn.applySSHTaint(); err != nil { | ||
| glog.Errorf("Error during taint: cannot apply taint due to: %v", err) | ||
| } |
There was a problem hiding this comment.
We'll need to remember to write any errors here to the exitCh once we enable this. Might be worth adding a comment about that somewhere in there.
| return | ||
| case msg := <-sessionNewCh: | ||
| glog.Infof("Detected a new logged in session: %v", msg) | ||
| glog.Infof("Login session taints node") |
There was a problem hiding this comment.
Minor: do we need this line given the logging in applySSHTaint already?
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, jlebon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
The one behaviour that could be an issue is, if the user ssh's in before the The original case of the file allows for us to check the pre-existence of a write once the |
|
/test e2e-aws |
|
/test e2e-aws Failures look unrelated to this PR. |
|
/retest |
|
|
|
@cgwalters: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
@cgwalters: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Rebase needed due to taint work being removed. |
|
/close Superceded by #359 |
|
@cgwalters: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This way nothing lives in the critical path of ssh to host; which
admins will turn to (ideally only) when something is badly wrong.
It's also just less code and keeps the functionality in one place.