Skip to content

[18-stable] Validate PasswordSecret namespace matches OpenStackBaremetalSet namespace - #433

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:18-stablefrom
openshift-cherrypick-robot:cherry-pick-422-to-18-stable
Jul 29, 2026
Merged

[18-stable] Validate PasswordSecret namespace matches OpenStackBaremetalSet namespace#433
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:18-stablefrom
openshift-cherrypick-robot:cherry-pick-422-to-18-stable

Conversation

@openshift-cherrypick-robot

Copy link
Copy Markdown

This is an automated cherry-pick of #422

/assign rabi

…pace

The PasswordSecret field (corev1.SecretReference) was not validated to
restrict its namespace. This could allow a user to reference a secret
in an arbitrary namespace and have the operator read it on their behalf.

Add validation that PasswordSecret must be in the OpenStackBaremetalSet's
own namespace (where the user already has RBAC access), since this secret
is only consumed by this operator and not passed to Metal3 directly.

Also enforce secret namespace validation on update (previously only on
create).

Signed-off-by: rabi <ramishra@redhat.com>
@openshift-ci openshift-ci Bot added the lgtm label Jul 29, 2026
@openshift-ci

openshift-ci Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, 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-merge-bot
openshift-merge-bot Bot merged commit 3b64c2f into openstack-k8s-operators:18-stable Jul 29, 2026
5 checks 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