Skip to content
yaml
# this is a full config file, just show all available config items.

log:
  level: debug
  proxyLevel: info

database:
  # The database type to use. Supported types are: sqlite3, turso, mysql, postgresql
  type: sqlite3
  sqlite3:
    path: /var/lib/sigma/sigma.db
  turso:
    dsn: /var/lib/sigma/sigma-turso.db
  mysql:
    host: localhost
    port: 3306
    username: sigma
    password: sigma
    database: sigma
  postgresql:
    host: localhost
    port: 5432
    username: sigma
    password: sigma
    database: sigma
    sslMode: disable

# deploy available: single, replica
# replica should use external redis
deploy: single

redis:
  # redis type available: none, external. Following all of redis config just use reference here.
  # none: means never use redis
  # external: means use the specific redis instance
  type: none
  url: redis://:sigma@localhost:6379/0

cache:
  # the cache type available is: redis, inmemory
  # please attention in multi-node mode, you should use redis
  type: inmemory
  # cache key prefix
  prefix: sigma-cache
  inmemory:
    size: 10240
  redis:
    ttl: 72h

workqueue:
  # the workqueue type available: redis, database, inmemory
  type: redis
  redis:
    concurrency: 10
    # reject new messages when redis queue backlog reaches this value; 0 means unlimited
    maxBacklog: 0
  database: {}
  inmemory:
    concurrency: 1024
    maxBacklog: 1000

locker:
  # the locker type available: redis, inmemory
  type: redis
  prefix: sigma-locker
  inmemory: {}
  redis: {}

namespace:
  # the default namespace visibility, available: public, private
  visibility: public
  # namespaces created at startup; each entry is created when missing,
  # and each entry may set its own visibility (public or private)
  initialize:
    - name: library
      visibility: public

http:
  # endpoint can be a domain or domain with port, eg: http://sigma.test.io, https://sigma.test.io:30080, http://127.0.0.1:3000
  # this endpoint will be used to generate the token service url in auth middleware,
  # you can leave it blank and it will use http://127.0.0.1:3000 as internal domain by default,
  # because the front page need show this endpoint.
  endpoint:
  # in some cases, daemon may pull image and scan it, but we don't want to pull image from public registry domain,
  # so use this internal domain to pull image from registry.
  # you can leave it blank and it will use http://127.0.0.1:3000 as internal domain by default.
  # in k8s cluster, it will be set to the distribution service which is used to pull image from registry, eg: http://registry.default.svc.cluster.local:3000
  # in docker-compose, it will be set to the registry service which is used to pull image from registry, eg: http://registry:3000
  # if http.tls.enabled is true, internalEndpoint should start with https://
  # eg: http://sigma.test.io, http://sigma.test.io:3000, https://sigma.test.io:30080
  internalEndpoint:
  # the endpoint the builder container uses to push the image and call the sigma API; it defaults
  # to internalEndpoint. Set it when the builder resolves the server differently from the daemons
  # on the host, eg. http://sigma-distribution:3000 in docker-compose or
  # http://host.docker.internal:3000 when the server runs on the host and the builder in docker.
  internalDistributionEndpoint:
  # These timeouts cover every request, including the web UI served when
  # http.static is enabled.
  timeout:
    readHeader: 30s
    # read and write cover full push/pull transfers; increase them for very large images or slow links
    read: 1h
    write: 1h
    idle: 2m
  bodyLimit:
    # request body size limits in bytes; 0 disables the limit for that route class
    enabled: true
    # default applies to regular API requests
    default: 10485760
    # manifest applies to PUT /v2/<name>/manifests/<reference>
    manifest: 104857600
    # blob applies to /v2/<name>/blobs/uploads requests; increase for large image pushes
    blob: 10737418240
  # Serve the built web UI from the server itself instead of a separate nginx.
  # The sigma-server image ships the web UI in /app; set dir to ./web/dist when
  # running the server from the repository.
  static:
    enabled: true
    dir: /app
    # Fall back to index.html for unknown routes without a file extension.
    spa: true
    cacheControl: no-cache
    immutablePrefixes:
      - /assets/
    immutableCacheControl: public, max-age=31536000, immutable
  tls:
    enabled: false
    certificate: ./conf/sigma.test.io.crt
    key: ./conf/sigma.test.io.key

storage:
  rootdirectory: ./storage
  redirect: false
  # total storage sigma may use, in bytes; used by the admin home dashboard to show
  # the usage ratio. 0 means unlimited.
  capacity: 0
  type: filesystem
  filesystem:
    path: /var/lib/sigma/oci/
  s3:
    ak: sigma
    sk: sigma-sigma
    endpoint: http://127.0.0.1:9000
    region: cn-north-1
    bucket: sigma
    forcePathStyle: true
  cos:
    ak: sigma
    sk: sigma-sigma
    endpoint: https://hack-1251887554.cos.na-toronto.myqcloud.com
  oss:
    ak: sigma
    sk: sigma-sigma
    endpoint: http://127.0.0.1:9000
    forcePathStyle: true

# Notice: the tag never update after the first pulled from remote registry, unless you delete the image and pull again.
proxy:
  enabled: false
  endpoint: https://registry-1.docker.io
  tlsVerify: true
  username: ""
  password: ""

# daemon task config
daemon:
  builder:
    enabled: false
    image: ghcr.io/go-sigma/sigma-builder:nightly
    type: docker
    tlsVerify: true
    docker:
      sock:
      network: sigma
    kubernetes:
      kubeconfig:
      namespace: sigma-builder
    podman:
      uri: unix:///run/podman/podman.sock
  vulnerability:
    staleTimeout: 6h
    grype:
      dbCacheDir: ""

auth:
  anonymous:
    # anonymous will disabled if auth.anonymous.enabled set false
    enabled: true
  admin:
    username: sigma
    # Leave empty to generate a random password on the first start. The generated password is
    # written to the server log exactly once, for example:
    #   level=WARN msg="admin user created with an auto-generated password, please record it and
    #   change it after login" username=sigma password=62AWdMKiKb
    # Record that password, sign in with it, and change it right away: the login page asks for a
    # new password before it lets an account that still uses a generated password into the app.
    # Set a value here to pin the initial password instead (then no password is generated and no
    # log line is printed).
    password: ""
    email: sigma@sigma.io
  token:
    realm: ""
    service: ""
  jwt:
    ttl: 6h
    refreshTTL: 72h
    # base64 encoded Ed25519 private key, generate one with:
    # openssl genpkey -algorithm ED25519 | base64
    # leave it empty to generate a key on first start and store it in the
    # settings table; later starts reuse it. A configured key always wins.
    privateKey: ""
  oauth2:
    github:
      # github login will disable if auth.oauth.github.enabled set false
      enabled: false
      clientId: "e5f9fa9e372dfac66aed"
      clientSecret: "49ab83f4d0665f8579516f7a3f2f753a6a57189b"
    gitlab:
      # gitlab login will disable if auth.oauth.gitlab.enabled set false
      enabled: false
      clientId: "4df6efcf8c319efb73e8116c72d881c559ccaf822096220a13cee3047b05ed70"
      clientSecret: "94ceddf22fc1560f33caec6be32c9c61a91719bd2df3b5127ccd43187192f95b"
  # throttle failed logins by username: once maxFailures is reached, each
  # authentication attempt is delayed by delay instead of being rejected
  loginRateLimit:
    enabled: true
    maxFailures: 5
    # failure counter window; it resets after this with no failures
    window: 5m
    # fixed delay applied to every authentication attempt after maxFailures
    delay: 1s
  # master key used to encrypt source code credentials (access tokens, ssh keys,
  # passwords) at rest. when empty, sigma generates one on first start and stores it in
  # the settings table. rotating it makes the stored credentials unreadable, so users have
  # to enter them again.
  # generate the key with: openssl rand -base64 32
  credentialKey: ""

scm:
  # source code management providers available for code repository sync and image builds.
  # this section is independent of auth.oauth2, which only decides whether a provider can be
  # used to sign in. when empty, the providers are derived from the enabled oauth2 providers,
  # so an existing configuration keeps working.
  providers: []
  # providers:
  #   - provider: github
  #     baseUrl: https://github.com
  #   - provider: gitlab
  #     # self-hosted gitlab
  #     baseUrl: https://gitlab.example.com
  #   - provider: gitea
  #     # gitea has no default base url and is skipped when it is empty
  #     baseUrl: https://gitea.example.com

audit:
  # record completed authenticated business HTTP requests
  enabled: true
  # record list-style GET requests, such as namespace, tag, and catalog lists
  recordListGet: false
  cleanup:
    # soft delete audit records older than this many months
    softDeleteAfterMonths: 3
    # hard delete audit records older than this many months
    hardDeleteAfterMonths: 6
    # run audit cleanup once per week by default
    interval: 168h
    # maximum audit records changed per cleanup iteration
    batchSize: 1000

Environment variable overrides ​

Every item above can be overridden from the environment, so a container deployment does not need to template the config file. Variables are resolved after the YAML file is loaded: a set variable always wins over the file, and an unset variable always keeps the value from the file.

Naming rule ​

The variable name is SIGMA_ followed by the YAML path, upper cased and joined with _:

config pathenvironment variable
daemon.builder.enabledSIGMA_DAEMON_BUILDER_ENABLED
daemon.builder.typeSIGMA_DAEMON_BUILDER_TYPE
daemon.builder.imageSIGMA_DAEMON_BUILDER_IMAGE
daemon.builder.tlsVerifySIGMA_DAEMON_BUILDER_TLSVERIFY
daemon.builder.extra_hostsSIGMA_DAEMON_BUILDER_EXTRA_HOSTS
auth.jwt.privateKeySIGMA_AUTH_JWT_PRIVATEKEY

Names are case insensitive, and the underscores inside one path segment are optional, so SIGMA_DAEMON_BUILDER_TLS_VERIFY and sigma_daemon_builder_tlsverify address the same item as SIGMA_DAEMON_BUILDER_TLSVERIFY.

Value syntax ​

typeaccepted syntaxexample
stringtaken verbatimSIGMA_HTTP_ENDPOINT=https://registry.example.com
booltrue, false, 1, 0SIGMA_DAEMON_BUILDER_ENABLED=true
integerdecimalSIGMA_DATABASE_MYSQL_PORT=3306
durationGo duration syntaxSIGMA_DAEMON_GC_RETENTION=48h
enumone of the documented values, validated on startupSIGMA_DAEMON_BUILDER_TYPE=docker
floatdecimal with . as separatorSIGMA_TRACE_SAMPLERATIO=0.25
listcomma separated, whitespace trimmedSIGMA_REDIS_ADDRS=redis-0:6379,redis-1:6379

An unparsable value, an unknown enum value, or a boolean that is not true/false/1/0 aborts the startup with an error naming both the variable and the config path, for example SIGMA_DAEMON_GC_BATCHSIZE (daemon.gc.batchSize): ... invalid syntax. Valid overrides in the same process are still applied before the error is returned.

Complete mapping ​

Sections and items are sorted alphabetically; every leaf of the config file is listed, together with the value each item takes when it is omitted. Structured lists (namespace.initialize and scm.providers) can only be set in the config file, so they have no environment variable and are not listed here.

analytics ​

config pathenvironment variabledefault
analytics.backendSIGMA_ANALYTICS_BACKEND""
analytics.counterBackendSIGMA_ANALYTICS_COUNTERBACKEND""
analytics.enabledSIGMA_ANALYTICS_ENABLEDfalse
analytics.flushIntervalSIGMA_ANALYTICS_FLUSHINTERVAL""
analytics.reconcileCronSIGMA_ANALYTICS_RECONCILECRON""
analytics.retentionDaysSIGMA_ANALYTICS_RETENTIONDAYS0

audit ​

config pathenvironment variabledefault
audit.cleanup.batchSizeSIGMA_AUDIT_CLEANUP_BATCHSIZE1000
audit.cleanup.hardDeleteAfterMonthsSIGMA_AUDIT_CLEANUP_HARDDELETEAFTERMONTHS6
audit.cleanup.intervalSIGMA_AUDIT_CLEANUP_INTERVAL168h
audit.cleanup.softDeleteAfterMonthsSIGMA_AUDIT_CLEANUP_SOFTDELETEAFTERMONTHS3
audit.enabledSIGMA_AUDIT_ENABLEDtrue
audit.recordListGetSIGMA_AUDIT_RECORDLISTGETfalse

auth ​

config pathenvironment variabledefault
auth.admin.emailSIGMA_AUTH_ADMIN_EMAIL""
auth.admin.passwordSIGMA_AUTH_ADMIN_PASSWORD""
auth.admin.usernameSIGMA_AUTH_ADMIN_USERNAME""
auth.anonymous.enabledSIGMA_AUTH_ANONYMOUS_ENABLEDfalse
auth.credentialKeySIGMA_AUTH_CREDENTIALKEY""
auth.jwt.privateKeySIGMA_AUTH_JWT_PRIVATEKEY""
auth.jwt.refreshTTLSIGMA_AUTH_JWT_REFRESHTTL24h
auth.jwt.ttlSIGMA_AUTH_JWT_TTL1h
auth.loginRateLimit.delaySIGMA_AUTH_LOGINRATELIMIT_DELAY1s
auth.loginRateLimit.enabledSIGMA_AUTH_LOGINRATELIMIT_ENABLEDtrue
auth.loginRateLimit.maxFailuresSIGMA_AUTH_LOGINRATELIMIT_MAXFAILURES5
auth.loginRateLimit.windowSIGMA_AUTH_LOGINRATELIMIT_WINDOW5m
auth.oauth2.gitea.clientIdSIGMA_AUTH_OAUTH2_GITEA_CLIENTID""
auth.oauth2.gitea.clientSecretSIGMA_AUTH_OAUTH2_GITEA_CLIENTSECRET""
auth.oauth2.gitea.enabledSIGMA_AUTH_OAUTH2_GITEA_ENABLEDfalse
auth.oauth2.github.clientIdSIGMA_AUTH_OAUTH2_GITHUB_CLIENTID""
auth.oauth2.github.clientSecretSIGMA_AUTH_OAUTH2_GITHUB_CLIENTSECRET""
auth.oauth2.github.enabledSIGMA_AUTH_OAUTH2_GITHUB_ENABLEDfalse
auth.oauth2.gitlab.clientIdSIGMA_AUTH_OAUTH2_GITLAB_CLIENTID""
auth.oauth2.gitlab.clientSecretSIGMA_AUTH_OAUTH2_GITLAB_CLIENTSECRET""
auth.oauth2.gitlab.enabledSIGMA_AUTH_OAUTH2_GITLAB_ENABLEDfalse
auth.token.realmSIGMA_AUTH_TOKEN_REALM""
auth.token.serviceSIGMA_AUTH_TOKEN_SERVICE""

cache ​

config pathenvironment variabledefault
cache.inmemory.sizeSIGMA_CACHE_INMEMORY_SIZE10240
cache.negativeTtlSIGMA_CACHE_NEGATIVETTL5m
cache.prefixSIGMA_CACHE_PREFIXsigma-cache
cache.prewarm.enabledSIGMA_CACHE_PREWARM_ENABLEDtrue
cache.prewarm.limitSIGMA_CACHE_PREWARM_LIMIT1000
cache.prewarm.timeoutSIGMA_CACHE_PREWARM_TIMEOUT10s
cache.redis.ttlSIGMA_CACHE_REDIS_TTL72h
cache.ttlSIGMA_CACHE_TTL72h
cache.typeSIGMA_CACHE_TYPE""

daemon ​

config pathenvironment variabledefault
daemon.builder.docker.networkSIGMA_DAEMON_BUILDER_DOCKER_NETWORK""
daemon.builder.docker.sockSIGMA_DAEMON_BUILDER_DOCKER_SOCK""
daemon.builder.enabledSIGMA_DAEMON_BUILDER_ENABLEDfalse
daemon.builder.extra_hostsSIGMA_DAEMON_BUILDER_EXTRA_HOSTS[]
daemon.builder.imageSIGMA_DAEMON_BUILDER_IMAGE""
daemon.builder.kubernetes.kubeconfigSIGMA_DAEMON_BUILDER_KUBERNETES_KUBECONFIG""
daemon.builder.kubernetes.namespaceSIGMA_DAEMON_BUILDER_KUBERNETES_NAMESPACEdefault
daemon.builder.podman.uriSIGMA_DAEMON_BUILDER_PODMAN_URIunix:///run/podman/podman.sock
daemon.builder.tlsVerifySIGMA_DAEMON_BUILDER_TLSVERIFYtrue
daemon.builder.typeSIGMA_DAEMON_BUILDER_TYPE""
daemon.gc.batchSizeSIGMA_DAEMON_GC_BATCHSIZE100
daemon.gc.cleanup.batchSizeSIGMA_DAEMON_GC_CLEANUP_BATCHSIZE1000
daemon.gc.cleanup.intervalSIGMA_DAEMON_GC_CLEANUP_INTERVAL6h
daemon.gc.cleanup.retentionSIGMA_DAEMON_GC_CLEANUP_RETENTION168h
daemon.gc.cronSIGMA_DAEMON_GC_CRON""
daemon.gc.lockExpireSIGMA_DAEMON_GC_LOCKEXPIRE30s
daemon.gc.lockWaitTimeoutSIGMA_DAEMON_GC_LOCKWAITTIMEOUT5s
daemon.gc.recordBatchSizeSIGMA_DAEMON_GC_RECORDBATCHSIZE100
daemon.gc.retentionSIGMA_DAEMON_GC_RETENTION0s
daemon.gc.workerCountSIGMA_DAEMON_GC_WORKERCOUNT2
daemon.sizeReconcile.batchSizeSIGMA_DAEMON_SIZERECONCILE_BATCHSIZE100
daemon.sizeReconcile.intervalSIGMA_DAEMON_SIZERECONCILE_INTERVAL6h
daemon.sizeReconcile.lockExpireSIGMA_DAEMON_SIZERECONCILE_LOCKEXPIRE30s
daemon.sizeReconcile.lockWaitTimeoutSIGMA_DAEMON_SIZERECONCILE_LOCKWAITTIMEOUT100ms
daemon.vulnerability.grype.dbCacheDirSIGMA_DAEMON_VULNERABILITY_GRYPE_DBCACHEDIR""
daemon.vulnerability.staleTimeoutSIGMA_DAEMON_VULNERABILITY_STALETIMEOUT6h

database ​

config pathenvironment variabledefault
database.connMaxIdleTimeSIGMA_DATABASE_CONNMAXIDLETIME10m
database.connMaxLifetimeSIGMA_DATABASE_CONNMAXLIFETIME1h
database.maxIdleConnsSIGMA_DATABASE_MAXIDLECONNS10
database.maxOpenConnsSIGMA_DATABASE_MAXOPENCONNS50
database.mysql.databaseSIGMA_DATABASE_MYSQL_DATABASE""
database.mysql.hostSIGMA_DATABASE_MYSQL_HOST""
database.mysql.passwordSIGMA_DATABASE_MYSQL_PASSWORD""
database.mysql.portSIGMA_DATABASE_MYSQL_PORT0
database.mysql.usernameSIGMA_DATABASE_MYSQL_USERNAME""
database.postgresql.databaseSIGMA_DATABASE_POSTGRESQL_DATABASE""
database.postgresql.hostSIGMA_DATABASE_POSTGRESQL_HOST""
database.postgresql.passwordSIGMA_DATABASE_POSTGRESQL_PASSWORD""
database.postgresql.portSIGMA_DATABASE_POSTGRESQL_PORT0
database.postgresql.sslModeSIGMA_DATABASE_POSTGRESQL_SSLMODE""
database.postgresql.usernameSIGMA_DATABASE_POSTGRESQL_USERNAME""
database.sqlite3.pathSIGMA_DATABASE_SQLITE3_PATH""
database.turso.dsnSIGMA_DATABASE_TURSO_DSN""
database.typeSIGMA_DATABASE_TYPE""

deploy ​

config pathenvironment variabledefault
deploySIGMA_DEPLOY""

http ​

config pathenvironment variabledefault
http.bodyLimit.blobSIGMA_HTTP_BODYLIMIT_BLOB10737418240
http.bodyLimit.defaultSIGMA_HTTP_BODYLIMIT_DEFAULT10485760
http.bodyLimit.enabledSIGMA_HTTP_BODYLIMIT_ENABLEDtrue
http.bodyLimit.manifestSIGMA_HTTP_BODYLIMIT_MANIFEST104857600
http.endpointSIGMA_HTTP_ENDPOINThttp://127.0.0.1:3000
http.internalDistributionEndpointSIGMA_HTTP_INTERNALDISTRIBUTIONENDPOINT""
http.internalEndpointSIGMA_HTTP_INTERNALENDPOINThttp://127.0.0.1:3000
http.static.cacheControlSIGMA_HTTP_STATIC_CACHECONTROLno-cache
http.static.dirSIGMA_HTTP_STATIC_DIR/app
http.static.enabledSIGMA_HTTP_STATIC_ENABLEDfalse
http.static.immutableCacheControlSIGMA_HTTP_STATIC_IMMUTABLECACHECONTROLpublic, max-age=31536000, immutable
http.static.immutablePrefixesSIGMA_HTTP_STATIC_IMMUTABLEPREFIXES/assets/
http.static.spaSIGMA_HTTP_STATIC_SPAtrue
http.timeout.idleSIGMA_HTTP_TIMEOUT_IDLE2m
http.timeout.readSIGMA_HTTP_TIMEOUT_READ1h
http.timeout.readHeaderSIGMA_HTTP_TIMEOUT_READHEADER30s
http.timeout.writeSIGMA_HTTP_TIMEOUT_WRITE1h
http.tls.certificateSIGMA_HTTP_TLS_CERTIFICATE""
http.tls.enabledSIGMA_HTTP_TLS_ENABLEDfalse
http.tls.keySIGMA_HTTP_TLS_KEY""

locker ​

config pathenvironment variabledefault
locker.prefixSIGMA_LOCKER_PREFIXsigma-locker
locker.typeSIGMA_LOCKER_TYPE""

log ​

config pathenvironment variabledefault
log.levelSIGMA_LOG_LEVEL""
log.proxyLevelSIGMA_LOG_PROXYLEVEL""

namespace ​

config pathenvironment variabledefault
namespace.visibilitySIGMA_NAMESPACE_VISIBILITYprivate

proxy ​

config pathenvironment variabledefault
proxy.enabledSIGMA_PROXY_ENABLEDfalse
proxy.endpointSIGMA_PROXY_ENDPOINT""
proxy.passwordSIGMA_PROXY_PASSWORD""
proxy.tlsVerifySIGMA_PROXY_TLSVERIFYfalse
proxy.tokenSIGMA_PROXY_TOKEN""
proxy.usernameSIGMA_PROXY_USERNAME""

redis ​

config pathenvironment variabledefault
redis.addrsSIGMA_REDIS_ADDRS[]
redis.dbSIGMA_REDIS_DB0
redis.masterNameSIGMA_REDIS_MASTERNAME""
redis.maxRetriesSIGMA_REDIS_MAXRETRIES0
redis.minIdleConnsSIGMA_REDIS_MINIDLECONNS0
redis.passwordSIGMA_REDIS_PASSWORD""
redis.poolSizeSIGMA_REDIS_POOLSIZE0
redis.urlSIGMA_REDIS_URL""
redis.usernameSIGMA_REDIS_USERNAME""

storage ​

config pathenvironment variabledefault
storage.capacitySIGMA_STORAGE_CAPACITY0
storage.cos.akSIGMA_STORAGE_COS_AK""
storage.cos.endpointSIGMA_STORAGE_COS_ENDPOINT""
storage.cos.forcePathStyleSIGMA_STORAGE_COS_FORCEPATHSTYLEfalse
storage.cos.skSIGMA_STORAGE_COS_SK""
storage.filesystem.pathSIGMA_STORAGE_FILESYSTEM_PATH""
storage.oss.akSIGMA_STORAGE_OSS_AK""
storage.oss.bucketSIGMA_STORAGE_OSS_BUCKET""
storage.oss.endpointSIGMA_STORAGE_OSS_ENDPOINT""
storage.oss.forcePathStyleSIGMA_STORAGE_OSS_FORCEPATHSTYLEfalse
storage.oss.skSIGMA_STORAGE_OSS_SK""
storage.redirectSIGMA_STORAGE_REDIRECTfalse
storage.rootDirectorySIGMA_STORAGE_ROOTDIRECTORY""
storage.s3.akSIGMA_STORAGE_S3_AK""
storage.s3.bucketSIGMA_STORAGE_S3_BUCKET""
storage.s3.checksumValidationSIGMA_STORAGE_S3_CHECKSUMVALIDATION""
storage.s3.endpointSIGMA_STORAGE_S3_ENDPOINT""
storage.s3.forcePathStyleSIGMA_STORAGE_S3_FORCEPATHSTYLEfalse
storage.s3.operateObjectWithoutMD5SIGMA_STORAGE_S3_OPERATEOBJECTWITHOUTMD5false
storage.s3.regionSIGMA_STORAGE_S3_REGION""
storage.s3.skSIGMA_STORAGE_S3_SK""
storage.typeSIGMA_STORAGE_TYPE""

trace ​

config pathenvironment variabledefault
trace.enabledSIGMA_TRACE_ENABLEDfalse
trace.endpointSIGMA_TRACE_ENDPOINT""
trace.insecureSIGMA_TRACE_INSECUREfalse
trace.protocolSIGMA_TRACE_PROTOCOL""
trace.sampleRatioSIGMA_TRACE_SAMPLERATIO0
trace.serviceNameSIGMA_TRACE_SERVICENAME""

workqueue ​

config pathenvironment variabledefault
workqueue.inmemory.concurrencySIGMA_WORKQUEUE_INMEMORY_CONCURRENCY1024
workqueue.inmemory.maxBacklogSIGMA_WORKQUEUE_INMEMORY_MAXBACKLOG1000
workqueue.redis.concurrencySIGMA_WORKQUEUE_REDIS_CONCURRENCY0
workqueue.redis.maxBacklogSIGMA_WORKQUEUE_REDIS_MAXBACKLOG0
workqueue.typeSIGMA_WORKQUEUE_TYPE""

Sample environment ​

bash
# build daemons
SIGMA_DAEMON_BUILDER_ENABLED=true
SIGMA_DAEMON_BUILDER_TYPE=docker
SIGMA_DAEMON_BUILDER_IMAGE=ghcr.io/go-sigma/sigma-builder:nightly-alpine
SIGMA_DAEMON_BUILDER_TLSVERIFY=true
SIGMA_DAEMON_BUILDER_EXTRA_HOSTS=host.docker.internal:host-gateway

# storage and database
SIGMA_DATABASE_TYPE=postgresql
SIGMA_DATABASE_POSTGRESQL_PASSWORD=change-me
SIGMA_STORAGE_TYPE=s3
SIGMA_STORAGE_S3_BUCKET=sigma
SIGMA_STORAGE_S3_AK=sigma
SIGMA_STORAGE_S3_SK=change-me

# list and duration values
SIGMA_REDIS_ADDRS=redis-0:6379,redis-1:6379
SIGMA_DAEMON_GC_RETENTION=48h

Items that must stay in the config file ​

scm.providers and namespace.initialize are lists of objects, which a single variable cannot express. They are only read from the config file; setting SIGMA_SCM_PROVIDERS or SIGMA_NAMESPACE_INITIALIZE logs a warning and is ignored.

Unrelated SIGMA_ variables ​

SIGMA_SERVER, SIGMA_USERNAME, SIGMA_PASSWORD and SIGMA_CREDENTIALS_FILE belong to the sigma CLI (see CLI), not to the server configuration. They are independent of the variables above and can be set side by side with them.