Skip to content

Enable custom password requirements and rejects#677

Merged
fmount merged 1 commit intoopenstack-k8s-operators:mainfrom
dciabrin:custom-pw-validation
Mar 26, 2026
Merged

Enable custom password requirements and rejects#677
fmount merged 1 commit intoopenstack-k8s-operators:mainfrom
dciabrin:custom-pw-validation

Conversation

@dciabrin
Copy link
Copy Markdown
Contributor

Update the Password validation interface so that a one can specify custom requirements, rejects or both.

Specifying rules is optional, if none are provided, the validation will be performed by enforcing the default rules defined in the libcommon's package.

Assisted-By: Claude (claude-sonnet-4.5)

Copy link
Copy Markdown
Contributor

@fmount fmount left a comment

Choose a reason for hiding this comment

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

@dciabrin the direction looks good to me. I only have a comment related to the code duplication generated by the ValidatePassword function that we just removed. I think we can go further, remove it entirely and adjust the existing tests to accept an empty PasswordValidator{}.

Comment thread modules/common/secret/password.go
Update the Password validation interface so that a one can
specify custom requirements, rejects or both.

Specifying rules is optional, if none are provided, the validation
will be performed by enforcing the default rules defined in the
libcommon's package.

Assisted-By: Claude (claude-sonnet-4.5)
@dciabrin dciabrin force-pushed the custom-pw-validation branch from 5d27335 to f38e6c8 Compare March 26, 2026 07:06
@fmount
Copy link
Copy Markdown
Contributor

fmount commented Mar 26, 2026

/approve
/lgtm

@fmount fmount merged commit 8a2950f into openstack-k8s-operators:main Mar 26, 2026
2 checks passed
@fmount
Copy link
Copy Markdown
Contributor

fmount commented Mar 26, 2026

@dciabrin do you want to try a follow up w/ mariadb-operator?

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.

2 participants