Skip to content

Add maximum constraint for history_length in password policy - #141

Merged
DavidePrincipi merged 2 commits into
mainfrom
sdl-7735
Nov 14, 2025
Merged

DavidePrincipi merged 2 commits into
mainfrom
sdl-7735

Conversation

@stephdl

@stephdl stephdl commented Nov 12, 2025

Copy link
Copy Markdown
Contributor

Introduce a maximum constraint of 24 for the history_length field in the password policy schema to enforce better security practices.

NethServer/dev#7735

@DavidePrincipi DavidePrincipi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it correct to specify also "minimum"? I guess the backend may fail with a negative value...

@stephdl

stephdl commented Nov 12, 2025

Copy link
Copy Markdown
Contributor Author

we could but in that case you are playing with CLI, the UI offers 0 to 24, not more

https://github.com/NethServer/ns8-core/pull/977/files

Do you want to validate CLI as well ?

@DavidePrincipi

Copy link
Copy Markdown
Member

Yes because we now know that allowed values are in range 0-24 or 1-24: please check the minumum.

@DavidePrincipi DavidePrincipi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🤞

@DavidePrincipi
DavidePrincipi merged commit 9d0367a into main Nov 14, 2025
@DavidePrincipi
DavidePrincipi deleted the sdl-7735 branch November 14, 2025 13:55
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