Join Slack
Powered by
To comply with privacy laws we can't keep session ...
# ory-selfhosting
g
gifted-waitress-14272
05/02/2024, 12:35 PM
To comply with privacy laws we can't keep session data and especially the session devices for too long after the session has expired. How do you guys solve this?
s
steep-lamp-91158
05/02/2024, 12:41 PM
Use the Kratos cleanup command, it does not look like it is well documented... here is the code it is calling:
https://github.com/ory/kratos/blob/e5d3b0afde3c80c6c9cf8815c56d82e291ede663/persistence/sql/persister.go#L189
g
gifted-waitress-14272
05/02/2024, 12:43 PM
I found the
https://www.ory.sh/docs/kratos/cli/kratos-cleanup-sql
corresponding docs. I suppose there is no API/sdk counterpart (yet)?
s
steep-lamp-91158
05/02/2024, 12:46 PM
no this has to run as a separate job, and it can take quite long so no real use-case for an api
g
gifted-waitress-14272
05/02/2024, 12:48 PM
Got it. Thanks for clarifying
Open in Slack
Previous
Next