DLPX-86523 CIS: mount appliance user home at /home#565
Open
prakashsurya wants to merge 1 commit into
Open
Conversation
Point the delphix user's home directory at /home/delphix instead of /export/home/delphix so the home dataset can be mounted at /home, satisfying the CIS checks for the /home partition. The dataset mount and the upgrade-time migration (the /export/home symlink and /home fstab hardening) are handled entirely in appliance-build, so on this side we only update the ansible tasks to reference /home. The explicit base-directory creation is also dropped, since /home is a standard mountpoint that already exists by the time these tasks run. Co-Authored-By: Prakash Surya <prakash.surya@perforce.com> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
CIS hardening requires the home filesystem to be mounted at the standard
/homelocation. Today the home dataset is mounted at/export/home,which causes the following CIS report failures:
/homepartition in/etc/fstab/homeusing themountcommandnodevmount option for/homein/etc/fstabnodevoption for/homeusingmountSolution
Move the appliance
delphixuser's home directory from/export/home/delphixto
/home/delphixby updating the Ansible tasks to reference/home.This is the
delphix-platformhalf of a flag-day change. The dataset mount,the
/export/home->/homebackward-compat symlink, and the/homefstabnodev,nosuidhardening are all handled on the appliance-build side:Because appliance-build now owns the
/homemount, the previous explicitbase-directory creation task (and its now-stale comment about a "non-standard"
home location) is dropped —
/homeis a standard mountpoint that alreadyexists when these tasks run, so
create_home: yespopulates/home/delphixon its own.
Testing Done
Refer to the testing section in the appliance-build counterpart:
delphix/appliance-build#869