-
Notifications
You must be signed in to change notification settings - Fork 106
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
[Bug]: session cleanup with file system storage #1910
Comments
@aritas1 Thanks for trying out Will triage this. |
@aritas1 Assuming you have social login/auth enabled in zot config? |
Yes, see the config above. Im testing/debugging my instance for a few minutes now, seems like all basic auth clients generate a session for every http request.
I assume none of the basic auth clients is complying with the session cookie part? so storing the session in the first place may be an issue. If i try the webinterface, the sesison cookie is set and present, so no new session gets created on the disk. |
#1919 takes care of the logic creating the sessions for requests coming from command-line tools. We still need logic for handling old sessions in a separate PR. Right now we only delete for the UI, on logout |
#1939 Also takes care of cleaning the existing sessions. |
@aritas1 do you want to try deploying top of |
running on a44ca57 now, everything looks great. |
zot version
v2.0.0-rc6
Describe the bug
After running rc6 for ~2 months now i found aporx. 4.3 million session stored on disk, blocking around 16GB.
To reproduce
image: ghcr.io/project-zot/zot-linux-amd64:v2.0.0-rc6
config.yaml
Expected behavior
It would be nice if (expired) sessions can be deleted automatically and session duration can be configured.
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: