Configuration
Settings come from environment variables. A few of them also have a flag, shown in the tables; some settings are flags only.
Server (goliash serve)
Section titled “Server (goliash serve)”| Variable | Flag | Default | Meaning |
|---|---|---|---|
GOLIASH_DATABASE_URL |
-database |
goliash.db (/data/goliash.db in the image) |
SQLite file path, or a postgres:// URL |
GOLIASH_PUBLIC_URL |
-public-url |
http://localhost:8080 |
The address people use; sign-in links and cookies depend on it |
GOLIASH_LISTEN |
-listen |
:8080 |
HTTP listen address |
GOLIASH_SECRET_KEY |
32-byte key (base64 or hex) that encrypts secrets at rest: notification channel settings, the single sign-on client secret and private registry credentials | ||
GOLIASH_SECRET_KEY_FILE |
File with the key, instead of the variable | ||
GOLIASH_GITHUB_TOKEN |
Token for GitHub release lookups; raises the rate limit | ||
GOLIASH_GITLAB_URL |
A self-hosted GitLab whose releases may be read, e.g. https://gitlab.example.com |
||
GOLIASH_GITLAB_TOKEN |
Token for the self-hosted GitLab (else for gitlab.com) | ||
GOLIASH_OSV_URL |
https://api.osv.dev/v1 |
Where the packages of running images’ SBOMs are looked up for known vulnerabilities: an OSV API mirror, or off. Only package names and versions are sent |
|
GOLIASH_KEV_URL |
CISA’s feed | Where the catalog of known exploited vulnerabilities is read from (a mirror of CISA’s JSON), or off |
|
GOLIASH_DEBIAN_TRACKER_URL |
Debian’s tracker | Where Debian’s security tracker data is read from, to correct OSV where it lags (a release that never had the vulnerable code, a CVE not assessed yet), or off. Nothing about the images is sent |
|
GOLIASH_GOPROXY |
https://proxy.golang.org |
The Go module proxy asked which version is tagged at the commit a Go program in an image was built from (Traefik and most vendors build from their release’s checkout), or off. Asked only about modules the Go vulnerability database lists, never a company’s own. Read by the server and the agents |
|
GOLIASH_NVD |
on | off stops asking NVD for the CVEs of running product versions (PostgreSQL 16.2, nginx 1.25.3…), and for the versions a CVE affects upstream when a distribution has no fix (Upstream fixes). Only products, versions and CVE IDs are sent |
|
GOMEMLIMIT |
⅔ of the container’s memory limit; without one, ¼ of the machine’s (at least 192 MiB), as it shares the machine | Go’s soft memory limit: near it the garbage collector works harder instead of letting the heap grow into swap. Set it to choose another, e.g. 300MiB |
|
GOLIASH_PPROF |
An address such as 127.0.0.1:6060 to serve Go’s profiles (/debug/pprof/) on, for finding what is slow or large on a running server. Keep it on localhost |
||
GOLIASH_NVD_API_KEY |
An NVD API key: 50 requests in 30 seconds instead of 5, so new versions and upstream fixes are looked up sooner | ||
GOLIASH_AI_API_KEY |
The model provider’s API key that turns on Goli, the assistant; also GOLIASH_AI_PROVIDER (anthropic or openai), GOLIASH_AI_API_KEY_FILE, GOLIASH_AI_MODEL (claude-opus-5-5), GOLIASH_AI_EFFORT, GOLIASH_AI_BASE_URL, GOLIASH_AI_API (with openai: responses or chat; default responses without a base URL, chat with one), GOLIASH_AI_PER_HOUR, GOLIASH_AI_PER_DAY, GOLIASH_AI_PLAN_SUMMARY and GOLIASH_AI_DIGEST_SUMMARY |
||
GOLIASH_GOLI_SEASON |
What Goli, the mascot, wears: by default it follows the calendar (a pumpkin around Halloween, a Santa hat in December, a scarf in January and February, sunglasses in July and August); off never, or halloween, christmas, winter, summer always |
||
GOLIASH_SLACK_SIGNING_SECRET |
With GOLIASH_SLACK_GOLI_TOKEN, turns on Goli’s /goli command for a Slack app; see Goli in Slack. GOLIASH_SLACK_IN_CHANNEL=true answers in the channel |
||
GOLIASH_DOCS_ASSISTANT |
URL of a product’s documentation as one text: Goli answers questions about it for a website at POST /goli/docs. GOLIASH_DOCS_ASSISTANT_ORIGINS, _MODEL, _PER_HOUR and _PER_DAY tune it; see Goli on your website |
||
GOLIASH_DEMO_GOLI |
off | true offers Goli on a public demo (-demo-user), limited per visitor address; see On a public demo |
|
GOLIASH_UPDATE_CHECK |
on | off stops the Status page and the goliash_release notification from asking ghcr.io/pipozzz/goliash for a newer release of Goliash (only its tag list is read). Agents older than the server are flagged on the Status page either way |
|
GOLIASH_ARGOCD_URL |
The Argo CD UI, e.g. https://argocd.example.com: application names on service pages link to it. See Argo CD |
||
GOLIASH_GITOPS_TOKEN |
A GitHub token that may write contents and pull requests of the GitOps repositories: upgrades open as pull requests from the Argo CD panel. See Argo CD | ||
GOLIASH_GITOPS_GITHUB_API |
https://api.github.com |
The GitHub API for GOLIASH_GITOPS_TOKEN, for GitHub Enterprise |
|
GOLIASH_GITOPS_GITLAB_TOKEN |
A GitLab token (api scope, Developer on the deploy projects) for merge requests on gitlab.com, or on GOLIASH_GITLAB_URL |
||
GOLIASH_GITOPS_GITEA_TOKEN |
A Gitea or Forgejo access token (write:repository) for pull requests on GOLIASH_GITEA_URL |
||
GOLIASH_GITEA_URL |
The Gitea or Forgejo instance, e.g. https://git.example.com or https://codeberg.org |
||
GOLIASH_BACKSTAGE_URL |
A Backstage instance (https://backstage.example.com): services’ owners from its catalog’s components |
||
GOLIASH_BACKSTAGE_TOKEN |
A static token from Backstage’s external access, when its catalog asks for one | ||
GOLIASH_CODEOWNERS |
on | off stops reading services’ owners from CODEOWNERS of the GitOps repositories with the GitOps tokens |
|
GOLIASH_ALLOWED_REGISTRIES |
Comma-separated registries or prefixes images may come from (image hygiene) | ||
GOLIASH_DEBUG |
-debug |
off | Debug logging. Empty, 0, false, off and no leave it off; any other value turns it on |
GOLIASH_LOG_FORMAT |
-log-format |
text |
json for log collectors |
GOLIASH_ARGS |
The command and flags when the container gets none, e.g. try -public -reset 1h on a platform where setting a variable is easier than a command |
||
GOLIASH_LOG_LEVEL |
-log-level |
info |
debug, info, warn or error |
GOLIASH_DRAIN |
-drain |
0 |
On shutdown, answer /readyz with 503 this long before closing |
GOLIASH_BACKUP_DIR |
-backup-dir |
— | SQLite: write a backup here at start and every day |
GOLIASH_BACKUP_KEEP |
-backup-keep |
7 |
Backups kept in the backup directory |
-demo-user |
A public read-only demo: every visitor is signed in as this existing viewer and every change is refused. goliash try -public sets it up |
||
-demo-pulls |
false |
Example data: show the pull requests GitOps upgrades would open, and open none. goliash try sets it |
|
-collect |
true |
Collect targets that have no agent in the server itself | |
-upstream-interval |
1h |
How often public registries are checked | |
-keep-snapshots |
20 |
Processed snapshots kept per target | |
-eol |
true |
Report end-of-life release cycles from endoflife.date. false also turns off the OSV, CISA KEV, Debian tracker and NVD lookups, for a server without internet access |
|
GOLIASH_GITOPS_REPOS |
Comma-separated repositories, or prefixes (github.com/acme/deploy,gitlab.example.com/platform/), the GitOps token may open pull requests in. Set it when several workspaces share the server: an agent reports the repositories it deploys from |
||
GOLIASH_PRIVATE_NETWORKS |
allow |
Addresses typed in (notification channels, ticket trackers, private registries, release notes pages) never reach loopback or link-local addresses, such as the cloud metadata service. Private networks are reachable by default; deny refuses them too, all lifts the guard (a proxy on localhost) |
|
GOLIASH_BOOTSTRAP |
Bootstrap configuration (YAML or JSON), see below | ||
GOLIASH_BOOTSTRAP_FILE |
File with the bootstrap configuration, instead of the variable |
Without a secret key, a SQLite installation creates goliash.key next to the database. See
Install.
Bootstrap
Section titled “Bootstrap”A bootstrap configuration makes a deployment come up ready, without manual steps: on every start the server creates the environments, targets and first owner that do not exist yet. Nothing is changed or removed, so edits made later in the UI are kept.
owner: you@example.com # until they sign in, every start logs a one-time sign-in linkenvironments: - { name: staging, position: 20 } - { name: prod, position: 30 }targets: - name: nomad environment: prod platform: nomad # kubernetes, ecs, nomad, swarm, docker, compose, host, lambda, rds, # elasticache, eks, opensearch, msk or manual poll_interval_seconds: 60 # agent: prod-eu # empty: the server collects the target itself settings: nomad: { address: "http://10.0.0.5:4646" } credentials_ref: nomad # resolved from GOLIASH_CREDENTIAL_NOMADUnknown fields are rejected, so a typo stops the server instead of being ignored.
Web push
Section titled “Web push”| Variable | Meaning |
|---|---|
GOLIASH_PUSH_SUBJECT |
Who sends, for push services: an https:// URL or a mailto: address. Default: GOLIASH_PUBLIC_URL when it is https, else GOLIASH_SMTP_FROM. Apple (iPhone, Safari) needs one |
| Variable | Meaning |
|---|---|
GOLIASH_SMTP_ADDR |
SMTP relay, host:port |
GOLIASH_SMTP_FROM |
Sender address |
GOLIASH_SMTP_USERNAME, GOLIASH_SMTP_PASSWORD |
Optional authentication |
GOLIASH_SMTP_TLS |
starttls (when offered), tls (implicit) or none; by default TLS on port 465, STARTTLS elsewhere |
With SMTP, sign-in links can be requested by e-mail and e-mail channels work. Without it, an e-mail channel can carry its own mail server (see Notifications); that one is used for the channel’s messages only, not for sign-in links.
Passwords
Section titled “Passwords”| Variable | Meaning |
|---|---|
GOLIASH_RECOVERY_EMAIL |
Locked out without a shell: every start logs a one-time sign-in link for this person. Remove it once you are back in |
GOLIASH_SETUP_WINDOW |
While nobody has an account, how long after the start the sign-in page offers to create the first one; default 15m, 0 keeps the setup link in the log only |
GOLIASH_SESSION_TTL |
How long a browser session lasts at most; default 720h (30 days) |
GOLIASH_SESSION_IDLE |
A session unused this long ends; default 336h (14 days); 0 turns it off |
GOLIASH_PASSWORD_LOGIN |
false turns password sign-in off (for example when everyone uses OIDC); default on |
GOLIASH_TRUST_PROXY |
true takes the client address from X-Forwarded-For. Set it only behind a reverse proxy, which must set the header |
The client address goes into the session list, the audit log and the sign-in limits: 8 failed passwords for an address, or 30 from one client, pause sign-in for 15 minutes.
OIDC sign-in
Section titled “OIDC sign-in”Owners can set this up in Settings → Single sign-on instead; the variables below take precedence when set.
| Variable | Meaning |
|---|---|
GOLIASH_OIDC_ISSUER |
Issuer URL, e.g. https://accounts.google.com |
GOLIASH_OIDC_CLIENT_ID, GOLIASH_OIDC_CLIENT_SECRET |
Client credentials |
GOLIASH_OIDC_NAME |
Button label, e.g. Google |
GOLIASH_OIDC_DOMAINS |
Comma-separated e-mail domains whose people get a viewer account on first sign-in |
GOLIASH_GROUP_ROLES |
Roles from the provider’s groups, e.g. goliash-admins=admin, sre=member, sre-pay=member@payments, everyone=viewer (see below) |
GOLIASH_OIDC_GROUPS_CLAIM |
The ID token claim with the groups; default groups |
GOLIASH_OIDC_SCOPES |
More scopes to ask for, e.g. groups for providers that send groups only then |
Redirect URI: <GOLIASH_PUBLIC_URL>/auth/oidc/callback.
Roles from groups
Section titled “Roles from groups”With GOLIASH_GROUP_ROLES the identity provider decides who may sign in and with which role, at every sign-in:
group=adminmakes its people organization admins (every workspace).group=memberorgroup=viewergives that role in every workspace.group=member@paymentsgives it in one workspace, by slug or name.- Someone in several groups gets the highest role each grants, per workspace.
- Someone in none of the groups is refused, also with an existing account. Someone new in one gets an account
without an invitation (
GOLIASH_OIDC_DOMAINSis then not needed). - Leaving a group takes its role away at the next sign-in. Owners keep being owners.
Roles changed on the settings page are set again at the next sign-in, so change them at the provider. Groups match
by name, or as a path (Keycloak’s /sre); Entra ID sends group object IDs unless the app registration emits names,
so either use the IDs in the mapping or configure groups claim → sAMAccountName / cloud-only group names. Okta and
Authentik send groups when asked for the groups scope (GOLIASH_OIDC_SCOPES=groups).
SCIM provisioning
Section titled “SCIM provisioning”| Variable | Meaning |
|---|---|
GOLIASH_SCIM_TOKEN |
Turns SCIM 2.0 on at <GOLIASH_PUBLIC_URL>/scim/v2, with this bearer token (at least 32 characters: openssl rand -hex 32) |
With SCIM the identity provider (Entra ID, Okta, Authentik, Keycloak with a SCIM plugin, JumpCloud) keeps the people of Goliash in step with its own:
- New people are created when the app is assigned to them. They can then sign in with OIDC (or a magic link).
- Deactivation (
active: false, when someone leaves or is unassigned) ends their sessions and the apps they let in at once, and refuses every way to sign in. Reactivating restores them. Settings → Workspace settings → People marks them deactivated. Deleting removes them. - Pushed groups decide roles as
GOLIASH_GROUP_ROLESmaps them, the same mapping OIDC sign-in uses: someone in no mapped group has an account but no workspace. WithoutGOLIASH_GROUP_ROLES, new people are viewers of the first workspace and roles are set in Goliash. - Owners are never changed by groups, and the last active owner cannot be deactivated or deleted.
Users are found by userName (the e-mail address), and the provider’s ID is kept as externalId. PATCH works in
the forms Entra ID and Okta send ("active": "False" included). Every change is in the audit log as
scim.user.* or scim.group.*.
Setting it up in Entra ID: Enterprise applications → the Goliash app → Provisioning → Automatic, tenant URL
https://goliash.example.com/scim/v2, secret token GOLIASH_SCIM_TOKEN. In Okta: Provisioning → SCIM 2.0, base URL
the same, authentication HTTP Header with the token, and turn on Push Groups.
Commands that work on the database take -database (GOLIASH_DATABASE_URL) and -workspace
(GOLIASH_WORKSPACE, default the first workspace). ask, mcp, verify, login and logout talk to a server
instead, and try makes a database of its own. Flags go after the command: goliash matrix -workspace acme.
Agent (goliash-agent)
Section titled “Agent (goliash-agent)”| Variable | Flag | Default | Meaning |
|---|---|---|---|
GOLIASH_SERVER_URL |
-server |
Server URL | |
GOLIASH_AGENT_TOKEN |
The enrollment code (glsh_enroll_…) or the agent’s token (glsh_agent_…) |
||
GOLIASH_AGENT_TOKEN_FILE |
File with the code or token, instead of the variable | ||
GOLIASH_ENROLL_CODE |
The enrollment code, if you prefer to keep it apart from tokens | ||
GOLIASH_AGENT_NAME |
found where it runs | Name of an enrolling agent and of the target it finds | |
GOLIASH_AGENT_ID |
found where it runs | What tells this installation apart when it enrolls with a code for many agents | |
GOLIASH_AWS |
on | off stops the agent from asking EC2 instance metadata for its region and role |
|
GOLIASH_CLOUD_METADATA |
on | off stops the agent from asking Google Cloud and Azure instance metadata for its project or subscription, region and zone (shown where an agent runs) |
|
GOLIASH_REDISCOVER |
15m |
How often the agent looks again for what it could collect, and enrolls or registers again when it finds more; off looks only at start |
|
GOLIASH_AWS_REGIONS |
More AWS regions an enrolling agent adds ECS clusters and Lambda functions of, comma-separated | ||
GOLIASH_ECS_CLUSTERS |
every cluster | Only these ECS clusters, by name, comma-separated | |
GOLIASH_ECS_EXCLUDE |
ECS clusters, by name, an enrolling agent leaves out (the CloudFormation template sets its own cluster) | ||
GOLIASH_LAMBDA_ALIASES |
Lambda aliases named otherwise than environments, e.g. live=prod,canary=- (- leaves one out) |
||
GOLIASH_LAMBDA |
on | off stops an enrolling agent from adding its AWS region’s Lambda functions |
|
GOLIASH_RDS, GOLIASH_ELASTICACHE, GOLIASH_EKS, GOLIASH_OPENSEARCH, GOLIASH_MSK |
on | off stops an enrolling agent from adding its AWS regions’ RDS databases, ElastiCache caches, EKS clusters, OpenSearch domains or MSK clusters |
|
GOLIASH_LAMBDA_CODE |
on | off stops the agent from downloading .zip Lambda functions’ code and layers to read the packages in them (Collectors) |
|
GOLIASH_TARGETS |
Targets an enrolling agent declares, as a JSON array of agent protocol targets without id |
||
GOLIASH_INCLUDE_NAMESPACES, GOLIASH_EXCLUDE_NAMESPACES |
every namespace | Comma-separated Kubernetes namespaces the target an enrolling agent finds in its cluster covers, or leaves out | |
GOLIASH_READ_PULL_SECRETS |
false |
true lets the agent read the image pull secrets running pods reference, to check private registries (needs get on secrets; Helm: rbac.readPullSecrets). The secrets never leave the agent |
|
GOLIASH_HOST_ROOT |
Where the host’s root is mounted (/host in a container, / for an agent installed on the host): the agent adds the host’s operating system and packages as a target. See Collectors |
||
GOLIASH_GOPROXY |
https://proxy.golang.org |
As for the server: the Go module proxy asked which version a Go program in an image was built from, or off |
|
GOLIASH_DATA_DIR |
-data-dir |
data (/data in the image) |
Buffered snapshots while the server is unreachable |
GOLIASH_CREDENTIALS_DIR |
/etc/goliash-agent/credentials |
Directory of credential files | |
GOLIASH_CREDENTIAL_<NAME> |
A credential; see Collectors | ||
GOLIASH_COMPOSE_DIRS |
Comma-separated directories compose targets may read files from |
||
GOLIASH_DEBUG |
-debug |
off | Debug logging; values as for the server |
GOLIASH_LOG_FORMAT |
-log-format |
text |
json for log collectors |
GOMEMLIMIT |
⅔ of the container’s memory limit; without one, ¼ of the machine’s (at least 192 MiB) | Go’s soft memory limit, as for the server: on a small host the agent shares, it keeps the heap out of swap |
Everything else (targets, intervals, which registries to check) the agent reads from the server. With an enrollment code the agent adds the targets it finds itself.