Secrets Management¶
SECRET_KEY¶
During initialization, SeaTable generates a SECRET_KEY
and saves this random string to the configuration file dtable_web_settings.py
.
This SECRET_KEY
serves two critical functions:
- Generating user sessions
- Encrypting "thirdparty account passwords"
Changing the SECRET_KEY
It is strongly discouraged to change the SECRET_KEY
after initial setup. Modifying it will result in:
- "Thirdparty accounts" becoming inaccessible
- All current user sessions becoming invalid
If you absolutely must change the SECRET_KEY
, follow these steps:
- Delete all thirdparty accounts from all bases
- Stop SeaTable
- Change the
SECRET_KEY
- Restart SeaTable
- All users will need to log in again
- Create new thirdparty accounts as needed
PRIVATE_KEY¶
SeaTable generates a PRIVATE_KEY
during initialization for secure inter-component communication between dtable-web and dtable-server/dtable-db. This key is used in two configuration files and must be identical:
dtable_server_config.json
: asprivate_key
dtable_web_settings.py
: asDTABLE_PRIVATE_KEY
If you update this PRIVATE_KEY
, always ensure that these PRIVATE_KEY values match across both configuration files to maintain proper system functionality.