We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When using PG read replicas with async replication you will run into a race condition. Exactly here will require strong consistency https://github.com/goauthentik/authentik/blob/main/authentik/providers/oauth2/views/token.py#L219. Might be more places also?
Either document that Authentik to require strong consistency or force certain DB calls to primary db instance?
To Reproduce Steps to reproduce the behavior:
Expected behavior successful auth
Logs Server: {.. "event": "Code does not exist", ..} Client: invalid_grant
{.. "event": "Code does not exist", ..}
invalid_grant
Version and Deployment (please complete the following information):
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When using PG read replicas with async replication you will run into a race condition.
Exactly here will require strong consistency https://github.com/goauthentik/authentik/blob/main/authentik/providers/oauth2/views/token.py#L219. Might be more places also?
Either document that Authentik to require strong consistency or force certain DB calls to primary db instance?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
successful auth
Logs
Server:
{.. "event": "Code does not exist", ..}
Client:
invalid_grant
Version and Deployment (please complete the following information):
The text was updated successfully, but these errors were encountered: