Skip to content

Handle authentication lockouts

Last updated on

Authentication lockout protects the credential-based login endpoints of STACKIT Secrets Manager against repeated failed login attempts. It applies to:

  • userpass logins at POST or PUT /v1/auth/userpass/login/{username}.
  • AppRole logins at POST or PUT /v1/auth/approle/login.

A lockout affects only new logins and token issuance. Vault tokens that were issued before the lockout remain valid until they expire and can be renewed normally.

Failed logins are evaluated for the protected identity and the request’s source IP:

  • Repeated failures for the same identity from one source IP block logins for that identity from that source IP for 10 minutes.
  • Failures for the same identity from multiple source IPs block that identity from all source IPs for 10 minutes.

For userpass, the protected identity is the username. For AppRole, it is the Role ID. Clients that share both an identity and a source IP also share the failure state for that combination. Other identities using the same source IP are not affected by a source-specific lockout.

Lockouts expire automatically 10 minutes after they are triggered. Login attempts during an active lockout do not extend its duration. Requests rejected by the instance’s Access Control List (ACL) return 403 Forbidden and do not contribute to authentication lockout.

Use the HTTP status and error message to determine the next action:

The 429 Too Many Requests response does not include a Retry-After header, the remaining lockout duration, or the lockout scope.

  1. Stop immediate login retries to prevent a retry loop.
  2. For 400 Bad Request, verify the configured username and password or Role ID and Secret ID. Make sure all replicas of your application use the current credentials.
  3. For 403 Forbidden, verify that the source IP is included in the instance ACL.
  4. For 429 Too Many Requests, wait at least 10 minutes before the next login attempt. Do not continuously submit login requests.
  5. Reuse and renew an existing Vault token instead of requesting a new token for every operation.

Changing a password or creating a new Secret ID does not immediately end an active lockout. The new credential can be used after the 10-minute lockout expires.

If a valid login still returns 429 Too Many Requests more than 15 minutes after the last failed login attempt, contact the STACKIT Help Center. Provide the authentication method, instance ID, username or Role ID, request timestamp with time zone, source IP, HTTP status, and error message.