Add optional SSH access to worker pods for pam_slurm_adopt #66
+293
−19
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add optional SSH access to NodeSet worker pods with persistent host keys. This feature is controlled by a new
ssh.enabledfield in the NodeSet CRD, making it opt-in with zero overhead when disabled. This implementation follows the same pattern as LoginSet for consistency.Access control is enforced by
pam_slurm_adopt(configured in the container images), which restricts SSH access to users with active jobs on the worker node.Changes:
NodeSetSshtype withEnabledfield to NodeSet CRD specSshHostKeys()method to generate namespaced name for SSH keys secretBuildWorkerSshHostKeys()for SSH key generation (RSA, Ed25519, ECDSA)ssh.enabled: trueand expose SSH port (22)worker_secret.gofollowing the same pattern aslogin_secret.goworker_secret_test.goRelated PR in containers repo: SlinkyProject/containers#6
Breaking Changes
N/A
Testing Notes
Built operator based on this branch and SlinkyProject/containers#6
Verified: