pkg/sshd: Remove default bind of /root/.ssh #3871
Merged
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.
Signed-off-by: Michael Aldridge aldridge.mac@gmail.com
- What I did
Removed the default bind mount of
/root/.ssh
in the sshd package. When using the metadata package to summon keys, the ssh directory will not be present in root's home folder on the host filesystem because the keys are summoned dynamically. However, its not possible to just add the new bind for theauthorized_keys
file because the bind to the nonexistent directory prevents sshd from being able to start. This change removes the default bind since it can be trivially added back usingbinds.add
for anyone who wishes to statically provide anauthorized_keys
file at build time.- How I did it
A single elegant emacs command.
- How to verify it
Observe the diff, see that the bind mount is no longer present in
build.yml
.- Description for the changelog
Remove
/root/.ssh
default bind to improve portability. Bind may be re-added withbinds.add
.