Environment variables

The env file from the portal holds the three lines a container needs. Every other variable on this page is optional.

The container

The env file from Generate env file (or Quick start) is the only thing a container needs. A few optional variables tune the container itself:

Variable Required Meaning
S60_PROJECT_ID yes project the audit trail and heartbeats go to
S60_INGEST_TOKEN yes the token from Generate env file; used for the configuration poll and for sending events
PROTECTOR_GROUP yes the Protector’s value from the portal; also the source_name on every event
INGEST_LOCATION on-prem only ingest origin, when it is not https://ingest.secure60.io/
S60_ENVIRONMENT no environment on every event (default production)
S60_PROTECTOR_CONFIG_SYNC_INTERVAL_SECONDS no how often the portal is polled for changes (default 60)
S60_PROTECTOR_WORKERS no guardrail worker processes (default: CPU count, at most 4)
S60_PROTECTOR_CLASSIFIER no off never loads the prompt-injection classifier; policies that ask for it fall back to the phrase list
S60_PROTECTOR_AUDIT_STDOUT no on (default) also prints every audit row to the container log; off keeps prompts out of your log pipeline — rows are still sent to Secure60
S60_TLS_CERT, S60_TLS_KEY no your own certificate and key; otherwise /etc/s60-protector/tls/tls.crt + tls.key if mounted, else self-signed
S60_TLS_HOSTNAMES no extra names for the self-signed certificate
S60_PROTECTOR_ENTITY_TRACKING no on (default) reports the apps and users seen, for Discovery; off where a Secure60 Collector already tracks them
S60_PROTECTOR_SEEN_INTERVAL_SECONDS no how often that report is sent (default 60)
S60_PROTECTOR_SEEN_MAX_ENTRIES no apps, and separately users, kept per interval (default 500); more are dropped and counted in the container log
ANTHROPIC_API_KEY, OPENAI_API_KEY, … per backend any name a backend’s inject headers reference as {{NAME}}

A protector.conf can still be mounted alongside: portal backends and policies are laid over it, replacing same-named entries, so a file-only deployment keeps working and a mixed one is possible.

Certificates

S60_TLS_CERT, S60_TLS_KEY and S60_TLS_HOSTNAMES are in the table above. Built-in ACME, described in Certificates, uses these:

Variable Default Meaning
S60_TLS_ACME off 1 turns built-in ACME on. Ignored (with a log line) when S60_TLS_CERT/S60_TLS_KEY or a mounted certificate exist.
S60_TLS_DOMAIN required Host name(s) for the certificate, comma-separated.
S60_TLS_ACME_EMAIL none Contact address registered with the CA (expiry notices).
S60_TLS_ACME_SERVER https://acme-v02.api.letsencrypt.org/directory ACME directory URL. Use https://acme-staging-v02.api.letsencrypt.org/directory while testing, or any other ACME CA.
S60_TLS_ACME_CHALLENGE dns when S60_TLS_ACME_DNS is set, else http dns or http.
S60_TLS_ACME_DNS none acme.sh DNS provider id, for example dns_cf, dns_aws, dns_azure, dns_gd, dns_he. The image knows about 200; the list is in the acme.sh wiki (“dnsapi”). Set the provider’s own credential variables (CF_Token, AWS_ACCESS_KEY_ID, …) in the container environment, exactly as the wiki names them.
S60_TLS_ACME_DNS_SLEEP acme.sh default Seconds to wait for the TXT record instead of acme.sh’s public DNS check. Set it for a split-horizon or private zone.
S60_TLS_ACME_CA_BUNDLE system store CA bundle that verifies the ACME server itself (a private ACME CA such as step-ca or Pebble).
S60_TLS_ACME_DIR /data/acme Where the certificate, key and account live.
S60_TLS_ACME_RENEW_DAYS 30 Renew when fewer days remain.
S60_TLS_ACME_CHECK_INTERVAL 86400 Seconds between checks.
S60_TLS_ACME_RETRY_BASE / _RETRY_MAX 300 / 21600 First back-off and its ceiling, in seconds.

Identity Control gateway

The gateway runs while Identity Control is switched on for the Protector in the portal. These variables tune it. See Identity Control.

Variable Default Meaning
S60_GATEWAY_ENABLED automatic unset: on while the portal says Identity Control is on for the group. 1, true, yes or on forces it on; 0, false, no or off forces it off
PROTECTOR_GROUP the s60_protector_group entity value; the gateway polls this group
S60_ORGANISATION_ID the organisation that owns the group (the group entity’s organisation_id takes precedence). Vault writes from the portal are refused when no organisation is known
INGEST_LOCATION https://ingest.secure60.io/ ingest origin
S60_ADMIN_API_BASE ingest origin admin-api origin, when it is not the ingest origin
S60_GATEWAY_PUBLIC_URL public HTTPS address of the gateway; OAuth metadata, connect and consent links use it (identity.public_url on the group entity overrides it)
S60_PUBLIC_URL fallback public address for the OAuth module when no other is set
S60_PORTAL_URL https://portal.secure60.io portal address used in consent and connect links (identity.portal_url on the group entity is used when the variable is unset; empty = none)
S60_PORTAL_ORIGINS the origin of the portal address browser origins allowed to call the vault endpoints and the MCP endpoints (comma separated; empty = none)
S60_GATEWAY_ALLOWED_ORIGINS further browser origins accepted on the MCP endpoints (comma separated); identity.allowed_origins adds to both
S60_VAULT_DIR /data/vault vault directory; mount a volume here
S60_VAULT_KEY generated into the vault directory base64, 32 bytes; the vault master key
S60_VAULT_ENV_ALLOW S60_SECRET_ environment variable names (or prefixes ending _ or *) a connection may read; the vault key, ingest token and other S60_ variables are never readable
S60_GATEWAY_HOLD_SECONDS how long a call waits for a person before it answers with a ticket. Used only when neither the AI app’s hold_seconds nor identity.hold_seconds is set; otherwise the AI app’s platform default applies (below)
S60_GATEWAY_POLL_SECONDS 2, then 5, then 15 fixes how often a held call re-reads its approval. Unset, the interval grows with the wait: 2 s for the first 30 s, 5 s until 10 minutes, then 15 s
S60_GATEWAY_PING_SECONDS 20 how often a held call sends a progress notification or keep-alive on its open response
S60_GATEWAY_STREAM_AFTER_SECONDS 10 a call that is not held but still runs after this long is answered as an event stream too
S60_GATEWAY_WATCH_SECONDS 10 how often the gateway reads approvals for requests that run on approval while nobody is holding them (only while such a request is stored)
S60_GATEWAY_RECHECK_SECONDS 5 before an approval-tier or write call, configuration older than this is re-read
S60_GATEWAY_CONFIG_MAX_AGE_SECONDS 3600 configuration age after which approval-tier and write calls are refused (overrides identity.config_stale_refuse_seconds; 0 = never)
S60_GATEWAY_TRUSTED_PROXIES comma separated addresses or CIDR ranges of proxies in front of nginx; X-Forwarded-For and X-Real-IP are honoured only from loopback and these
S60_GATEWAY_CA_BUNDLE system store CA bundle used to verify the TLS certificates of admin-api and ingest (a private CA)
S60_GATEWAY_PORT 5006 port of the gateway process (the development server defaults to 8095)
S60_GATEWAY_AUDIT_FLUSH_SECONDS 2 how often audit rows are posted to ingest

TLS interception (experimental)

TLS interception is experimental and not the recommended way to connect Claude. See Claude apps.

Variable Default Meaning
S60_INTERCEPT off on starts the proxy
S60_INTERCEPT_PORT 3128 proxy port (HTTP CONNECT)
S60_INTERCEPT_HOSTS claude.ai,api.anthropic.com the only hosts decrypted; every other CONNECT is tunnelled untouched. Add claude.com,anthropic.com for the tenant header below to reach every Anthropic login surface
S60_INTERCEPT_CLAUDE_WEB_BACKEND claude-web backend a claude.ai chat turn is routed through
S60_INTERCEPT_API_BACKEND (unset) backend an api.anthropic.com/v1/messages call is routed through; unset passes API calls straight on
S60_INTERCEPT_ALLOWED_ORG_IDS (unset) Anthropic tenant restriction: the comma list of the company’s Claude org UUIDs, sent as anthropic-allowed-org-ids on every intercepted Anthropic request (overwritten, never appended). Personal and other companies’ accounts get 403 tenant_restriction_violation from Anthropic
S60_INTERCEPT_CA_DIR /var/lib/s60-protector/intercept-ca the CA: mitmproxy-ca.pem (key + certificate). Mount the corporate one here; otherwise one named Secure60 Protector Intercept CA (<group>) is generated and kept. Clients trust mitmproxy-ca-cert.pem
Back to top