Skip to content
New issue

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

IDP authentication fails during heavy indexing load #114

Closed
vorpalhex opened this issue Oct 27, 2024 · 1 comment
Closed

IDP authentication fails during heavy indexing load #114

vorpalhex opened this issue Oct 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@vorpalhex
Copy link

When copyparty is indexing (edsa is enabled) and it has a lot to index (24tb), then while it is busy indexing login attempts timeout and the user acts as if they have no authentication. If edsa is removed or if the indexing is done, everything goes back to behaving as expected.

This does fail closed - meaning a user simply becomes a public user. This isn't a security issue. It's just an inconvenience.

Two relevent log messages:

22:19:35.039 auth                  reinitializing due to new user from IdP: [kyros:['admins', 'authentik Admins', 'copyparty', 'household']]

and then some time later:

22:23:21.975 192.168.1.129 52422   unknown username: [kyros]
@vorpalhex vorpalhex added the bug Something isn't working label Oct 27, 2024
@9001
Copy link
Owner

9001 commented Oct 27, 2024

I'm sorry to say that this is a known issue, and really tricky to fix in a safe manner -- while there are some possible approaches, i have an iffy feeling that each and all of them would introduce some sort of race, either causing inconsistent tracking of files for deduplication, or worse.

I'll leave the issue open in case I ever think of a proper fix, and to remind myself to document this behavior, which I'm sorry that i forgot.

EDIT: it might be possible to register new users while indexing is running, if it is acceptable to only give them read-access until the indexing has finished. I'll give that a try at some point :>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants