Network, privacy and tokens
relgap sends requests only to the hosts on this page, and only to look up the tools you ask about or the pins it scanned. It has no telemetry and no update check. relgap pins and relgap drift without --latest read files only and make no request at all.
Scanned files name git hosts and image registries, so relgap contacts only the ones it knows: bitbucket.org, gitlab.com and the hosts in gitlab.hosts for git sources, and Docker Hub, ghcr.io, registry.k8s.io, quay.io, public.ecr.aws, mcr.microsoft.com and the hosts in images.registries for images and for Helm charts behind an oci:// URL that Artifact Hub doesn't list. A pin on any other host stays unresolved or skipped, and relgap runs no git ls-remote against it.
Hosts
| Host | What relgap asks for | When | Token |
|---|---|---|---|
api.github.com | releases, tags, files and repository search (REST and GraphQL), the index.yaml of a GitHub Pages Helm repository, and the pull request comment of relgap notify | every command that looks up a tool | the GitHub token, when one is found |
api.bitbucket.org | tags, files and the top directory of Bitbucket Cloud repositories | bitbucket: pins and inputs, from Terraform module sources on bitbucket.org | BITBUCKET_API_TOKEN, when set |
gitlab.com | tags, releases, files and the top directory of projects | gitlab: pins and inputs, from Terraform module sources on gitlab.com | GITLAB_TOKEN, then GITLAB_ACCESS_TOKEN, when GITLAB_HOST names this host (default gitlab.com); CI_JOB_TOKEN when CI_SERVER_HOST does |
a host in gitlab.hosts | tags, releases, files and the top directory of projects | gitlab:<host>/... pins and inputs | the entry's token_env, else as for gitlab.com |
endoflife.date | release cycles and their end-of-life dates | a tool whose registry entry names an endoflife.date product | no |
api.osv.dev | known vulnerabilities of the pinned versions, their fix target candidates and the latest versions (what OSV receives) | audit, and outdated for every pin it checks | no |
www.cisa.gov | the CISA Known Exploited Vulnerabilities catalog, one file per day | audit and outdated with --kev or vulns.kev | no |
api.first.org | the EPSS scores of the CVE IDs of the advisories found | audit and outdated with --epss or vulns.epss | no |
registry.terraform.io | provider versions and source repositories | tfprovider: pins and inputs | no |
artifacthub.io | chart versions and source repositories | chart: pins and inputs | no |
registry.npmjs.org | package repositories | npm: inputs | no |
pypi.org | package repositories | pypi: inputs | no |
registry-1.docker.io | image tags, manifests and image configs, with an anonymous pull token when the registry asks for one | image: pins and inputs, and oci:// charts, on Docker Hub | an anonymous pull token |
auth.docker.io | anonymous pull tokens for Docker Hub | image: pins and inputs, and oci:// charts, on Docker Hub | no |
ghcr.io | image tags, manifests and image configs, with an anonymous pull token when the registry asks for one | image: pins and inputs, and oci:// charts, on this registry | an anonymous pull token |
registry.k8s.io | image tags, manifests and image configs, with an anonymous pull token when the registry asks for one | image: pins and inputs, and oci:// charts, on this registry | an anonymous pull token |
quay.io | image tags, manifests and image configs, with an anonymous pull token when the registry asks for one | image: pins and inputs, and oci:// charts, on this registry | an anonymous pull token |
public.ecr.aws | image tags, manifests and image configs, with an anonymous pull token when the registry asks for one | image: pins and inputs, and oci:// charts, on this registry | an anonymous pull token |
mcr.microsoft.com | image tags, manifests and image configs, with an anonymous pull token when the registry asks for one | image: pins and inputs, and oci:// charts, on this registry | an anonymous pull token |
a registry in images.registries | image tags, manifests and image configs, with an anonymous pull token when the registry asks for one | image: pins and inputs, and oci:// charts, on this registry | an anonymous pull token |
| the host a registry or its token URL redirects to | the same answer, such as a blob from storage | a registry that redirects, as registry.k8s.io does | no; a redirect to another domain gets no token |
api.adoptium.net | release-note pages | a registry entry with a web-doc, structured-json or upgrade-guide source on this host | no |
docs.python.org | release-note pages | a registry entry with a web-doc, structured-json or upgrade-guide source on this host | no |
go.dev | release-note pages | a registry entry with a web-doc, structured-json or upgrade-guide source on this host | no |
api.anthropic.com | the summary prompt | --summarize with llm.provider: anthropic and no llm.base_url | the API key |
bedrock-mantle.<region>.api.aws | the summary prompt | --summarize with llm.provider: bedrock-mantle and no llm.base_url | the API key |
| the Bedrock Runtime endpoint of the AWS region | the summary prompt | --summarize with llm.provider: bedrock | AWS credentials |
the host of llm.base_url | the summary prompt | --summarize with llm.provider: openai-compatible, or any provider with llm.base_url set | the API key |
www.cisa.gov and api.first.org are off by default. With --kev relgap downloads the whole KEV catalog and matches it locally, so CISA learns nothing about your pins. With --epss relgap sends the CVE IDs of the advisories it found, which tells FIRST which vulnerabilities your pins have.
Every request goes through one HTTP client with retries, a per-host limit and the on-disk cache. Pages of release notes come from GitHub through the API. Web pages come only from these hosts, and relgap registry lint rejects an entry whose URL points anywhere else:
api.adoptium.netdocs.python.orggo.dev
What OSV receives
relgap audit and relgap outdated ask api.osv.dev about every pin they can check, with no token. The table lists every value those requests carry. It comes from the list in relgap's source that a test compares with the requests the OSV client sends:
| Request | Field | What it holds |
|---|---|---|
POST /v1/querybatch | queries[].package.ecosystem | The OSV ecosystem: Go, npm, PyPI, crates.io, RubyGems, NuGet, GIT, GitHub Actions, or the one a curated osv list names. |
POST /v1/querybatch | queries[].package.name | The package name as the pin or the registry entry writes it (PyPI names normalized); a Go module path, every prefix of a go: path while relgap looks for the module, or the main module of an executable under outdated --binaries; the URL of a github.com or gitlab.com repository for GIT; owner/repo of an action. A repository you named only when its forge says it is public, and never a module path that GOPRIVATE names. |
POST /v1/querybatch | queries[].version | The version relgap checks: an exact pin, the version a pin marked ≈ stands for, or a fix target candidate or latest release. Left out when relgap looks for a go: module or asks about an action. |
POST /v1/querybatch | queries[].page_token | The token OSV returned for the next page of an answer. |
GET /v1/vulns/{id} | id | The ID of an advisory that OSV returned, or a GHSA alias of one. |
relgap never sends OSV a file path, a pin's location, the name of the repository that pins a tool, or a token. It never queries a tool on a host it doesn't send to: Bitbucket, a self-managed GitLab host, a github.host other than github.com, an image registry, or a package name with : or @ after the npm scope. Those pins are unchecked with reason private-source or no-advisory-source (Unchecked pins).
Private repositories and modules
A repository can be private on github.com or gitlab.com too, so relgap decides what may go to OSV as follows (relgap ADR-0020, details 39 to 42):
- A repository from the relgap, mise or aqua registry, the Terraform registry, npm or PyPI is public: those registries list public projects only.
- A repository you named goes to OSV only when its forge says it is public. These are a
github:orgitlab:pin, atools.<name>.repoentry, a--guessand a GitHub Action. With a GitHub token relgap asksisPrivatein one GraphQL query per 100 repositories; without one it readsGET /repos/{owner}/{repo}, which answers only for a public repository. On gitlab.com it readsGET /projects/:idand itsvisibility. A repository the forge calls private or internal, or doesn't find, isprivate-source; a failed lookup isfailed. - A Go module path that
GOPRIVATE,GONOPROXYorGONOSUMDBnames never goes to OSV, matched the way the go command matches it. relgap reads each variable, else the filego env -wwrites. This covers a curated Go package, ago:backend, the repository of a github.com or gitlab.com tool or action (asgithub.com/<owner>/<repo>) and the main module of an executable. outdated --binariessends the main module of an executable only when the tool's repository is public by the rules above. The standard library at the binary's Go version always goes.- An npm package that a Renovate comment or report names with a
registryUrlother than registry.npmjs.org isprivate-source: relgap asks neither registry.npmjs.org nor OSV about it.
A go: pin or an npm package that no registry knows resolves to no tool, so it never reaches OSV either. relgap looks an npm: name up on registry.npmjs.org first, which answers 404 for a private package.
To leave a tool out of every report and every request, add an ignore rule for it. relgap drops ignored pins before any request:
ignore:
- tool: deploy-cliPrograms relgap runs
| Program | Command | When |
|---|---|---|
| git | git ls-files | listing the files of a repository, so .gitignore applies |
| git | git rev-parse and git archive | reading the pins at another commit with digest --base or --pull-request |
| mise | mise registry --json | mapping tool names to repositories, when mise is on PATH |
| mise | mise which | outdated --binaries, finding the installed executables |
| gh | gh auth token | looking up the GitHub token in gh's keyring, after the other places |
Without git, relgap walks the directories itself. Without mise, it uses the embedded copy of mise's registry (registry snapshots).
Tokens
Each token goes only to the host it belongs to. relgap never sends one host's token to another, never writes a token to the cache or the logs, and names in the debug log only whether a client has a token and which variable it came from.
GitHub
relgap looks for a token the way gh does, and takes the first it finds:
- the
GH_TOKENenvironment variable - the
GITHUB_TOKENenvironment variable - gh's config file (
hosts.yml) gh auth token, which reads gh's keyring
relgap adds the token only to requests to api.github.com. A token with no scopes reads public repositories; a private repository needs a token that can read its contents. relgap notify needs a token that can write pull request comments.
Without a token, relgap uses the REST API only, sends at most 2 requests at once, and GitHub allows 60 requests an hour. relgap warns on the first GitHub request, and again when the remaining requests run low. A token raises the limit to GitHub's authenticated one and lets relgap batch release bodies into GraphQL queries.
Bitbucket Cloud
relgap sends BITBUCKET_API_TOKEN to api.bitbucket.org only, as Authorization: Bearer. A user API token with the read:repository:bitbucket scope works, and so do repository, project and workspace access tokens. relgap reads no username or email, because a Bearer token needs none. Without a token, relgap warns once, and Bitbucket allows 60 anonymous requests an hour per IP; a private repository then answers 404.
GitLab
relgap reads GitLab tokens the way glab does and sends each to one host:
- the variable that a
gitlab.hostsentry names intoken_env, to that entry's host GITLAB_TOKEN, thenGITLAB_ACCESS_TOKEN, to the host inGITLAB_HOST(default gitlab.com)CI_JOB_TOKEN, to the host inCI_SERVER_HOST, when that host has no other token
A personal, project or group token goes in PRIVATE-TOKEN and needs read_api. A CI job token goes in JOB-TOKEN; it reads tags, releases and raw files of projects whose job token allowlist has the calling project, but not the directory listing that finds a changelog file. Without a token, gitlab.com allows 500 requests a minute per IP, and relgap warns when the remaining requests run low.
Image registries
relgap reads no Docker credentials. When a registry answers 401 with a Bearer challenge, relgap asks the token URL in the challenge for an anonymous pull token and keeps it in memory for the run. A private image therefore stays skipped. Reading an image's source label costs one manifest request, which Docker Hub counts as a pull.
The cache
Answers are cached under $XDG_CACHE_HOME/relgap/http, or the cache.dir you set. The cache keeps response bodies and the headers needed to revalidate them. It never stores request headers, so Authorization, PRIVATE-TOKEN and JOB-TOKEN stay out, and it never stores cookies, rate-limit headers or the answers that carry an anonymous registry token. --offline answers from the cache only, --no-cache neither reads nor writes it, and relgap cache clear deletes it.
Summaries from a model
--summarize is off unless you configure llm.provider and llm.model, and relgap never adds it on its own. With it, relgap sends the digest's listed entries to the provider you configured and nothing else. The summary is advisory: it never changes --fail-on, the exit code or SARIF.
The API key comes from the environment variable that llm.api_key_env names. relgap never reads a key from a file and never writes one to the cache or the logs.