Skip to content

fix: Enforce minimum range boundaries for security compliance (fixes #746)#753

Open
ymh1874 wants to merge 1 commit into
openstack-experimental:mainfrom
ymh1874:fix/746-password-expires-range
Open

fix: Enforce minimum range boundaries for security compliance (fixes #746)#753
ymh1874 wants to merge 1 commit into
openstack-experimental:mainfrom
ymh1874:fix/746-password-expires-range

Conversation

@ymh1874
Copy link
Copy Markdown
Collaborator

@ymh1874 ymh1874 commented Jun 4, 2026

This patch introduces runtime configuration validation rules ensuring that specific security compliance settings (like 'password_expires_days', 'disable_user_account_days_inactive', etc.) mirroring openstack/keystone python implementation.

The config crate has been updated to use the validator crate, and the ConfigManager now invokes validation on startup and file reloads.

Closes #746

openstack-experimental#746)

This patch introduces runtime configuration validation rules ensuring that
specific security compliance settings (like 'password_expires_days',
'disable_user_account_days_inactive', etc.) are explicitly greater than
zero, mirroring openstack/keystone python implementation.

The config crate has been updated to use the validator crate, and the
ConfigManager now forcibly invokes validation on startup and file reloads.

Signed-off-by: Yousef Hussein <ymh1874@gmail.com>
@ymh1874 ymh1874 changed the title config: enforce minimum range boundaries for security compliance (fixes #746) fix: Enforce minimum range boundaries for security compliance (fixes #746) Jun 4, 2026
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.

config.security_compliance.password_expires_days must be >0

1 participant