The identity settings API marks the lockout fields deprecated and says they have no effect #297

Merged
claude merged 5 commits from feature/32-deprecate-lockout-fields into develop 2026-11-05 08:11:43 -05:00
Owner

The identity settings API marks the three lockout fields (defaultLockoutTimeSpan, maxFailedAccessAttempts, allowedForNewUsers) deprecated, following owner decision Q-REL-6: deprecate now, remove later (#234).

  • The fields. [Obsolete] on the three IdentitySettingsDetail properties makes Swashbuckle emit deprecated: true, and the properties stay in the document. Their descriptions say they have no effect, that sign-in is rate limited by AdminLoginRateLimitOptions, and that a later release removes them.
  • Behaviour. GET and PATCH behave exactly as before. The only reader in our code, one test, has a narrow CS0618 suppression with a reason, and the build has 0 warnings.
  • Documentation.
    • The controller and model summaries no longer describe a lockout policy that sign-in enforces.
    • README Security and the Identity page note announce the deprecation.
    • The three NINLIL_IDENTITY_LOCKOUT_* rows in ENVIRONMENT.md start with "Deprecated, no effect".
    • CHANGELOG Unreleased has a Deprecated entry.
    • Nothing contradicts the per-account current-password rate limit (#284), which never locks an account.
  • Snapshot and client (#33) are in their own commits. The client gains @deprecated JSDoc on the three fields, and the console's lint and build show no new warning.

Tests:

  • New OpenApiDeprecationTests. Its three theory cases were red before the change, and a guard checks that requiredLength is not deprecated.
  • Whole Ninlil.Web.Tests 2074, console 1648.
  • The verifier passed the change. Its findings are fixed in the last two commits: the stale controller summary and two over-long lines.

Closes #32
Closes #33

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

The identity settings API marks the three lockout fields (`defaultLockoutTimeSpan`, `maxFailedAccessAttempts`, `allowedForNewUsers`) deprecated, following owner decision Q-REL-6: deprecate now, remove later (#234). - **The fields.** `[Obsolete]` on the three `IdentitySettingsDetail` properties makes Swashbuckle emit `deprecated: true`, and the properties stay in the document. Their descriptions say they have no effect, that sign-in is rate limited by `AdminLoginRateLimitOptions`, and that a later release removes them. - **Behaviour.** GET and PATCH behave exactly as before. The only reader in our code, one test, has a narrow `CS0618` suppression with a reason, and the build has 0 warnings. - **Documentation.** - The controller and model summaries no longer describe a lockout policy that sign-in enforces. - README Security and the Identity page note announce the deprecation. - The three `NINLIL_IDENTITY_LOCKOUT_*` rows in ENVIRONMENT.md start with "Deprecated, no effect". - CHANGELOG `Unreleased` has a Deprecated entry. - Nothing contradicts the per-account current-password rate limit (#284), which never locks an account. - **Snapshot and client (#33)** are in their own commits. The client gains `@deprecated` JSDoc on the three fields, and the console's lint and build show no new warning. Tests: - New `OpenApiDeprecationTests`. Its three theory cases were red before the change, and a guard checks that `requiredLength` is not deprecated. - Whole `Ninlil.Web.Tests` 2074, console 1648. - The verifier passed the change. Its findings are fixed in the last two commits: the stale controller summary and two over-long lines. Closes #32 Closes #33 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #32

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #32

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Closes #32
Closes #33

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #32

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
The OpenAPI snapshot carries the re-wrapped identity settings description
Some checks failed
Build / Build Binary (macos-amd64) (push) Has been skipped
Build / Build Binary (windows-amd64) (push) Has been skipped
Build / Build Binary (linux-arm64) (push) Has been skipped
Build / Build Binary (macos-arm64) (push) Has been skipped
Build / Build Arch Linux Packages (push) Has been skipped
Build / Smoke Test the Windows Binary (push) Has been skipped
Build / Build and Test Deb and RPM Packages (push) Has been skipped
Build / Build and Push Image (push) Has been skipped
Build / Publish Release (push) Has been skipped
Build / Pipeline (push) Failing after 0s
Build / Test .NET (pull_request) Failing after 19m12s
Build / Pack and Push NuGet Packages (common) (pull_request) Has been skipped
Build / Stage Draft Release (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (push) Has been skipped
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-server) (push) Has been skipped
Build / Build Binary (macos-amd64) (pull_request) Has been skipped
Build / Build Binary (linux-arm64) (pull_request) Has been skipped
Build / Build Binary (windows-amd64) (pull_request) Has been skipped
Build / Build Binary (macos-arm64) (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (pull_request) Has been skipped
Build / Pipeline (pull_request) Failing after 0s
Build / Build Arch Linux Packages (pull_request) Has been skipped
Build / Build and Push Image (pull_request) Has been skipped
Build / Build and Test Deb and RPM Packages (pull_request) Has been skipped
Build / Smoke Test the Windows Binary (pull_request) Has been skipped
Build / Publish Release (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (push) Has been skipped
1f7d16890f
Refs #33

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit 23b144ab8b into develop 2026-11-05 08:11:43 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil!297
No description provided.