Skip to content

Set SSH private key file permissions to 0600 - #1769

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
rabi:private_key
Jan 29, 2026
Merged

openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
rabi:private_key

Conversation

@rabi

@rabi rabi commented Jan 21, 2026 •

Copy link
Copy Markdown
Contributor

OpenSSH requires private keys to have mode 0600 when the file owner matches the process UID. With restricted-v2 SCC (default), the process runs as a random UID different from the file owner, so OpenSSH skips the check. But when using NFS mounts for development (hostmount-anyuid SCC), ansible-ee containers run as root which matches the key file
owner, triggering the strict permission check.

Set defaultMode to 384 (0600) for SSH key volumes to ensure OpenSSH accepts the key.

@openshift-ci
openshift-ci Bot requested review from dprince and rebtoor January 21, 2026 03:36
OpenSSH requires private keys to have mode 0600 when the file owner
matches the process UID. With restricted-v2 SCC (default), the process
runs as a random UID different from the file owner, so OpenSSH skips
the check. But when using NFS mounts for development (hostmount-anyuid
SCC), ansible-ee containers run as root which matches the key file
owner, triggering the strict permission check.

Set defaultMode to 384 (0600) for SSH key volumes to ensure OpenSSH
accepts the key.

Signed-off-by: rabi <ramishra@redhat.com>
@rabi

rabi commented Jan 21, 2026

Copy link
Copy Markdown
Contributor Author

/test functional

@rabi
rabi requested review from abays and slagle January 28, 2026 04:57

@abays abays left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci

openshift-ci Bot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, rabi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rabi

rabi commented Jan 29, 2026

Copy link
Copy Markdown
Contributor Author

/test openstack-operator-build-deploy-kuttl

@openshift-merge-bot
openshift-merge-bot Bot merged commit 5258795 into openstack-k8s-operators:main Jan 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants