---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/concepts/secrets-instance/obligation
  - en/datalens/concepts/secrets-instance/obligation.md
  - ru/concepts/secrets-instance/obligation
  - href: en/concepts/secrets-instance/obligation.md
    type: text/markdown
    title: Markdown version
csp:
  - script-src:
      - https://mc.yandex.ru
    img-src:
      - https://mc.yandex.ru
    connect-src:
      - https://mc.yandex.ru
      - wss://mc.yandex.ru
    child-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-ancestors:
      - 'blob:'
      - https://mc.yandex.ru
canonical: en/concepts/secrets-instance/obligation.html
title: Requirement status of DataLens On-premises secrets
description: >-
  This section classifies secrets based on their requirement status when
  deploying DataLens On-premises.
vcsPath: en/concepts/secrets-instance/obligation.md
---

# Requirement status of DataLens On-premises secrets

Classification of secrets based on their requirement status:

* [🔴 Required secrets (RSA authentication keys)](#required)
* [🟡 Conditionally required secrets](#cond-required)
* [🟢 Autogenerated secrets](#secret-auto-generated)
* [⚪ Optional secrets](#secret-optional)


## 🔴 Required secrets (RSA authentication keys) {#required}

These secrets are required when authentication is enabled (`features.auth.enabled: true`, enabled by default).

| Secret                   | Autogeneration              | Format           | Description |
| ------------------------ | -------------------------- | ---------------- |--------- |
| `AUTH_TOKEN_PRIVATE_KEY` | ✅ On first deployment | RSA 4096-bit PEM | Private key for signing JWT authentication tokens |
| `AUTH_TOKEN_PUBLIC_KEY`  | ✅ On first deployment | RSA 4096-bit PEM | Public key for verifying JWT tokens |

{% note info %}

When using `./init.sh`, these keys are generated automatically. To regenerate, use the `--auth-rsa-gen` flag.

{% endnote %}


## 🟡 Conditionally required secrets {#cond-required}

### Secrets for Temporal (workbook import or export) {#secret-temporal}

These secrets are required when you enable one of the following features:

* `features.meta_manager.enabled: true`
* `features.export.enabled: true`
* `features.usage_tracking.enabled: true`

| Secret                      | Autogeneration              | Format           | Description |
| --------------------------- | -------------------------- | ---------------- | -------- |
| `TEMPORAL_AUTH_PRIVATE_KEY` | ✅ On first deployment | RSA 4096-bit PEM | Private key for authentication in Temporal |
| `TEMPORAL_AUTH_PUBLIC_KEY`  | ✅ On first deployment | RSA 4096-bit PEM | Public key for authentication in Temporal |

{% note info %}

To regenerate, use the `--temporal-rsa-gen` flag.

{% endnote %}


### Secret for a private Docker image registry {#secret-docker}

| Secret               | Autogeneration | Format              | When it is required |
| -------------------- | ------------- | ------------------- | --------------- |
| `DOCKER_CONFIG_JSON` | ❌            | JSON (docker config) | If `registry.private: true` and `registry.docker_config.secret.ref` is not specified |


## 🟢 Autogenerated secrets {#secret-auto-generated}

These secrets are autogenerated on first deployment unless explicitly specified. The values ​​are stored in Kubernetes secrets and reused in subsequent deployments.


### Authentication and security secrets {#secret-auth-security}

| Secret                        | Length        | Format       | Description |
| ----------------------------- | ------------ | ------------ | -------- |
| `AUTH_ADMIN_PASSWORD`         | 32 characters   | alphanumeric | System administrator password (`admin`) |
| `AUTH_CALLBACK_COOKIE_SECRET` | 32 characters   | alphanumeric | Cookie encryption key for authentication callbacks |
| `CSRF_SECRET`                 | 16 characters  | alphanumeric | CSRF token generation key for protection against CSRF attacks |


### Cross-service communication master tokens {#secret-token}

| Secret                       | Length       | Format       | Description |
| ---------------------------- | ----------- | ------------ | -------- |
| `AUTH_MASTER_TOKEN`          | 32 characters  | alphanumeric | Authorization token for requests to authentication service |
| `US_MASTER_TOKEN`            | 32 characters  | alphanumeric | Authorization token for requests to United Storage |
| `FILE_UPLOADER_MASTER_TOKEN` | 32 characters  | alphanumeric | Authorization token for requests to file upload service |


### Encryption keys {#encryption-keys}

| Secret                          | Length       | Format               | Description |
| ------------------------------- | ----------- | -------------------- | -------- |
| `CONTROL_API_CRYPTO_KEY`        | 32 characters  | base64(alphanumeric) | Encryption key for confidential connection data (passwords, tokens) |
| `EXPORT_DATA_VERIFICATION_KEY` | 32 characters  | alphanumeric          | Data integrity verification key for workbook import and export |


### PostgreSQL passwords {#postgres-passwords}

| Secret                        | Length       | Description |
| ----------------------------- | ----------- | -------- |
| `POSTGRES_PASSWORD_ROOT`      | 32 characters  | PostgreSQL superuser password |
| `POSTGRES_PASSWORD_US`        | 32 characters  | United Storage DB password (metadata) |
| `POSTGRES_PASSWORD_COMPENG`   | 32 characters  | Computation engine DB password |
| `POSTGRES_PASSWORD_AUTH`      | 32 characters  | Authentication service DB password |
| `POSTGRES_PASSWORD_TEMPORAL`  | 32 characters  | Temporal DB password |
| `POSTGRES_PASSWORD_META_MANAGER` | 32 characters | Meta Manager DB password |
| `POSTGRES_PASSWORD_DEMO`      | 32 characters  | Demo database password |


### Infrastructure component passwords {#mdb-passwords}

| Secret                | Length                      | When is it used                                                                 | Description |
| --------------------- | -------------------------- | --------------------------------------------------------------------------------- | -------- |
| `CLICKHOUSE_PASSWORD` | 32 characters by default   | If `features.files.enabled` or `features.usage_tracking.enabled`                | ClickHouse® user password |
| `REDIS_PASSWORD`       | 64 characters by default   | If `features.files.enabled`, `features.cache.enabled`, or `features.background_exports.enabled` | Valkey™ password |
| `S3_ACCESS_KEY_ID`     | strictly 32 characters         | If `features.files.enabled` or `features.background_exports.enabled`            | Access key ID for S3 (MinIO) |
| `S3_SECRET_ACCESS_KEY` | strictly 64 characters         | If `features.files.enabled` or `features.background_exports.enabled`            | Secret access key for S3 (MinIO) |


## ⚪ Optional secrets {#secret-optional}

| Secret                  | Format     | Description |
| ----------------------- | ---------- | -------- |
| `AUTH_PROVIDERS_CONFIG` | JSON array | Configuration of external authentication providers (LDAP, OIDC). The default value is an empty array (`[]`). |
| `secrets.ref`           | string     | Link to an existing Kubernetes secret to use instead of creating a new one |

<!-- source: en/_includes/clickhouse-disclaimer.md -->
_ClickHouse® is a registered trademark of [ClickHouse, Inc](https://clickhouse.com)._
<!-- endsource: en/_includes/clickhouse-disclaimer.md -->