Skip to content

[SYNCOPE-1971] Add authentication failure throttling to avoid brute-force attack#1413

Merged
ilgrosso merged 9 commits into
apache:masterfrom
massx1:security-auth-rate-limit-assessment
Jun 10, 2026
Merged

[SYNCOPE-1971] Add authentication failure throttling to avoid brute-force attack#1413
ilgrosso merged 9 commits into
apache:masterfrom
massx1:security-auth-rate-limit-assessment

Conversation

@massx1

@massx1 massx1 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This change adds configurable throttling for repeated failed username/password authentication attempts to help prevent brute-force attacks against user passwords (e.g. the admin account).

When enabled, failed attempts are tracked per domain and login within a configurable time window. Once the configured threshold is reached, further attempts are temporarily rejected with HTTP 429 and a Retry-After header, including attempts with valid credentials during the lock window.

@ilgrosso

ilgrosso commented Jun 8, 2026

Copy link
Copy Markdown
Member

@massx1 please open an issue on JIRA for this proposed change

@ilgrosso ilgrosso changed the title Add authentication failure throttling to avoid brute-force attack [SYNCOPE-1971] Add authentication failure throttling to avoid brute-force attack Jun 8, 2026
@massx1 massx1 force-pushed the security-auth-rate-limit-assessment branch from c6b1e7f to a5a82cc Compare June 8, 2026 10:34
@massx1 massx1 force-pushed the security-auth-rate-limit-assessment branch 2 times, most recently from 8167078 to b8f219d Compare June 8, 2026 14:53

@ilgrosso ilgrosso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Besides the changes requested, you will also need to describe the new feature in the docs; I believe you could add a subsection under https://syncope.apache.org/docs/4.1/reference-guide.html#rest-authentication-and-authorization

final KeymasterProperties keymasterProperties) {

super(domainOps, dataAccessor, provisioningManager, securityProperties, encryptorManager);
super(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why this formatting change? please revert

@massx1 massx1 force-pushed the security-auth-rate-limit-assessment branch from b8f219d to 56cbebd Compare June 9, 2026 14:55
@massx1 massx1 force-pushed the security-auth-rate-limit-assessment branch from 56cbebd to 6aaa718 Compare June 10, 2026 08:53
dependabot Bot and others added 8 commits June 10, 2026 11:14
….23.0 (apache#1417)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [org.opensearch.client:opensearch-java](https://github.com/opensearch-project/opensearch-java) from 3.8.0 to 3.9.0.
- [Release notes](https://github.com/opensearch-project/opensearch-java/releases)
- [Changelog](https://github.com/opensearch-project/opensearch-java/blob/v3.9.0/CHANGELOG.md)
- [Commits](opensearch-project/opensearch-java@v3.8.0...v3.9.0)

---
updated-dependencies:
- dependency-name: org.opensearch.client:opensearch-java
  dependency-version: 3.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps `hibernate.version` from 7.4.0.Final to 7.4.1.Final.

Updates `org.hibernate.orm:hibernate-core` from 7.4.0.Final to 7.4.1.Final
- [Release notes](https://github.com/hibernate/hibernate-orm/releases)
- [Changelog](https://github.com/hibernate/hibernate-orm/blob/7.4.1/changelog.txt)
- [Commits](hibernate/hibernate-orm@7.4.0...7.4.1)

Updates `org.hibernate.orm:hibernate-jcache` from 7.4.0.Final to 7.4.1.Final
- [Release notes](https://github.com/hibernate/hibernate-orm/releases)
- [Changelog](https://github.com/hibernate/hibernate-orm/blob/7.4.1/changelog.txt)
- [Commits](hibernate/hibernate-orm@7.4.0...7.4.1)

Updates `org.hibernate.orm:hibernate-maven-plugin` from 7.4.0.Final to 7.4.1.Final
- [Release notes](https://github.com/hibernate/hibernate-orm/releases)
- [Changelog](https://github.com/hibernate/hibernate-orm/blob/7.4.1/changelog.txt)
- [Commits](hibernate/hibernate-orm@7.4.0...7.4.1)

---
updated-dependencies:
- dependency-name: org.hibernate.orm:hibernate-core
  dependency-version: 7.4.1.Final
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.hibernate.orm:hibernate-jcache
  dependency-version: 7.4.1.Final
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.hibernate.orm:hibernate-maven-plugin
  dependency-version: 7.4.1.Final
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@ilgrosso ilgrosso merged commit 2b897c3 into apache:master Jun 10, 2026
0 of 26 checks passed
ilgrosso pushed a commit that referenced this pull request Jun 10, 2026
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.

3 participants