Platform release - v22.38
Document describes the secrets required by the HELM3 deployment of the platform. From the platform version 21.37 we separated the secrets from the platform HELM3 charts to provide best practices for kubernetes secret management.
Please note, you must create all the required secrets before the installation of the platform. Without secrets in place the platform deployment is not possible.
We present the secrets and their structure assuming the platform has default
namespaces called platform
and tasks
. If you are using other
values for namespaces do not forget to use them instead of the
default ones while applying these secrets.
These are the secrets used by the internal docker registry service. Depending on the type of platform installation you can ommit some of them.
REQUIRED by the docker-registry service
if the internal
docker-registry is used. Platform uses this secret in the configuration of username/password authentication for internal docker registry.
Set value of this secret as a simple htpasswd string.
IMPORTANT: The credentials used in this secret should match the credentials used to generate Docker registry push secret and Docker registry pull secret.
The secret_name should match the .Values.global.secrets.dockerRegistryHtpasswdSecret
value from the platform chart.
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: secret_name
namespace: platform
data:
htpasswd: "<value>"
REQUIRED by the docker-registry service
if the internal
docker-registry is used and it should use secure connection (E.g. if .Values.global.services.dockerRegistry.secured
set to true
).
The secret_name should match the .Values.global.services.dockerRegistry.tlsSecretName
value from the platform chart.
apiVersion: v1
kind: Secret
metadata:
name: secret_name
namespace: platform
type: "kubernetes.io/tls"
data:
tls.crt: "<value>"
tls.key: "<value>"
REQUIRED by the docker-registry service
and git-receiver-service
. Platform uses this secret to push component docker container images to the docker-registry-service
.
It’s a simple .dockerconfigjson kubernetes secret.
The secret_name should match the .Values.global.secrets.dockerRegistryPush
value from the platform chart.
apiVersion: v1
kind: Secret
metadata:
name: secret_name
namespace: platform
type: "kubernetes.io/dockerconfigjson"
data:
.dockerconfigjson: "<value>"
REQUIRED by the docker-registry service
and admiral
.
It’s a simple .dockerconfigjson kubernetes secret.
The secret_name should match the .Values.global.secrets.dockerRegistry
value from the platform chart.
apiVersion: v1
kind: Secret
metadata:
name: secret_name
namespace: tasks
type: "kubernetes.io/dockerconfigjson"
data:
.dockerconfigjson: "<value>"
REQUIRED by the whole platform. Since it’s used to pull elastic.io images from the dockerhub.
It’s a simple .dockerconfigjson kubernetes secret.
The secret_name should match the .Values.global.secrets.imagePull
value from the platform chart.
apiVersion: v1
kind: Secret
metadata:
name: secret_name
namespace: platform
type: "kubernetes.io/dockerconfigjson"
data:
.dockerconfigjson: "<value>"
REQUIRED by the git-receiver-service
.
The value of this key is an rsa private key.
The secret_name should match the .Values.global.secrets.gitReceiverPrivateKey
value from the platform chart.
apiVersion: v1
kind: Secret
metadata:
name: secret_name
namespace: platform
type: Opaque
data:
key: <value>
REQUIRED by the handmaiden-service
and ingress
service.
The secret is the simple kubernetes tls secret.
You also should provide the secret_name to the Platform environment secret:
DEFAULT_INGRESS_CERT_NAME: secret_name
apiVersion: v1
kind: Secret
metadata:
name: secret_name
namespace: platform
type: "kubernetes.io/tls"
data:
tls.crt: "<value>"
tls.key: "<value>"
REQUIRED if the VPM agents feature is enabled.
The secret is the simple kubernetes tls secret.
Important: At the moment the name of the secret should be knight-of-the-bloody-gate-ca
.
apiVersion: v1
kind: Secret
metadata:
name: knight-of-the-bloody-gate-ca
namespace: platform
type: "kubernetes.io/tls"
data:
tls.crt: <value>
tls.key: <value>
REQUIRED by the elastic.io platform.
We use this secret to store the platform environment variables.
It’s an simple opaque kubernetes secret.
The secret must have the following structure:
apiVersion: v1
kind: Secret
metadata:
name: elasticio
namespace: platform
type: Opaque
stringData:
ENVIRONMENT_VARIABLES: ""
...
The list of environment variables and their explanations follows.
accounts_password
- A secret key, used for payload encryption of user credentials in DB.
admiral
- API service account for admiral, leave as is.
admiral_service_acc_password
- API service account password for admiral, any random string.
gold-dragon-coin
- Can have values gold-dragon-coin
or quota-service
(for now it should be gold-dragon-coin
).
agent_vpn_entrypoint
- entry point ip/domain for vpn local agent. Should be set if agents are enabled.
URI used to connect platform services to RabbitMQ. MUST include the same vhost as in “RABBITMQ_VIRTUAL_HOST” secret
Docker image used for running flow steps containers. Default value "elasticio/apprunner:production"
30
If bran enabled: provide clickhouse uri.
If bran uses replicated clickhouse. Default value true
.
Default value “1”
Default value “1”
Set if the cache service supplied with the platform disabled in favour of external one and Redis sentinels are NOT USED.
- host
: “”
port
: “”
Set if the cache service supplied with the platform disabled in favour
of external one and Redis sentinels are USED. Configuration for our caching solution
based on Redis. List of sentinels to connect to. Format: array of objects with
host
and port
values.
Set if the cache service supplied with the platform disabled in favour of external one and Redis sentinels are USED. Configuration for our caching solution based on Redis. Identifies a group of Redis instances composed of a master and one or more slaves.
Set if the cache service supplied with the platform disabled in favour of external one and Redis sentinels are USED. Configuration for our caching solution based on Redis. Password to authenticate with Sentinel.
certificate_store_encryption_password
- Password for encrypting tenant certs store (provided during creating new tenant)
Optional value. The ubject for bloody-gate
server CA.
The default contract name where the main components are deployed.
0.08
- CPU allocated for each integration flow step pod running in the Kubernetes cluster.
1
- CPU limit for each integration flow step pod running in the Kubernetes cluster.
90
- Allocated memory in MB for each integration flow step pod running with Node.js code in the Kubernetes cluster.
256
- Memory limit in MB or each integration flow step pod running with Node.js code in the Kubernetes cluster.
400
- Allocated memory in MB for each integration flow step pod running with JAVA code in the Kubernetes cluster.
512
- Memory limit in MB or each integration flow step pod running with JAVA code in the Kubernetes cluster.
5
- Limits the size in MB of data samples to be stored into the DB.
"kubernetes"
Configuration for docker registry for components if an s3 storage driver is used.
5
- Default limit of quota tokens per contract. Will work only when the enforce_quota
is set to true
.
An optional environment variable to use for deploying the custom developed components.
For the uri
system expects string
containg the address of docker registry like "https://index.docker.io/v1/"
The credentials object can be authFile
- path of the authentication file, registryToken
- bearer token for accessing the source registry or username
and password
.
Encryption key for docker registry credentials.
elastic_search_uri
- Elasticsearch URI used as a backend for the GrayLog.
Default “false” - If enabled all quota limits would apply.
production
- Takes part in queue naming in RabbitMQ.
env_password
- A secret key used to encrypting the environment variables payload in the DB.
Environment variable used to authenticate to components-pusher server.
Environment variable used to authenticate to components-pusher server.
Set this if you need to encrypt the faceless data. It should be base64
encoded and have at least 256 bit (32 bytes) length. You can create it using openssl rand -base64 32
command.
frontend
- eio API service acc frontend, leave as is.
frontend_service_acc_password
- eio API service acc frontend, any random string.
Should be set if frontend should not use external resources.
gelf_host
- Hostname where Platform’s Graylog GELF input is running (usually the same as Graylog’s hostname).
12203
- Port where Platform’s Graylog GELF input is running (usually 12201).
udp
- Protocol of Platform’s Graylog GELF input (usually udp
).
Optional value. Object with username/password.
git_receiver_host
- The domain name for gitreceiver.
“/etc/gitreceiver/private-key/key”
hooks_data_password
- It’s a secret key, used for encryption of payload of sailor hooks data in DB.
intercom_token
- Token in case when Intercom integration is used.
app_id
- App ID in case when Intercom integration is used.
intercom_secret_key
- Secret Key in case when Intercom integration is used.
List of clickhouse cluster nodes for iron-bank service.
- host
: the internal address of the clickhouse node
port
: the port number of node
user
: The user name to use for access.
password
: The password to use for access.
false
if iron-bank uses replicated clickhouse. Default value is true
.
Optional value.
The logging level for the platform services.
If maester enabled you need provide jwt secret:
Starting from 22.20, you can use a dedicated database for storing Maester objects
and the run-time attachments. Use this environment variable to target this new database.
Otherwise use the same values as in the MONGO_URI
to use the same database.
Set if the maesterRedis service supplied with the platform disabled in favour of external one and Redis sentinels are NOT USED.
- host
: “”
port
: “”
Set if the maesterRedis service supplied with the platform disabled in favour of
external one and Redis sentinels are USED. Maester’s Redis config. List of
sentinels to connect to. Format: array of objects with host
and port
values
Set if the maesterRedis service supplied with the platform disabled in favour of external one and Redis sentinels are USED. Maester’s Redis config. Identifies a group of Redis instances composed of a master and one or more slaves.
Set if the maesterRedis service supplied with the platform disabled in favour of external one and Redis sentinels are USED. Maester’s Redis config. Password to authenticate with Sentinel.
900
- Object storage time in Maester.
1048576
- Limit in Bits when the object are redirected to Maester instead of regular queues in RabbitMQ.
Value in bytes - you can use to control the maximum object size accepted by the Maester service. The default maximum value is set 1GB. The recommended range is from 100MB to 1GB.
mandrill_api_key
- Mandrill API key for sending platform emails (Leave empty if using SMTP).
Sets the number of failed login attempts allowed before users are locked out of the system. Default value is 5
.
(case 1) If you don’t 2FA enabled, this is the number of failed login attempts. (case 2) If you have 2FA enabled, this is combined number of failed 2FA code and login attempts. This means if your user has 2FA enabled and succeeded with login but failed with 2FA more than the value of MAX_LOGIN_ATTEMPTS
then your user will be locked out of the system. To unlock such users the tenant administration must first disable 2FA for this user and instruct users to navigate to /forgot
address of the tenant to reset their password. This will reset the counter and user can login again.
message_crypto_iv
- The initial vector used for encryption of the message payloads between flow containers. More details here.
message_crypto_password
- The secret key used for encryption of message payloads between flow containers. Used in conjunction with the message_crypto_iv
.
Default: 8
. The user password must have at least this number of symbols.
Default: 3
. The number of minimum different character groups (uppercase, lowercase, numbers, special symbols) should be matched.
mongo_uri
- The main MongoDB instance, used by most of the services and carrying almost all payload for DB storage.
"production"
Environment variable used in all platform microservices, default is production
, do not change.
petstore_api_host
- Petstore API hostname. Service for tests.
A set of users, which are used as default credentials for internal communications with platform-storage-slugs service. The value is a string with the JSON-encoded object, which contains key-value pairs which represent username-passwords accordingly.
If quota service enabled you need provide mongodb uri.
rabbitmq_stats_login
- Username for accessing HTTP API of RabbitMQ Management Plugin. The username must have granted admin privileges in RabbitMQ since it used by services for modifying data in RabbitMQ (asserting/removing users, exchanges and queues).
rabbitmq_stats_pass
- Corresponding password for rabbitmq_stats_login
. See above.
rabbitmq_stats_uri
- URI of HTTP API of RabbitMQ Management Plugin. See rabbitmq_stats_login
for more details.
URI used to connect sailors (aka “flow steps”) to RabbitMQ. MUST include the same vhost as in “RABBITMQ_VIRTUAL_HOST” secret.
RabbitMQ virtual host where users, policies and default queues will be created.
75000
- The count of messages, allowed to be in each queue at the same time. In case, there are more messages then set via this variable, new messages will be rejected.
200
- The total size of messages (in MB), allowed to be in each queue at the same time. In case, there are huge messages in queue (by size) then set via this variable, new messages will be rejected.
Object with extend policies.
Value in milliseconds - an environment variable to configure platform user
re-authentication for the sensitive actions. The default value is 21600000
(6 hours).
Optional value. 1025:32767
- The port range for bloody-gate
(VPN agents service).
Optional value. 172.19.0.0/16
- The VPN network for bloody-gate
.
serviceaccount
- Username for service account (used for communications between API and other platform apps).
service_account_password
- Password for service account (used for communications between API and other platform apps).
In seconds, default value 86400
(24 hours) - replaces COOKIE_MAX_AGE
. Frontend’s session IDLE timeout as described here.
Default value is 2 x SESSION_IDLE_TIMEOUT
.
session_mongo_uri
- URI connection string for the additional DB used only as session storage by the frontend (platform UI).
Optional value. URI of SMTP server for sending emails (leave blank if using Mandrill).
id_from_status_pages
- Special ID to enable integration with statuspages.
50
- Limit for unconsumed flow step messages after which to suspend the flow.
5
- Limit of flow step start fail events after which to suspend the flow.
432000 seconds
(5 days) - A mandatory environment variable which controls the
retention period of to Dashboard Runlog data in the MongoDB by enforcing
expireAfterSeconds
option in the Database index. The platform will store the
Dashboard Runlog records for 5 days in the Database. Modify the value according
to your needs.
team_name
- The developer team name where out-of-the-box system crytical components are deployed. The team will be created in the contract set with COMPANY_NAME parameter. Every run of gendry service will use this parameter.
tenant_code
- Code of the default tenant, which will be created by the gendry on deployment at initialization.
tenant_domain
- The domain of the default tenant, which will be created by the gendry on deploy initialization.
tenant_api_domain
- The default tenant API domain, e.g. api.elastic.io
tenant_webhooks_domain
- The default tenant webhooks domain, e.g. in.elastic.io
tenant_name
- Name of the default tenant, which will be created by gendry on deploy initialization.
tenant-operator
- service account username for tenant-operator, leave as is
tenant-operator-pass
- service account password for tenant-operator, any random string
tenant_admin_email
- Email of the first user of the platform, who is going to be a Tenant Admin. This will be created by gendry on deployment initialization.
tenant_admin_password
- Corresponding password for tenant_admin_email
.
user_amqp_crypto_password
- A secret key, used for encryption of amqpPassword
(which is used for dedicated per-workspace rabbitMQ users) in DB.
user_api_crypto_password
- A secret key, used for encryption of apiSecret
in DB.
Password used to encrypt/decrypt TOTP secrets for 2FA. Has to be set before enabling 2FA feature as tenant feature flag.
Should be in the format: https://%WEBHOOKS_DOMAIN%/hook
.
wiper
- eio API service account for the wiper service, leave as is.
wiper_pass
- eio API service account for the wiper, any random string.
Time in seconds the job must wait before deleting the flow permanently after it is marked as DELETED in MongoDB. We set the default value to 86400
seconds (1 day).
100
- the number of flows to remove during each run of the service.