Skip to content

Move to VerifySecretFields to reject invalid passwords#683

Merged
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
fmount:pwd_validation
Mar 10, 2026
Merged

Move to VerifySecretFields to reject invalid passwords#683
openshift-merge-bot[bot] merged 1 commit intoopenstack-k8s-operators:mainfrom
fmount:pwd_validation

Conversation

@fmount
Copy link
Contributor

@fmount fmount commented Mar 2, 2026

Service passwords are usually defined in the osp-secret and propagated to their config. This patch moves from verifyServiceSecret (or GetSecret) to the new lib-common VerifySecretFields that is able to call a validator to accept or reject the password field and set the appropriate errorMsg to the InputReady Condition.

This patch also reworks the associated conditions to be consistent with the other operators.

Jira: https://issues.redhat.com/browse/OSPRH-26429

Service passwords are usually defined in the osp-secret and propagated
to their config. This patch moves from verifyServiceSecret to the new
lib-common VerifySecretFields that is able to call a validator to accept
or reject the password field and set the appropriate errorMsg to the
InputReady Condition.
This patch also reworks the associated conditions to be consistent with
 the other operators.

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
@openshift-ci openshift-ci bot requested review from dprince and steveb March 2, 2026 11:10
@fmount fmount requested a review from stuggi March 2, 2026 11:11
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 10, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fmount, hjensas

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 9f43f52 into openstack-k8s-operators:main Mar 10, 2026
7 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