Collectors
Collectors only read. They run in the agent, or in the server for targets without an agent.
| Platform | Reads | Needs | Credentials |
|---|---|---|---|
| Kubernetes | Deployments, StatefulSets, DaemonSets, CronJobs and their running pods (watch) | ClusterRole with get, list, watch |
in-cluster service account, else kubeconfig (kubeconfig_context) |
| Amazon ECS | clusters, services, running tasks, task definitions | IAM ecs:List*, ecs:Describe*; elasticloadbalancing:DescribeTargetGroups and elasticloadbalancing:DescribeLoadBalancers for exposure |
default AWS chain; credentials_ref names an AWS profile |
| AWS Lambda | functions of a region and their aliases: container image and digest, or the runtime of .zip functions and the packages in their code; tags | IAM lambda:ListFunctions, lambda:GetFunction, lambda:ListAliases; lambda:ListFunctionUrlConfigs for exposure; lambda:GetLayerVersion for the packages of layers |
default AWS chain; credentials_ref names an AWS profile |
| Amazon RDS | PostgreSQL, MySQL, MariaDB and Aurora databases of a region: engine version, the versions RDS offers, pending maintenance, public accessibility; tags | IAM rds:DescribeDBInstances, rds:DescribeDBClusters, rds:DescribeDBEngineVersions, rds:DescribePendingMaintenanceActions |
default AWS chain; credentials_ref names an AWS profile |
| Amazon ElastiCache | Redis OSS, Valkey and Memcached caches of a region (replication groups, clusters, serverless): engine version, the versions ElastiCache offers, service updates waiting; tags | IAM elasticache:Describe*, elasticache:ListTagsForResource |
default AWS chain; credentials_ref names an AWS profile |
| Amazon EKS | clusters of a region: the Kubernetes version of the control plane and managed node groups, the versions EKS offers, a public API endpoint; tags | IAM eks:ListClusters, eks:DescribeCluster, eks:ListNodegroups, eks:DescribeNodegroup, eks:DescribeClusterVersions |
default AWS chain; credentials_ref names an AWS profile |
| Amazon OpenSearch Service | OpenSearch and Elasticsearch domains of a region: engine version, the versions offered, waiting service software update, public endpoint; tags | IAM es:ListDomainNames, es:DescribeDomains, es:ListTags, es:ListVersions |
default AWS chain; credentials_ref names an AWS profile |
| Amazon MSK | provisioned Kafka clusters of a region: Kafka version, the versions MSK offers, public brokers; tags | IAM kafka:ListClustersV2, kafka:ListKafkaVersions |
default AWS chain; credentials_ref names an AWS profile |
| Nomad | jobs, job versions, allocations | ACL token with list-jobs and read-job |
credentials_ref resolves to the token, else NOMAD_TOKEN |
| Docker Swarm | services and running tasks | Docker API GET (docker-socket-proxy) |
none |
| Docker | running containers, grouped into Compose services; image digests | Docker API GET on containers and images |
none |
| Compose files | services and images declared in Compose files | an HTTP(S) URL, or for an agent a file in GOLIASH_COMPOSE_DIRS |
credentials_ref → bearer token for the URL |
| Linux server | the operating system (/etc/os-release) and installed packages that matter (dpkg, apk) |
read access to the host’s files: the root mounted at /host read-only, or the agent on the host |
none |
| Manual | versions people enter on a service page (Add by hand), for software Goliash does not collect | nothing: never collected, never stale | none |
Where an agent runs
Section titled “Where an agent runs”When it starts, an agent says where it runs, as far as it can tell without extra permissions: the cloud, AWS
account (from its credentials or its ECS cluster’s ARN), region and availability zone, the EC2 instance and its
type (from the instance metadata), its ECS cluster, and the host’s operating system, kernel and architecture (from
the Docker engine or the host’s /etc/os-release). On Google Cloud the metadata server gives the project (as the
account), zone, region, instance and machine type; on Azure the instance metadata gives the subscription, location,
zone, VM name and size. GOLIASH_CLOUD_METADATA=off leaves Google Cloud and Azure out. The agent’s page lists them, each with the
number of services it finds and a link to the matrix filtered to them; the palette and Search find services, targets
and agents by them too.
Its targets are where it is: a Docker host, a Kubernetes cluster or a server. A target read through AWS’s API (ECS,
RDS, Lambda …) shares only the agent’s cloud and account, and has its own region (and the account of its ARNs). On
the matrix, filter by them like by any word: region:eu-central-1, account:123456789012,
instance:i-0f13cfa9b0e9b58a2, os:ubuntu, zone:eu-central-1b, platform:ecs. The same words filter
Updates (and its CSV) and Vulnerabilities, which then lists each vulnerability only where it runs there:
region:eu-central-1 openssl. Agents before 1.198 report nothing of this. Group by → Place on the matrix lists services under each cloud account and region
they run in (AWS 123456789012 · eu-central-1), a service in two accounts under both.
Target settings
Section titled “Target settings”Each target has the settings object of its platform:
{"kubernetes": {"kubeconfig_context": "", "include_namespaces": [], "exclude_namespaces": ["kube-system"]}}{"ecs": {"region": "eu-west-1", "clusters": ["prod"]}}{"nomad": {"address": "https://nomad.service.consul:4646", "region": "", "namespaces": []}}{"swarm": {"docker_host": "tcp://socket-proxy:2375"}}{"docker": {"docker_host": "tcp://socket-proxy:2375", "projects": ["shop"]}}{"lambda": {"region": "eu-west-1", "name_prefixes": ["shop-"], "alias_environments": {"live": "prod", "canary": "-"}}}{"rds": {"region": "eu-west-1"}}{"elasticache": {"region": "eu-west-1"}}{"eks": {"region": "eu-west-1"}}{"opensearch": {"region": "eu-west-1"}}{"msk": {"region": "eu-west-1"}}{"compose": {"files": ["https://raw.githubusercontent.com/acme/infra/main/compose.yaml"], "project": "shop", "variables": {"TAG": "1.3.0"}}}Kubernetes with Argo CD: when the agent may read applications.argoproj.io (the Helm charts grant get and list),
each workload an Application lists among its resources carries where it is deployed from: the application, its
repository, path or chart, target revision, the commit last synced, and its sync and health status; with
appprojects.argoproj.io readable too, whether a sync window keeps it from syncing now, and until when; and whether
it syncs by itself or only by hand (its automated sync policy). With Flux, the
workloads a Kustomization or HelmRelease labelled carry the same from it and its GitRepository or HelmRepository.
Without Argo CD or Flux, or without the permission, nothing changes.
Exposure
Section titled “Exposure”Agents also report how each workload can be reached from outside its cluster or host, so that Updates and Vulnerabilities put those first (see Exposed to the outside):
| Platform | Exposed when |
|---|---|
| Kubernetes | a LoadBalancer service (not marked internal by its cloud’s annotation), a NodePort service, an Ingress or a Gateway API HTTPRoute sends to its pods. Needs list on services, ingresses.networking.k8s.io and httproutes.gateway.networking.k8s.io (the Helm charts grant it); without it, nothing is exposed. |
| Amazon ECS | the service registers with an internet-facing load balancer (named with its DNS name; internal ones do not count), or its tasks get a public IP. Without elasticloadbalancing:DescribeTargetGroups and DescribeLoadBalancers every target group counts, marked internal or not: not known. |
| AWS Lambda | a function URL anyone may call (auth type NONE); needs lambda:ListFunctionUrlConfigs. |
| Docker, Compose | a port published on every interface of the host (not on 127.0.0.1). |
| Amazon RDS | the database (or one of an Aurora cluster’s instances) is publicly accessible. |
| Amazon EKS | the cluster’s API endpoint is public and open to 0.0.0.0/0. |
| OpenSearch Service | the domain is outside a VPC (a public endpoint). |
| Amazon MSK | the brokers have public access. |
A goliash.exposed label, tag or meta on the workload overrides it: internet marks it exposed whatever the agent
saw, internal not exposed (an internal load balancer, a VPN-only ingress). On a Kubernetes Service, the label or
annotation goliash.exposed: internal leaves that service out.
Nomad: each job is a workload. A periodic or parameterized job is one workload (a cron job) that counts its
running runs, rather than a new workload for every backup/periodic-… or export/dispatch-… run.
An image written with variables, image = "ghcr.io/acme/app:${NOMAD_META_version}", is read as Nomad would run
it: ${NOMAD_META_<key>} and ${meta.<key>} from the job’s, group’s and task’s meta (the most specific wins), and
${NOMAD_JOB_NAME}, ${NOMAD_GROUP_NAME}, ${NOMAD_TASK_NAME} and ${NOMAD_NAMESPACE}. Variables only a client
knows, such as ${attr.*} or ${node.*}, stay as written. Labels (goliash.app, goliash.team) come from the same
meta, and so do goliash.git.repo, goliash.git.path and goliash.git.branch, which name the file in Git that
pins the job’s image so that its upgrades open as pull requests (on Docker,
Compose and Swarm they are labels, on ECS the service’s tags).
Lambda: each function is a workload, its tags are labels (so goliash.app and goliash.service work as tags). A
function built from a container image reports that image and digest, checked for new tags like any image. A .zip
function reports its runtime as the matching AWS base image, python3.12 as public.ecr.aws/lambda/python:3.12
and nodejs20.x as public.ecr.aws/lambda/nodejs:20: Goliash then tells when a newer runtime exists and, from
endoflife.date, when AWS deprecates the one in use. The inbox suggests the function’s name as its service, so
functions on the same runtime stay apart.
The packages in a .zip function’s code. AWS patches the runtime; what can be vulnerable is the code’s own
dependencies. Once per function version (its code and layer versions), the agent downloads the code and its layers
from the presigned S3 URL lambda:GetFunction and lambda:GetLayerVersion give, reads the package manifests in
it (node_modules/*/package.json, else package-lock.json; Python *.dist-info/METADATA; pom.properties in
jars, nested ones too; the build information of Go executables such as bootstrap; gemspecs; .NET *.deps.json)
and sends only the package URLs. Nothing is unpacked to disk or run, the code never leaves the agent, downloads
come only from *.amazonaws.com and stop at 300 MB, and a few functions are read per round. Their vulnerabilities
then show like an image’s, under the function. Without lambda:GetLayerVersion the layers are left out, and the
service page says so; GOLIASH_LAMBDA_CODE=off on the agent turns it off. Agents from 1.176 send it.
A function with aliases shows once per alias, with the version the alias points to, in the environment named
like the alias: dev, staging and prod aliases fill three columns of the matrix, so a version waiting to be
promoted shows as drift like anywhere else. alias_environments maps aliases named otherwise (live to prod),
and - leaves one out (a canary); aliases that match no environment stay in the target’s. A function without
aliases shows its latest code ($LATEST). Without lambda:ListAliases the agent reports latest code only and says
so in the target’s status.
Empty lists mean everything. docker_host takes tcp://, https:// or unix:///var/run/docker.sock. The poll
interval is at least 30 seconds and defaults to 300; Kubernetes also sends a snapshot shortly after a change.
Credentials
Section titled “Credentials”The server never sends secrets, only a credentials_ref name. The agent resolves it from:
- the environment variable
GOLIASH_CREDENTIAL_<NAME>, with the name upper-cased and anything that is not a letter or digit replaced by_, or - the file
$GOLIASH_CREDENTIALS_DIR/<name>(default/etc/goliash-agent/credentials).
Private registries
Section titled “Private registries”Images from registries other than the public ones are checked by the agents. So are private repositories on public registries (GHCR, Docker Hub, Quay, …): when a registry refuses the server’s anonymous check, the repository is handed to the agents. Check now on the service page tries anonymously again, in case it became public.
A repository goes to the agents whose targets run it, since those have access to it: an agent in one AWS account is not asked about another account’s ECR. A repository no agent runs (a service watched only for its releases, or run where the server collects) goes to every agent.
Credentials on the server
Section titled “Credentials on the server”The quickest way is Settings → Private registries: an admin enters the registry host, a username and a read-only password or token, and the server reads that registry itself for the workspace: new releases, the version behind moving tags, signatures, attestations, SBOMs and vulnerabilities, with no agent configuration. The panel lists the registries your services use that only agents can read, each with Add credentials; saving tries the credentials on one of them at once and shows whether the registry accepted them. A token the registry later refuses is marked refused there.
Use a read-only robot account or token: a Harbor or Quay robot, a GitLab deploy token with read_registry, a
GitHub token with read:packages, a Docker Hub access token, an Artifactory or Nexus read user. The secret is
stored encrypted with the server’s secret key (the server refuses to store it without one), bound to its row, never
shown again and never sent to agents; tags read with it are cached for that workspace only. Amazon ECR tokens
expire after 12 hours, so ECR stays with an agent and its IAM role.
Prefer agent credentials when the registry is only reachable from inside your network, or when credentials must not leave it.
Credentials on the agent
Section titled “Credentials on the agent”For each repository the agent looks for credentials for the registry host, in this order:
- the credential named after the host, for example
GOLIASH_CREDENTIAL_REGISTRY_EXAMPLE_COMor the fileregistry.example.comin the credentials directory; - its Docker config:
$DOCKER_CONFIG/config.json, else~/.docker/config.json, asdocker loginwrites it. Entries kept by a credential helper (credsStore,credHelpers, as Docker Desktop does) hold no secret and are skipped; - on Kubernetes, with
GOLIASH_READ_PULL_SECRETS=true(Helm:rbac.readPullSecrets), the image pull secrets that running pods of its targets reference. It needsgeton secrets; - for Google Artifact Registry (
*-docker.pkg.dev) and Container Registry (gcr.io), the service account the agent runs as, from the metadata server: GKE Workload Identity or a Compute Engine service account withroles/artifactregistry.reader; - for Azure Container Registry (
*.azurecr.io), AKS Workload Identity: the federated token the pod gets (AZURE_FEDERATED_TOKEN_FILE,AZURE_CLIENT_ID,AZURE_TENANT_ID) is exchanged for an ACR token. The identity needs theAcrPullrole; - anonymous access.
When a host has several credentials (two pull secrets for different Harbor projects), each is tried in turn. Credentials never leave the agent.
- Distribution API registries (Harbor, GitLab, Artifactory, Nexus, GHCR, Docker Hub, …):
user:password, or a token. - Amazon ECR (
<account>.dkr.ecr.<region>.amazonaws.com): the agent uses the ECR API with its AWS credentials and needs IAMecr:ListImages; withecr:GetAuthorizationToken,ecr:BatchGetImageandecr:GetDownloadUrlForLayerit also reads the exact version behind moving tags, and the signatures, attestations and SBOMs of running images. The default chain is used: IRSA, an ECS task role, an instance profile or the environment. A credential, if set, names an AWS profile.
Linux servers
Section titled “Linux servers”A server or virtual machine outside containers: the agent reads its operating system from /etc/os-release and
its packages from the dpkg (Debian, Ubuntu), apk (Alpine) or RPM database (rpmdb.sqlite: RHEL, Rocky and
AlmaLinux 9, Fedora, Amazon Linux 2023). It only reads files and runs nothing on the host. Older RPM releases (RHEL 8,
Amazon Linux 2) keep a Berkeley DB and report the operating system only.
docker run -d --name goliash-agent --restart unless-stopped \ -v goliash-agent:/data -v /:/host:ro -e GOLIASH_HOST_ROOT=/host \ -e GOLIASH_SERVER_URL=https://goliash.example.com -e GOLIASH_AGENT_TOKEN=glsh_enroll_… \ ghcr.io/pipozzz/goliash-agentWith GOLIASH_HOST_ROOT set, the agent finds the host by itself (named after /etc/hostname, identified by
/etc/machine-id). Connect → More ways → Linux server gives the same command. The Docker agent from Connect →
Docker or Docker Compose host mounts the host’s root the same way, so on a Docker host the OS and packages come with the containers. The
targets list shows such a machine once: its Docker engine, and right under it ↳ OS and packages.
- Vulnerabilities of all its packages: the agent sends every package the database lists (from 1.236), named as an image’s would be, and the Vulnerabilities page and Updates list the server’s like any image’s: with the distribution’s own fixes, and leaving out what Debian rates unimportant or Ubuntu negligible. Of the kernel’s packages only the running kernel’s count, and they do count (in a container image the kernel is the host’s business; here it is the one that runs); an older kernel left installed, and kernel headers, do not. The list is read again only when the package database changes.
- Its page (the target, from Agents and targets or a version’s target on a service page) is the server at a
glance: a Server panel with its operating system and its support, a reboot pending (and why), package updates
waiting, and how many known vulnerabilities its packages have (exploited ones counted), then every package the
agent sent, the vulnerable ones first, each with its count, its worst severity and the newest version that fixes
them, filterable (
openssl,exploited,critical). Its operating system and packages map to services by themselves (ubuntu,nginx), whatever the workspace’s automatic mapping, and the Vulnerabilities page names the server a package is on (sudo 1.9.9-1ubuntu2.4 on mail-01). - A reboot waiting: when Debian or Ubuntu wrote
/var/run/reboot-required(with the packages that asked for it), or a kernel newer than the running one is installed (any distribution: the running kernel is the agent’s too), the operating system shows reboot pending on its service page and Updates, with what waits in the tooltip: reboot required: kernel 6.8.0-1015-aws installed, 6.8.0-1012-aws runs. Until the reboot, the fixes are on disk but not running. The API has it undermaintenance. - Package updates waiting on Ubuntu: what update-notifier counted after the last
apt update(/var/lib/update-notifier/updates-available), as package updates: 12 waiting, 5 of them security, shown as patch pending. Unattended upgrades usually install the security ones overnight; a count that stays says they do not. - The operating system is a workload named after it (
ubuntu,debian,alpine,rocky…) at its version, compared with the distribution’s image, so its end of life (Ubuntu 20.04, Debian 11 …) shows up like any other. - Packages: servers, runtimes and security-relevant libraries Goliash knows (nginx, Apache, HAProxy, PostgreSQL,
MySQL, MariaDB, Redis, MongoDB, RabbitMQ, Elasticsearch, Java, Node.js, Python, PHP, Docker, OpenSSL, OpenSSH,
sudo …), plus the names in
packages;all_packagesreports everything. Versions are the upstream part of the distribution’s (1.18.0-6ubuntu14.4→1.18.0). Packages with an image of the same software (nginx →docker.io/library/nginx) get its new releases and end of life; the others (pkg.goliash/openssl) are inventory only, and their end of life can be named in the service’s policy ("eol": "openssl").
{"host": {"root": "/host", "packages": ["keepalived"], "all_packages": false}}