-
Notifications
You must be signed in to change notification settings - Fork 841
fix(plugins): fix ssh host key bad permissions error #2716
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Hyeonki Hong <[email protected]>
|
/test |
|
@astefanutti: No presubmit jobs available for kubeflow/trainer@master In 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. |
|
/lgtm |
|
/ok-to-test |
andreyvelich
left a comment
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.
/assign @tenzen-y
Pull Request Test Coverage Report for Build 16119492403Details
💛 - Coveralls |
|
New changes are detected. LGTM label has been removed. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Hyeonki Hong <[email protected]>
|
@astefanutti |
|
ping @tenzen-y |
| WithPath(constants.MPISSHAuthorizedKeys), | ||
| ) | ||
|
|
||
| if *info.RuntimePolicy.MLPolicySource.MPI.SSHAuthMountPath == "/root/.ssh" { |
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.
It might not be a typical use case, but would that'd be safer to check if the DefaultMode hasn't already been set, e.g. in the training runtime, and only set it if it's nil?
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.
Because apply.UpsertVolumes replaces the volume if the name matches, or adds it if it's not present, checking DefaultMode in the training runtime doesn't seem meaningful.
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
/remove-lifecycle stale |
What this PR does / why we need it:
This PR ensures that the SSH private key secret is mounted with the correct permissions (0600).
When using
.spec.mlPolicy.mpi.sshAuthMountPath=/root/.ssh, the following error occurs if the key is mounted with default permissions:To prevent this issue, the secret is now mounted with 0600 permissions.
Which issue(s) this PR fixes (optional, in
Fixes #<issue number>, #<issue number>, ...format, will close the issue(s) when PR gets merged):Fixes #
Checklist: