Repository navigation
|
Hi everyone, I would like to change the value of my AUTHENTIK_SECRET_KEY variable. I’d just like to make sure that this point in the documentation is actually reliable? Thank you very much 😄 |
Replies: 3 comments
|
Yes, on a 2023.6.0+ install you can change it. Nothing stored in the database is derived from or encrypted with the key any more, but changing it does invalidate everything that is signed with it. From the current source, the key is used for:
The "unique IDs" part of the docs is handled by What to expect when you rotate it:
I only checked the Python side of the codebase, so if a maintainer knows of another consumer, please correct me. |
|
Thank you very much 👍 |
|
@al-dioooo I have another question regarding this topic. If I have had an Authentik installed with a version prior to 2023.6.0, today it is an up-to-date system. So in that case:
Thank you very much :-) |
Yes, on a 2023.6.0+ install you can change it. Nothing stored in the database is derived from or encrypted with the key any more, but changing it does invalidate everything that is signed with it.
From the current source, the key is used for:
SECRET_KEY(authentik/root/settings.py), so sessions and other signed valuesauthentik/lib/utils/crypto.py)authentik/admin/files/backends/file.py)authentik/api/authentication.py,token_secret_key)The "unique IDs" part of the docs is handled by
lifecycle/system_migrations/install_id.py: the install ID now liv…