diff --git a/docs/admin_docs/configuration/configuring-superset.mdx b/docs/admin_docs/configuration/configuring-superset.mdx index 657d5d4dc75..3842dd65ee5 100644 --- a/docs/admin_docs/configuration/configuring-superset.mdx +++ b/docs/admin_docs/configuration/configuring-superset.mdx @@ -109,6 +109,14 @@ SECRET_KEY = 'YOUR_OWN_RANDOM_GENERATED_SECRET_KEY' You can generate a strong secure key with `openssl rand -base64 42`. +Alternatively, you can set the secret key using `SUPERSET_SECRET_KEY` environment variable: + +On a Unix-based system, such as Linux or macOS, you can do so by running the following command in your terminal: + +```bash +export SUPERSET_SECRET_KEY=$(openssl rand -base64 42) +``` + :::caution Use a strong secret key This key will be used for securely signing session cookies and encrypting sensitive information stored in Superset's application metadata database. Your deployment must use a complex, unique key. diff --git a/docs/versioned_docs/version-6.0.0/configuration/configuring-superset.mdx b/docs/versioned_docs/version-6.0.0/configuration/configuring-superset.mdx index d9fb2ca41a0..a61d05ecfe4 100644 --- a/docs/versioned_docs/version-6.0.0/configuration/configuring-superset.mdx +++ b/docs/versioned_docs/version-6.0.0/configuration/configuring-superset.mdx @@ -109,6 +109,14 @@ SECRET_KEY = 'YOUR_OWN_RANDOM_GENERATED_SECRET_KEY' You can generate a strong secure key with `openssl rand -base64 42`. +Alternatively, you can set the secret key using `SUPERSET_SECRET_KEY` environment variable: + +On a Unix-based system, such as Linux or macOS, you can do so by running the following command in your terminal: + +```bash +export SUPERSET_SECRET_KEY=$(openssl rand -base64 42) +``` + :::caution Use a strong secret key This key will be used for securely signing session cookies and encrypting sensitive information stored in Superset's application metadata database. Your deployment must use a complex, unique key.