Skip to content

Conversation

@rabi
Copy link
Contributor

@rabi rabi commented Jan 21, 2026

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
Copy link
Contributor Author

rabi commented Jan 21, 2026

/test functional

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

@abays abays left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 28, 2026

[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

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 28, 2026

@rabi: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/openstack-operator-build-deploy-kuttl 5b079b3 link unknown /test openstack-operator-build-deploy-kuttl

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

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