################################################################################################ ### CONFIGURATION ### ################################################################################################ # ------------ # # Defaults # # ------------ # default: ## Disable Helm version check # checkHelmVersion: false ## Type of orchestration platform the system is deployed on. ## Affects SecurityContext configuration. ## ## You choice: ## - `kubernetes` ## - `openshift` ## platform: kubernetes ## Cluster's default domain # clusterDnsZone: cluster.local ## Default domain name for all ingresses and product-specific environment variables ## domain: "" ## Root path for KCS images in the container registry. ## May be used for a vendor's container registry or self-hosted container registry mirror (remote registry). ## ## Example: ## `registryRoot: registry.domain.corp/docker/kcs` ## registryRoot: repo.kcs.kaspersky.com/images ## Enabling a features: ## - `dev`: force pull images and force recreate Deployments and DaemonSets ## - `develop`: same as `dev` plus includes StatefulSets ## # environment: dev ## Default StorageClass for all PVC (if persistentVolume.*.storageClass is not filled) ## If neither value is filled in, the default cluster StorageClass is used. ## # storageClass: "" ## ServiceAccount name for KCS services, linked with serviceAccount.kcs.imagePullSecret ## serviceAccount: kcs ## Default NodeSelector for all Deployments and StatefulSets. ## ## Example: ## nodeSelector: ## type_node: appsec ## location: datacenter-1 ## # nodeSelector: [] ## Common labels for all created Kubernetes objects. ## labels: app: kcs ## Common labels for all created Kubernetes pods only. ## # podLabels: # foo: bar ## Common annotations for all created Kubernetes pods only. ## # podAnnotations: # foo: bar ## Ingress default values. ## ## Urgent! The maximum HTTP request body size for KCS must be at least 1500 MiB. ## Configure this limit in the component that handles incoming HTTP traffic to KCS. ## This requirement also applies to manually configured ingress. ## ingress: ## Enable Ingress creation ('true'). ## ## If 'false' you should create an Ingress object manually - `ingress.*` section is completely ignored. ## ## Information for manual Ingress: ## ## Ingress (domain) -> kcs-panel (service) :8080 (port) / (path) ## -> kcs-mw-ingress (service) :8443 (port) /api (path) ## -> kcs-mw-ingress (service) :8443 (port) /public/swagger (path) ## -> kcs-mw-ingress (service) :8443 (port) /public/redoc (path) ## -> kcs-ab-hb (service) :8437 (port) /agent-api/heartbeat (path) ## -> kcs-ab-ci (service) :8438 (port) /agent-api/cluster (path) ## -> kcs-ab-bench (service) :8439 (port) /agent-api/bench (path) ## -> kcs-ab-others (service) :8440 (port) /agent-api/others (path) ## -> kcs-eb-ingress (service) :8880 (port) /clickhouse (path) ## -> kcs-db-ingress (service) :8443 (port) /kuu (path) ## create: true ## Select ingress exposure mode. ## ## Your choice: ## - `ingressController` ## - `gatewayAPI` ## type: ingressController ## NetworkPolicy configuration ## networkPolicies: ## Enable NetworkPolicies creation for KCS services within the KCS namespace ## create: true ## Set the Ingress Controller or GatewayAPI namespace name for NetworkPolicy. ## Urgent! If value default.networkPolicies.create is true, specifying namespace as a list is mandatory ## controllerNamespaces: # - ingress-nginx # - openshift-host-network ## Set CIDR blocks for external traffic sources of Ingress Controller or GatewayAPI. ## This is an additional option and does not replace controllerNamespaces. ## # controllerCidrs: # - 172.16.0.0/24 # - 10.78.100.10/32 ## Interservice certificates. ## ## Your choice: ## - `files` - to create secrets with their own certificates ## - `helm` - to create autogenerated secrets by Helm (recommended) ## - `vault` - disables autogeneration of all certificates, it is expected to add them only via annotations ## certSource: helm ## Force certificates re-creation ## ## Re-create CA cert, CA key and internal services certificates ## After updating the chart with new certificates, ## it is necessary to manually recreate all pods with the controller type 'StatefulSet' ## for the changes to take effect (exp. kcs-seaweedfs, kcs-clickhouse, kcs-memcached, kcs-postgresql) ## # forceGenCerts: false # ------------ # # Services # # ------------ # ## Here you can change the default values for 'resources', set `nodeSelector` and `tolerations` of any chart component ## Urgent! When specifying the `resources` block, you must define both `limits` and `requests` - the entire block will override the default values. ## ## Example: ## ## kcs-ih: ## replicaCount: 5 ## resources: ## requests: ## memory: "1Gi" ## cpu: "500m" ## ephemeral-storage: 4Gi ## limits: ## memory: "8Gi" ## cpu: "4" ## ephemeral-storage: 8Gi ## nodeSelector: ## kubernetes.io/hostname: worker-1.example.nodename ## podAntiAffinity: true ## tolerations: ## - key: reserved ## operator: Equal ## value: example ## effect: NoSchedule kcs-ih: ## Replica count for IMAGE HANDLER service. ## This parameter can be increased to meet the image scanning requirements. ## replicaCount: 3 ## Use RAM as temporary storage during scan processing. Additional memory resources may be required when using this feature ## useScanInMemory: enabled: false ## This parameter disables more than one replica of the component from existing on a node # podAntiAffinity: true kcs-ab: ## Replica count for AGENT BROKER service. ## This parameter can be increased according to the number of agents installed, depending on: ## `kcs-ab` per 2000 `node-agent` ## replicaCount: 1 kcs-postgresql: ## Enable persistent storage (PV). Disabling is not suitable for production use ## persistent: true ## Use an external PostgreSQL instance instead of the bundled one ## external: false resources: requests: cpu: "2" memory: "4Gi" limits: cpu: "8" memory: "16Gi" kcs-seaweedfs: ## Use S3 for feature `Reports` with persistent storage (PV) ## enabled: true ## Use an external S3 instance instead of the bundled one ## external: false kcs-clickhouse: ## Enable persistent storage (PV). Disabling is not suitable for production use ## persistent: true ## Use an external ClickHouse instance instead of the bundled one ## external: false resources: requests: cpu: 200m memory: 1Gi limits: cpu: "2" memory: "2Gi" updates: ## Use an internal KCS UPDATES service in the same namespace (no proxy, no internet access) ## enabled: false ## Enable init containers in the chart # initContainers: true ## No proxy domains. If you need to exclude specific resources from the proxy, add them here, separating with commas (without spaces). ## All essential KCS services will be added automatically. ## # NO_PROXY: ## Create an admission policy and binding to deny exec, attach and the addition ## of ephemeral containers to pods in the release namespace. ## Keep the default `disable` if admission policies are unavailable in the cluster, ## as on Kubernetes versions earlier than 1.30 with default settings. ## ## Your choice: ## `enable | disable` ## podAccessPolicy: disable # ---------------- # # Pull Secrets # # ---------------- # pullSecret: ## Default pullsecret associated with all ServiceAccounts (Values.serviceAccount) ## kcs-pullsecret: ## Credentials for pullsecret: container registry URL ## registry: "repo.kcs.kaspersky.com" ## Credentials for pullsecret: container registry username ## username: "" ## Credentials for pullsecret: container registry user password ## password: "" ## Credentials for pullsecret: container registry user email ## email: "" # ------------------- # # Service accounts # # ------------------- # ## KCS service accounts linked to pullsecrets. ## Editing is not required ## serviceAccount: kcs: imagePullSecret: - kcs-pullsecret kcs-middleware: imagePullSecret: - kcs-pullsecret role: - ns-pods ## A block of parameters that allows disabling automatic resource creation while optionally verifying their presence in the cluster. ## If `enabled: true`, the resource must be created manually and will not be created by the Helm chart. ## If `check: true`, the chart will verify the resource exists in the cluster before installation. ## # manualCreation: ## Disables the automatic creation of `Role`, `RoleBindings` in the cluster ## while checking their existence based on the `role` section before installation. ## # role: # enabled: false # check: true ## Disables the automatic creation of Secrets from `secret.*` blocks with `type: fromEnvs` ## while checking their existence based on the `secret` section before installation. ## # secret: # enabled: false # check: true ## Disables the automatic creation of PullSecrets from `pullSecret.*` blocks ## while checking their existence based on the `pullSecret` section before installation. ## # pullsecret: # enabled: false # check: true ## If false, the chart will not attach imagePullSecrets to ServiceAccounts. # attachToServiceAccount: false # --------------------- # # Ingress Controller # # --------------------- # ingressController: ## Ingress configuration for the KCS Frontend and API. ## All paths for the `kcs` Ingress are defined in the service configuration (within the `Architecture` block). ## Service configuration is linked to the ingress in the `ingress:` section, using the Ingress name. ## Traffic from the Ingress `kcs` path to PANEL and MIDDLEWARE services. ## kcs: ## Domain name. ## # domain: "kcs.apps-crc.testing" ## Determine the type of ingress traffic. ## ## Your choice: ## `http | https` ## ## For `https``, a secret with a name from `ingressController.kcs.secret` created from a file is used. ## If you planned to serve the secret yourself, comment section `secret.cert-ingress`. ## externalTrafficType: http ## Secret name with TLS certificates ## secret: cert-ingress ## IngressClass for the Ingress object ## If the value is not filled, the default cluster IngressClass is used. ## # ingressClass: "" ## Annotations for Ingress. ## It may be used to configure various Ingress types. ## Annotations for integration with cert-manager can also be added here. ## annotations: ## Example of a request body size limit for the ingress-nginx controller (1500 MiB). ## For other Ingress controllers, use the equivalent setting supported by the controller. ## nginx.ingress.kubernetes.io/proxy-body-size: 1500m ## Required annotation for the HAproxy Ingress controller. ## # haproxy.router.openshift.io/proxy-body-size: 1500m # ------------- # # GatewayAPI # # ------------- # gatewayAPI: ## HTTPRoute configuration bound to infrastructure-managed Gateway resources. ## Service configuration is linked to the gateway in the `service.*.ingress` section, ## using the gateway name. ## ## Set the maximum HTTP request body size for KCS routes to at least 1500 MiB ## using the settings supported by your Gateway API implementation. ## kcs: ## Domain name for HTTPRoute hostnames. ## # domain: "kcs.apps-crc.testing" ## Determine the external traffic type for routes. ## ## Your choice: ## `http | https` ## externalTrafficType: http ## Annotations for HTTPRoute. It may be used to configure various Gateway API implementations. ## # annotations: # foo: bar ## Parent Gateway reference for HTTPRoute. ## If empty, chart links to Gateway with the same name in release namespace ## and generated sectionName values. ## ## Available keys: ## - name ## - namespace ## - sectionNameHttp ## - sectionNameHttps ## - group ## - kind ## - port ## ## parentRef: ## name: kcs-gateway ## namespace: gateway-system ## sectionNameHttp: kcs-example-com-http ## sectionNameHttps: kcs-example-com-https ## group: gateway.networking.k8s.io ## kind: Gateway ## port: 443 ## parentRef: name: kcs-gateway namespace: nginx-gateway sectionNameHttp: kcs-http sectionNameHttps: kcs-https # ---------------------- # # Persistent Volumes # # ---------------------- # ## ## `size` ## ------ ## Size for PersistentVolumeClaim. ## ## Example: ## `size: 10Gi` ## ## `storageClass` ## -------------- ## StorageClass for PersistentVolumeClaim ## ## If value not filled default storageClass is used (default.StorageClass). ## If neither value is filled in, the default cluster StorageClass is used. ## ## If `local-storage` is used as the `storageClass`, you need to specify the following parameters ## and create the specified directories on the node. ## ## Example: ## ## kcs-postgresql: ## size: 20Gi ## storageClass: local-storage ## path: /path/example ## nodename: worker-1.example.nodename ## persistentVolume: ## PVC for PostgreSQL ## pvc-pg: size: 20Gi # storageClass: "" ## PVC for S3 ## pvc-seaweedfs: size: 2Gi # storageClass: "" ## PVC for ClickHouse ## The size of the PVC type `cold` for ClickHouse must be at least equal to the number of worker nodes in the cluster ## The PVC type `cold` may be slow for I/O operations ## PVC of type `hot` should be optimized for fast I/O operations ## pvc-clickhouse-cold: size: 40Gi # storageClass: "" pvc-clickhouse-hot: size: 20Gi # storageClass: "" # -------------- # # ConfigMaps # # -------------- # configmap: ## Main ConfigMap with environment variables for the KCS services. ## infraconfig: type: fromEnvs envs: ## ----------------------- ## ## Internal certificates ## ## ----------------------- ## ## Interservice communication with TLS. ## If you need to enable inter-service communication using TLS certificates: ## ## 1a. Set `default.certSource: helm` ## or ## 1b. Set `default.certSource: files` ## and ## Generate certificates for each of the services (you can use the script in ./certs/gen_certs_internal.sh) ## and ## uncomment the `secret.cert-*` blocks for services. ## 2. Set the value of the `TLS_INTERNAL` variable to `true` (`TLS_INTERNAL: true`). ## TLS_INTERNAL: true ## TLS between Gateway/Ingress and service pods (public ports). ## ## Example: ## `TLS_INGRESS: true` // enable TLS on pod ports. ## May be used with customer-managed Gateway API or Ingress Controller configured in passthrough or re-encrypt mode. ## ## `TLS_INGRESS: false` // disable TLS on pod ports. ## ## Notes: ## - Certificate with name cert-ingress is expected to be provided by the user. ## - It should exist either: ## 1) as a Kubernetes Secret in the namespace where the product is installed, or ## 2) in the Helm chart under certs/ directory as crt and key files. ## TLS_INGRESS: false ## ---------- ## ## PostgreSQL ## ## ---------- ## ## PostgreSQL environment variables. ## `POSTGRES_HOST` may be changed if an external database is used. ## POSTGRES_HOST: kcs-postgresql POSTGRES_PORT: 5432 POSTGRES_DB_NAME: api ## PostgreSQL sslmode ## Urgent! If the TLS_INTERNAL variable is set to 'false', you must set this variable is 'disable' ## ## You choice: ## `disable` ## `verify-ca` ## `verify-full` ## POSTGRES_VERIFY_LEVEL: verify-full ## PostgreSQL CA certificate path. ## Should be changed for external PostgreSQL: ## ## 1a. Put PostgreSQL CA certificate (`certs/pgsql-ca.crt`) ## Set `POSTGRES_ROOT_CA_PATH` variable with an internal mount point ## 1b. Or uncomment the `cert-pgsql-ca` block in the `vault.certificate` section ## 2. Uncomment the `secret.cert-pgsql-ca` block for secret creation ## ## Default value (internal PostgreSQL): /etc/ssl/certs/ca.crt ## # POSTGRES_ROOT_CA_PATH: /etc/ssl/certs/pgsql-ca.crt ## ---------- ## ## ClickHouse ## ## ---------- ## ## Set the value to `true` if `kcs-clickhouse` should be run using a single PV named `pvc-clickhouse-cold` ## CLICKHOUSE_SINGLE_STORAGE: false ## Storage duration for the main volume of data in minutes. Maximum value - 720 ## MAIN_STORAGE_TIME: 30 ## Data partition duration in hours. Allowed range: 4–24 ## PARTITION_VOLUME: 24 ## Number of partitions to retain. Allowed range: 2–90 ## Total TTL is calculated as: PARTITION_VOLUME × PARTITION_STORAGE_COUNT (8–2160h) ## PARTITION_STORAGE_COUNT: 2 ## Enable collection of operational metrics in ClickHouse. ## USE_METRICS: false ## External ClickHouse environment variables must be uncommented and changed if an external database is used. ## # EXT_CLICKHOUSE_PROTOCOL: https # EXT_CLICKHOUSE_HOST: clickhouse.ns.svc.cluster.local # EXT_CLICKHOUSE_PORT: 8443 # EXT_CLICKHOUSE_DB_NAME: kcs # EXT_CLICKHOUSE_COLD_STORAGE_NAME: cold # EXT_CLICKHOUSE_STORAGE_POLICY_NAME: default ## ClickHouse sslmode enables user authentication using their client certificates without requiring a password ## Urgent! If the TLS_INTERNAL variable is set to 'false', you must set this variable is 'false' ## # EXT_CLICKHOUSE_SSL_AUTH: true ## ClickHouse CA certificate path. ## Must be changed for external ClickHouse if the variable `EXT_CLICKHOUSE_PROTOCOL` is set to `https` ## ## 1a. Put ClickHouse CA certificate (`certs/kcs-clickhouse-ca.crt`) ## Uncomment the `secret.cert-kcs-clickhouse-ca` block for secret creation ## 1b. Or uncomment the `cert-kcs-clickhouse-ca` block in the `vault.certificate` section ## 2. Set `EXT_CLICKHOUSE_ROOT_CA_PATH` variable with an internal mount point ## ## Default value (internal ClickHouse): /etc/ssl/certs/ca.crt ## # EXT_CLICKHOUSE_ROOT_CA_PATH: /etc/ssl/certs/kcs-clickhouse-ca.crt ## ------ ## ## S3 ## ## ------ ## ## S3 environment variables. ## `S3_HOST` may be changed if an external instance is used. ## S3_HOST: kcs-seaweedfs S3_PORT: 9000 S3_BUCKET_NAME: reports ## Parameters for time-based data rotation. S3_ROTATE_BY_DAYS: "false" S3_ROTATIONS_PERIOD_HOURS: "24" S3_RETENTION_DAYS: "90" ## Parameters for volume-based data rotation. ## The value of `S3_QUOTA` is taken from the specified PV size S3_ROTATE_BY_QUOTA: "false" S3_QUOTA_PERCENT: "90" S3_RETENTION_QUOTA_ROTATE_PERCENT: "60" ## External S3 environment variables must be uncommented and changed if an external S3 is used. ## ## Mandatory value in Gi for limiting the amount of data stored on S3. ## S3_EXT_QUOTA: 8Gi ## S3 sslmode variable must be uncommented for TLS/SSL connections to an external S3 ## Urgent! If the TLS_INTERNAL variable is set to 'false', you must set this variable is 'false' ## # S3_SSL: true ## S3 CA certificate path. ## Must be changed for external S3 if the variable `S3_SSL` is set to `true`: ## ## 1a. Put S3 CA certificate (`certs/s3-ca.crt`) ## Uncomment the `secret.cert-s3-ca` block for secret creation ## 1b. Or uncomment the `cert-s3-ca` block in the `vault.certificate` section ## 2. Set `S3_ROOT_CA_PATH` variable with an internal mount point ## ## Default value (internal S3): /etc/ssl/certs/ca.crt ## # S3_ROOT_CA_PATH: /etc/ssl/certs/s3-ca.crt ## ------------ ## ## Log levels ## ## ------------ ## ## Internal log level ## ## Your choice: ## `panic | fatal | error | warning | debug | trace | info` ## ## Default, recommended for production - `info` ## # LOG_LEVEL: info ## External log level ## ## Your choice: ## `debug | release` ## ## Default, recommended for production - `release` ## # HTTP_MODE: release ## Database requests logs for all KCS services ## ## Your choice: ## `info | warn | error | silent` ## ## Default, recommended for production - `silent` ## # DB_LOG_LEVEL: silent ## Log level for kcs-postgresql ## ## Your choice: ## `debug5, debug4, debug3, debug2, debug51, log, notice, warning, and error` ## # POSTGRESQL_CLIENT_MIN_MESSAGES: "error" # POSTGRESQL_LOG_HOSTNAME: "false" # POSTGRESQL_LOG_CONNECTIONS: "false" # POSTGRESQL_LOG_DISCONNECTIONS: "false" # POSTGRESQL_PGAUDIT_LOG_CATALOG: "off" ## ------------------------------------ ## ## Updates and external communications ## ## ------------------------------------ ## ## If `default.updates.enabled` is `true` and the `kcs-updates` internal container is used in the same namespace, the necessary values will be added to the Configmap automatically. ## ## If namespace is different or an external web address is used, you need to do two things: ## 1. If use HTTP & HTTPS proxies for components, the variable `secret.infracreds.envs.SCANNER_PROXY` is must be empty ## 2. Correct and uncomment these variables: ## # UPDATE_SOURCE: http://kcs-updates.updates-namespace.svc.cluster.local:8080/kuu/updates # KCS_UPDATE_URL: http://kcs-updates.updates-namespace.svc.cluster.local:8080/kuu/updates # KESL_HOST: kcs-updates.updates-namespace.svc.cluster.local:8080 ## Servername directive for PANEL service ## It should be changed to public domain when passthrough ingress scenario is used. ## # SERVERNAME: kcs-panel ## ----- ## ## KSN ## ## ----- ## ## KSN settings for Kaspersky Endpoint Security for Linux in the File Threat Protection component. ## These values allow silent acceptance of the KSN agreement and selection of the KSN statistics submission mode. ## Your choice: ## `Basic | Extended` ## KESL_KSN_MODE: Extended KESL_KSN_ACCEPT_AGREEMENT: false ## ------- ## ## Other ## ## ------- ## ## Enable scanning for Java vulnerabilities ## # ENABLE_JAVA_VULN: true ## The storage period for events and information about duplicate scanning results, values in hours ## # EVENT_LIFETIME_HOURS: 2160 # KESL_EVENT_LIFETIME_HOURS: 2160 # SCAN_LIFETIME_HOURS: 2160 ## Number of parallel processes for parsing scan results ## # SCAN_PARSING_WORKERS: 10 ## Maximum number of digest history records stored for a single image ## # MAX_DIGESTS_PER_IMAGE: 5 ## Number of days to retain scan history since the last scan ## # SCAN_DELETE_DAYS: 180 ## Maximum number of benchmark scan results stored per cluster ## # CLUSTER_BENCHMARK_MAX_COUNT: 5 ## BCrypt password hashing cost factor. Recommended values range from 10 to 14 ## # BCRYPT_COST: 14 ## Maximum number of custom user roles that can be created in the system ## # USER_ROLES_COUNT: 100 ## Enables the legacy Syslog-wrapped CEF format for SIEM integration. When disabled, events are sent as plain CEF messages ## # SIEM_USE_SYSLOG_FORMAT: false ## Refresh interval for scopes, in seconds ## # SCOPE_REFRESH_PERIOD: 45 ## The name of the secret in the namespace that contains credentials for technical user accounts used for accessing repositories in KCS scanning ## # TECHNICAL_ACCOUNTS_SECRET_NAME: kcs-technical-accounts ## The custom connection address for the AI assistant KIRA ## # KIRA_BASE_URL: https://llm-gateway.ksn.kaspersky-labs.com ## Maximum time to wait for a response from the AI assistant, in seconds ## # AI_REQUEST_TIMEOUT: 120s ## Version-specific parameters for generating YAML objects in the UI ## KUBE_AGENT_TAG: v2.6.0 NODE_AGENT_TAG: v2.6.0 SCANNER_TAG: v2.6.0 IMAGE_TAG_MIDDLEWARE: v2.6.0 # ----------- # # Secrets # # ----------- # secret: ## Secrets from files with: ## ## - CA certificate and key for internal services ## - CA for external PostgreSQL ## - CA for external ClickHouse ## - CA for external S3 ## - self-signed service certificates and keys ## - certificate and key for Ingress ## ## Show comments for these blocks and environment variables: ## ## `configmap.infraconfig.envs.TLS_INTERNAL` ## `configmap.infraconfig.envs.TLS_INGRESS` ## `configmap.infraconfig.envs.POSTGRES_VERIFY_LEVEL` ## `configmap.infraconfig.envs.EXT_CLICKHOUSE_SSL_AUTH` ## `configmap.infraconfig.envs.S3_SSL` ## `ingressController.kcs` # ---------------------- # # Ingress certificates # # ---------------------- # ## Certificate and key for PANEL, MIDDLEWARE and AgentBroker services (ssl-passthrough) ## or Ingress Object (https) ## # cert-ingress: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-ingress.crt # tls.key: certs/kcs-ingress.key # --------------------------------------------- # # External PostgreSQL CA & client certificate # # --------------------------------------------- # ## CA certificate for external PostgreSQL ## # cert-pgsql-ca: # type: Opaque # files: # tls.crt: certs/pgsql-ca.crt ## PostgreSQL client certificate for MIDDLEWARE and AgentBroker services. ## # cert-pguser: # type: kubernetes.io/tls # files: # tls.crt: certs/pguser.crt # tls.key: certs/pguser.key # --------------------------------------------- # # External ClickHouse CA & client certificate # # --------------------------------------------- # ## CA certificate for external ClickHouse ## # cert-kcs-clickhouse-ca: # type: Opaque # files: # tls.crt: certs/kcs-clickhouse-ca.crt ## ClickHouse client certificates for EventBroker service. ## # cert-kcsuser-write: # type: kubernetes.io/tls # files: # tls.crt: certs/kcsuser-write.crt # tls.key: certs/kcsuser-write.key # cert-kcsuser-read: # type: kubernetes.io/tls # files: # tls.crt: certs/kcsuser-read.crt # tls.key: certs/kcsuser-read.key # ----------------# # External S3 CA # # ----------------# ## CA certificate for external S3 ## # cert-s3-ca: # type: Opaque # files: # tls.crt: certs/s3-ca.crt # --------------------------------------------------------- # # Internal certificates (when `default.certSource: files`) # # --------------------------------------------------------- # ## CA certificate and key for internal services ## # cert-ca: # type: kubernetes.io/tls # files: # tls.crt: certs/ca.crt # tls.key: certs/ca.key ## Certificate and key for the PANEL service (internal) ## # cert-kcs-panel: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-panel.crt # tls.key: certs/kcs-panel.key ## Certificate and key for the LICENSES service (internal) ## # cert-kcs-licenses: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-licenses.crt # tls.key: certs/kcs-licenses.key ## Certificate and key for the AGENT BROKER service (internal) ## # cert-kcs-ab: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-ab.crt # tls.key: certs/kcs-ab.key ## Certificate and key for the IMAGE-HANDLER client certificate (internal) ## # cert-kcs-ih: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-ih.crt # tls.key: certs/kcs-ih.key ## Certificate and key for the MIDDLEWARE service (internal) ## # cert-kcs-middleware: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-middleware.crt # tls.key: certs/kcs-middleware.key ## Certificate and key for the MIDDLEWARE GRPC service (internal) ## # cert-kcs-mw-grpc: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-mw-grpc.crt # tls.key: certs/kcs-mw-grpc.key ## Certificate and key for the MIDDLEWARE TOKEN service (internal) ## # cert-kcs-mw-token: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-mw-token.crt # tls.key: certs/kcs-mw-token.key ## Certificate and key for the SCANNER service (internal) ## # cert-kcs-scanner: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-scanner.crt # tls.key: certs/kcs-scanner.key ## Certificate and key for the SCANNER API service (internal) ## # cert-kcs-scanner-api: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-scanner-api.crt # tls.key: certs/kcs-scanner-api.key ## Certificate and key for the UPDATES service (internal) ## # cert-kcs-updates: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-updates.crt # tls.key: certs/kcs-updates.key ## Certificate and key for the Memcached service (internal) ## # cert-kcs-memcached: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-memcached.crt # tls.key: certs/kcs-memcached.key ## Certificate and key for the POSTGRESQL service (internal) ## # cert-kcs-postgresql: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-postgresql.crt # tls.key: certs/kcs-postgresql.key ## Certificate and key for s3 service (internal) ## # cert-kcs-seaweedfs: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-seaweedfs.crt # tls.key: certs/kcs-seaweedfs.key ## Certificate and key for EventBroker service (internal) ## # cert-kcs-eb: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-eb.crt # tls.key: certs/kcs-eb.key ## Certificate and key for the MIDDLEWARE TOKEN service (internal) ## # cert-kcs-eb-grpc: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-eb-grpc.crt # tls.key: certs/kcs-eb-grpc.key ## Certificate and key for ClickHouse service (internal) ## # cert-kcs-clickhouse: # type: kubernetes.io/tls # files: # tls.crt: certs/kcs-clickhouse.crt # tls.key: certs/kcs-clickhouse.key # cert-kcsuser-write: # type: kubernetes.io/tls # files: # tls.crt: certs/kcsuser-write.crt # tls.key: certs/kcsuser-write.key # cert-kcsuser-read: # type: kubernetes.io/tls # files: # tls.crt: certs/kcsuser-read.crt # tls.key: certs/kcsuser-read.key # ---------------- # # System secrets # # ---------------- # ## Main Secret `infracreds` with environment variables for KCS services. ## infracreds: type: fromEnvs envs: ## HTTP & HTTPS proxies for components ## # HTTP_PROXY: # HTTPS_PROXY: # SCANNER_PROXY: # LICENSE_PROXY: ## Credentials for PostgreSQL ## If you change the default value of `POSTGRES_USER` and use the variable `secret.infracreds.envs.POSTGRES_VERIFY_LEVEL` with a value of `verify-full`, ## you must use `default.certSource: files` ## POSTGRES_USER: pguser POSTGRES_PASSWORD: "" ## Credentials for S3 ## The `S3_ROOT_PASSWORD` value must be more or equal to 8 characters ## S3_ROOT_USER: "" S3_ROOT_PASSWORD: "" ## Usernames for ClickHouse are required only if it is used externally ## # EXT_CLICKHOUSE_WRITE_USER: kcsuser-write # EXT_CLICKHOUSE_READ_USER: kcsuser-read ## Passwords for ClickHouse ## CLICKHOUSE_ADMIN_PASSWORD: "" CLICKHOUSE_WRITE_PASSWORD: "{{ $.Values.secret.infracreds.envs.CLICKHOUSE_ADMIN_PASSWORD }}" CLICKHOUSE_READ_PASSWORD: "{{ $.Values.secret.infracreds.envs.CLICKHOUSE_ADMIN_PASSWORD }}" ## Credentials for Memcached ## MCHD_USER: "" MCHD_PASS: "" ## These parameters is used to encrypt sensitive information in the database. ## Urgent! After creation, this parameter must not be lost or changed ## APP_SECRET: "" ## Credentials for technical user accounts used for accessing repositories in KCS scanning ## The value must be a base64-encoded string of a JSON file ## # TECHNICAL_ACCOUNTS: base64-string # ----------- # # Vault # # ----------- # ## The Vault section generates annotation components for the vault k8s injector ## If you uncomment any value from the `secret` or `certificate` section, it will override the generated or already defined value of the same type. ## vault: ## Enable the generation of main annotations and inserts them into the pod that has a match to a secret or certificate ## # enabled: true ## Path to mount secrets in the pod. Default `/vault/secrets` ## # mountPath: /vault/secrets ## Authorization role in the vault. It should have all the service accounts from the section `serviceAccount` ## # role: kcs ## Flag for the annotation value `vault.hashicorp.com/agent-init-first`. Default `true` ## # agentInitFirst: "true" ## Flag for the annotation value `vault.hashicorp.com/agent-pre-populate`. Default `true` ## # agentPrePopulate: "true" ## Flag for the annotation value ` vault.hashicorp.com/agent-pre-populate-only`. Default `false` ## # agentPrePopulateOnly: "false" ## Flag for the annotation value `vault.hashicorp.com/preserve-secret-case`. Default `true` ## # preserveSecretCase: "true" ## Custom block for adding any annotations to all components ## To add a custom annotation to the pod, you need to insert the `annotation` field into the required `component` in the ARCHITECTURE block. ## # annotations: # vault.hashicorp.com/foo: "bar" # --------------- # # Vault secrets # # --------------- # ## In the `vault.secret` section in the value of the variable you must specify the path and name of the secret from Vault ## and through the `@` sign specify the name of the key from vault ## Any uncommented secret overrides the value of the same secret from the `secret` section ## secret: type: managedByVault ## Flag for the annotation value `vault.hashicorp.com/agent-inject-perms`. Default `0440` ## # agentInjectPerms: "0440" ## HTTP & HTTPS proxies for components ## # HTTP_PROXY: kv/secret/kcs/proxy@HTTP_PROXY # HTTPS_PROXY: kv/secret/kcs/proxy@HTTPS_PROXY # SCANNER_PROXY: kv/secret/kcs/proxy@SCANNER_PROXY # LICENSE_PROXY: kv/secret/kcs/proxy@LICENSE_PROXY ## Credentials for PostgreSQL ## The component `kcs-postgresql` do not support the integration of getting secrets from the Vault ## Use the flag `default.postgresql.external` is `true` or keep these credentials commented ## # POSTGRES_USER: kv/secret/kcs/psql@POSTGRES_USER # POSTGRES_PASSWORD: kv/secret/kcs/psql@POSTGRES_PASSWORD ## Credentials for S3 ## The `S3_ROOT_PASSWORD` value must be more or equal to 8 characters ## # S3_ROOT_USER: kv/secret/kcs/s3@S3_ROOT_USER # S3_ROOT_PASSWORD: kv/secret/kcs/s3@S3_ROOT_PASSWORD ## Usernames for ClickHouse are required only if it is used externally ## # EXT_CLICKHOUSE_WRITE_USER: kv/secret/kcs/clickhouse@EXT_CLICKHOUSE_WRITE_USER # EXT_CLICKHOUSE_READ_USER: kv/secret/kcs/clickhouse@EXT_CLICKHOUSE_READ_USER ## Passwords for ClickHouse ## # CLICKHOUSE_ADMIN_PASSWORD: kv/secret/kcs/clickhouse@CLICKHOUSE_ADMIN_PASSWORD # CLICKHOUSE_WRITE_PASSWORD: kv/secret/kcs/clickhouse@CLICKHOUSE_WRITE_PASSWORD # CLICKHOUSE_READ_PASSWORD: kv/secret/kcs/clickhouse@CLICKHOUSE_READ_PASSWORD ## Credentials for Memcached ## # MCHD_USER: kv/secret/kcs/memcached@MCHD_USER # MCHD_PASS: kv/secret/kcs/memcached@MCHD_PASS ## These parameters is used to encrypt sensitive information in the database. ## If parameters are lost or updated, the data will be lost ## # APP_SECRET: kv/secret/kcs/appsecret@APP_SECRET ## Credentials for technical user accounts used for accessing repositories in KCS scanning ## The required key name in the secret is `config.json` ## # TECHNICAL_ACCOUNTS: kv/tua/configjson@config.json # ----------------- # # Vault certificate # # ----------------- # ## In the vault.certificate section, the following values must be specified: ## 1. To obtain a CA certificate, the `ca` flag is required to `true`, with the path derived from the PKI name using the default access path `cert/ca`. ## If the CA certificate is not a root certificate, the entire certificate chain, including the root, must be specified through the `caList` flag as a list. ## 2. For generating certificates and keys, the path must be derived from the PKI name using the default access path `issue` along with the name of the created role. ## The certificate will automatically include the `common_name` and all possible alternative names. The `cn`, `altname` and `ipsans` flags can override this behavior. ## Any uncommented certificate overrides the value of the same secret from the `secret` section ## certificate: ## Flag for `ttl` value in certificate generation annotations. Default `8760h` ## Cannot exceed the value set in the Vault PKI settings. ## # ttl: "8760h" ## Flag for the annotation value `vault.hashicorp.com/agent-inject-perms`. Default `0440` ## # agentInjectPerms: "0440" # --------------------------------------------- # # External PostgreSQL CA & client certificates # # --------------------------------------------- # ## The component `kcs-postgresql` do not support the integration of getting secrets from the Vault ## Use the flag `default.postgresql.external` is `true` or keep these credentials commented ## with the flag `configmap.infraconfig.envs.POSTGRES_VERIFY_LEVEL` is `disable` ## ## CA certificate for external PostgreSQL ## Uncomment the variable `configmap.infraconfig.envs.POSTGRES_ROOT_CA_PATH` ## # cert-pgsql-ca: # ca: true # tls.crt: pki_psql/cert/ca # caList: # - pki/cert/ca ## PostgreSQL client certificate for MIDDLEWARE and AgentBroker services. ## The value of flags `cn`, `altname` and `ipsans` should be set according to the settings of the external database ## # cert-pguser: # cn: pguser # altname: pguser,pguser.psql,pguser.psql.svc,pguser.psql.svc.cluster.local,localhost # ipsans: 0.0.0.0,127.0.0.1 # tls.crt: pki_psql/issue/psql # tls.key: pki_psql/issue/psql # --------------------------------------------- # # External ClickHouse CA & client certificates # # --------------------------------------------- # ## CA certificate for external ClickHouse ## Uncomment the variable `configmap.infraconfig.envs.EXT_CLICKHOUSE_ROOT_CA_PATH` ## # cert-kcs-clickhouse-ca: # ca: true # tls.crt: pki_clickhouse/cert/ca # caList: # - pki/cert/ca ## ClickHouse client certificates for EventBroker service. ## The value of flags `cn`, `altname` and `ipsans` should be set according to the settings of the external database ## # cert-kcsuser-write: # cn: kcsuser-write # altname: kcsuser-write.clickhouse # ipsans: 0.0.0.0,127.0.0.1 # tls.crt: pki_clickhouse/issue/clickhouse # tls.key: pki_clickhouse/issue/clickhouse # cert-kcsuser-read: # cn: kcsuser-read # altname: kcsuser-read.clickhouse # ipsans: 0.0.0.0,127.0.0.1 # tls.crt: pki_clickhouse/issue/clickhouse # tls.key: pki_clickhouse/issue/clickhouse # ----------------# # External S3 CA # # ----------------# ## CA certificate for external S3 ## Uncomment the variable `configmap.infraconfig.envs.S3_ROOT_CA_PATH` ## # cert-s3-ca: # ca: true # tls.crt: pki_s3/cert/ca # caList: # - pki/cert/ca # ----------------------- # # Internal certificates # # ----------------------- # ## CA certificate for internal services ## # cert-ca: # ca: true # tls.crt: pki_kcs/cert/ca # caList: # - pki/cert/ca ## Certificate and key for the PANEL service (internal) ## # cert-kcs-panel: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for the LICENSES service (internal) ## # cert-kcs-licenses: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for the AGENT BROKER service (internal) ## # cert-kcs-ab: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for the AGENT BROKER service (internal) ## # cert-kcs-ih: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for the MIDDLEWARE service (internal) ## # cert-kcs-middleware: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for the MIDDLEWARE GRPC service (internal) ## # cert-kcs-mw-grpc: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for the MIDDLEWARE TOKEN service (internal) ## # cert-kcs-mw-token: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for the SCANNER service (internal) ## # cert-kcs-scanner: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for the SCANNER API service (internal) ## # cert-kcs-scanner-api: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for the UPDATES service (internal) ## # cert-kcs-updates: # tls.key: pki_kcs/issue/kcs # tls.crt: pki_kcs/issue/kcs ## Certificate and key for the Memcached service (internal) ## # cert-kcs-memcached: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for s3 service (internal) ## # cert-kcs-seaweedfs: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for EventBroker service (internal) ## # cert-kcs-eb: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for EventBroker service (internal) ## # cert-kcs-eb-grpc: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ## Certificate and key for ClickHouse service (internal) ## # cert-kcs-clickhouse: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs # cert-kcsuser-write: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs # cert-kcsuser-read: # tls.crt: pki_kcs/issue/kcs # tls.key: pki_kcs/issue/kcs ################################################################################################