Skip to content

Deprecate "max-consecutive" in favor of two new statements: "max-re… - #1255

Merged
rmondello merged 1 commit into
apple:mainfrom
rmondello:main
Sep 10, 2026
Merged

rmondello merged 1 commit into
apple:mainfrom
rmondello:main

Conversation

@rmondello

@rmondello rmondello commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Deprecate "max-consecutive" in favor of two new statements: "max-repeating" and "max-sequential"

The "consecutive" within "max-consecutive" is ambiguous. It's unclear if anyone means "maximum number of back-to-back
repeated characters" (e.g. "aaa" or "777") or "maximum number of back-to-back characters in a sequence" (e.g. "abc" or
"789"). We're going to fix this by adding "max-repeating" and "max-sequential" and effectively deprecating
"max-consecutive" from the password rules language, but supporting it going forward as an alias to both
"max-repeating" and "max-sequential".

max-repeating: Defines the maximum number of identical characters allowed to be back-to-back in a password.

  • e.g. "aaa" is valid in max-repeating: 3, but not max-repeating: 2.

max-sequential: Defines the maximum number of characters adjacent to each other, directional within the ascii lookup
table within ranges "a-z", "A-Z", and "0-9", allowed to be back-to-back in a password.

  • e.g. "abc" is valid in max-sequential: 3, but not max-sequential: 2.
  • e.g. "123" is valid in max-sequential: 3, but not max-sequential: 2.
  • e.g. "321" is valid in max-sequential: 3, but not max-sequential: 2.
  • e.g. "cba" is valid in max-sequential: 3, but not max-sequential: 2.

Apple documentation needs to be updated after this change. I will work on fixing that.

Overall Checklist

@rmondello rmondello changed the title Deprecate "max-consequential" in favor of two new statements: "max-re… Deprecate "max-consecutive" in favor of two new statements: "max-re… Sep 10, 2026
…ating" and "max-sequential"

The "consecutive" within "max-consecutive" is ambiguous. It's unclear if anyone means "maximum number of back-to-back
repeated characters" (e.g. "aaa" or "777") or "maximum number of back-to-back characters in a sequence" (e.g. "abc" or
"789"). We're going to fix this by adding "max-repeating" and "max-sequential" and effectively deprecating
"max-consecutive" from the password rules language, but supporting it going forward as an alias to *both*
"max-repeating" and "max-sequential".

max-repeating: Defines the maximum number of identical characters allowed to be back-to-back in a password.

* e.g. "aaa" is valid in `max-repeating: 3`, but not `max-repeating: 2`.

max-sequential: Defines the maximum number of characters adjacent to each other, directional within the ascii lookup
    table within ranges "a-z", "A-Z", and "0-9", allowed to be back-to-back in a password.

* e.g. "abc" is valid in `max-sequential: 3`, but not `max-sequential: 2`.
* e.g. "123" is valid in `max-sequential: 3`, but not `max-sequential: 2`.
* e.g. "321" is valid in `max-sequential: 3`, but not `max-sequential: 2`.
* e.g. "cba" is valid in `max-sequential: 3`, but not `max-sequential: 2`.

Apple documentation needs to be updated after this change. I will work on fixing that.
@rmondello
rmondello merged commit ee8a74a into apple:main Sep 10, 2026
5 checks passed
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