Skip to content

feat!(W-23688009): enforce password length and complexity minimums - #1490

Open
k80bowman wants to merge 6 commits into
mainfrom
k80/pw-length-complexity
Open

feat!(W-23688009): enforce password length and complexity minimums#1490
k80bowman wants to merge 6 commits into
mainfrom
k80/pw-length-complexity

Conversation

@k80bowman

@k80bowman k80bowman commented Aug 7, 2026

Copy link
Copy Markdown

What does this PR do?

Enforces the previously-warned minimums on org generate password (and the legacy force:user:password:generate) as hard flag-validation errors:

  1. --length values below 20 now fail validation instead of being silently raised to 20.
  2. --complexity values below 3 now fail validation instead of being silently raised to 3.

The Summer '26 deprecation warnings (defaultingToLength20Password, defaultingToComplexity3Password) and their runtime clamping logic have been removed. Flag min values, help text, and tests were updated to match.

BREAKING CHANGE: --length below 20 and --complexity below 3 now error instead of being silently corrected.

What issues does this PR fix or reference?

@W-23688009@

Previously values below 20 were clamped to 20 with a warning.
Now they fail flag validation.

BREAKING CHANGE: `--length` values below 20 now error instead
of being silently raised to 20.
Previously values below 3 were clamped to 3 with a warning.
Now they fail flag validation.

BREAKING CHANGE: `--complexity` values below 3 now error instead
of being silently raised to 3.
@k80bowman k80bowman changed the title K80/pw length complexity feat!(W-23688009): enforce password length and complexity minimums Aug 7, 2026
@k80bowman
k80bowman marked this pull request as ready for review August 7, 2026 13:19
@k80bowman
k80bowman requested a review from a team as a code owner August 7, 2026 13:19
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