Skip to content

[1.0.0] Add the core logic for replica password policy handling.#210

Merged
ChadSikorra merged 1 commit into
FreeDSx:mainfrom
ChadSikorra:upgrade/replica-ppolicy-part1
Jul 11, 2026
Merged

[1.0.0] Add the core logic for replica password policy handling.#210
ChadSikorra merged 1 commit into
FreeDSx:mainfrom
ChadSikorra:upgrade/replica-ppolicy-part1

Conversation

@ChadSikorra

@ChadSikorra ChadSikorra commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

A replica should maintain local state for password policy to correctly enforce lockouts without having to rely on upstream replication to enforce it. Upstream will eventually converge via journaling (and we will forward the events upstream). But the replica must not give malicious actors unlimited password attempts.

This is only part 1. A follow up PR will add the PDO implementation, which needs new schema + the write handling. Additionally, the forwarding of password policy events (attempts / locks / etc) is another follow up PR, as it will rollup and be forwarded in a background task similar to how the journal already has a background task for pruning. That will reduce the amount of traffic getting sent to the upstream primary and also allow it to gracefully handle the case where the upstream may be down or unavailable.

A replica should maintain local state for password policy to correctly enforce lockouts without having to rely on upstream replication to enforce it. Upstream will eventually converge (and we will forward the events upstream). But the replica must not give malicious actors unlimited password attempts.
@ChadSikorra ChadSikorra merged commit 6342bd8 into FreeDSx:main Jul 11, 2026
22 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant