Skip to content

Move to VerifySecretFields to reject invalid passwords#629

Open
fmount wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
fmount:pwd_validation
Open

Move to VerifySecretFields to reject invalid passwords#629
fmount wants to merge 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 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

@openshift-ci openshift-ci bot requested review from abays and dprince March 2, 2026 09:42
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: fmount
Once this PR has been reviewed and has the lgtm label, please assign dprince for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@fmount fmount force-pushed the pwd_validation branch 4 times, most recently from 3cda0bd to 4524eaf Compare March 2, 2026 10:18
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>
@fmount
Copy link
Contributor Author

fmount commented Mar 2, 2026

/test images

@fmount fmount requested a review from stuggi March 2, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant