Skip to content

fix(core): drop unused bruteforce_attempts_ip index - #66000

Merged
susnux merged 2 commits into
masterfrom
fix/bruteforce-drop-ip-index
Nov 2, 2026
Merged

susnux merged 2 commits into
masterfrom
fix/bruteforce-drop-ip-index

Conversation

@GhassenKefi

@GhassenKefi GhassenKefi commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Brute force attempts are only looked up and reset by subnet, and the cleanup job filters on the occurred column. No query filters on ip, so the index only adds write overhead on every registered attempt.

Fixes #49841

Assisted-by: ClaudeCode:claude-opus-5-5

  • Resolves: #

Summary

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Brute force attempts are only looked up and reset by subnet, and the
cleanup job filters on the occurred column. No query filters on ip, so
the index only adds write overhead on every registered attempt.

Fixes #49841

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ghassen kefi <ghassen.kefi.dev@gmail.com>
@GhassenKefi
GhassenKefi requested a review from a team as a code owner October 29, 2026 08:25
@GhassenKefi
GhassenKefi requested review from Altahrim and removed request for a team October 29, 2026 08:25
@GhassenKefi GhassenKefi self-assigned this Oct 29, 2026
@GhassenKefi GhassenKefi added the 3. to review Waiting for reviews label Oct 29, 2026
@GhassenKefi
GhassenKefi requested a review from susnux October 29, 2026 08:26

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not sure this is needed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also remove from the old index where this was added

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. the failing test i think it's a test issue not something relevent to what i pushed

Fresh installs no longer create the index, and the migration test is
dropped as it only covered a trivial schema change.

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Ghassen kefi <ghassen.kefi.dev@gmail.com>
@susnux
susnux merged commit 24864ce into master Nov 2, 2026
181 of 186 checks passed
@susnux
susnux deleted the fix/bruteforce-drop-ip-index branch November 2, 2026 12:39
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked because it has been closed for more than 7 days. As we do not monitor merged or closed pull requests, we are locking this pull request to prevent further comments from getting lost in the noise.
If you discovered any issues with this pull request, please open a new issue instead. In case you want to discuss this pull request or have further questions, please use our forum: https://help.nextcloud.com

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Unnecessary index bruteforce_attempts_ip

4 participants