internal/

directory
v0.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: AGPL-3.0

Directories

Path Synopsis
ai
manifest
Package manifest extracts the plain-text package manifest (package.json, METADATA, a .pom, a deb control file, ...) from a stored artifact so it can be sent to the AI analysis model.
Package manifest extracts the plain-text package manifest (package.json, METADATA, a .pom, a deb control file, ...) from a stored artifact so it can be sent to the AI analysis model.
api
responses
Package responses provides typed response structs for all API handler endpoints.
Package responses provides typed response structs for all API handler endpoints.
Package apkkeys manages the RSA keys that sign the APKINDEX of Alpine repositories.
Package apkkeys manages the RSA keys that sign the APKINDEX of Alpine repositories.
Package attest signs generated SBOM and VEX documents as DSSE envelopes carrying in-toto attestations, verifiable with `cosign verify-blob-attestation`.
Package attest signs generated SBOM and VEX documents as DSSE envelopes carrying in-toto attestations, verifiable with `cosign verify-blob-attestation`.
backuptest
Package backuptest holds test doubles for the backup engine.
Package backuptest holds test doubles for the backup engine.
Package bgtask runs the fire-and-forget goroutines of a server (async backups and scans, startup repairs) under one lifecycle: they receive a context that is cancelled at shutdown, and shutdown waits for them, bounded.
Package bgtask runs the fire-and-forget goroutines of a server (async backups and scans, startup repairs) under one lifecycle: they receive a context that is cancelled at shutdown, and shutdown waits for them, bounded.
Package branding implements white-labelling: the product name, logos, favicon, primary colour, login message and support/source links, taken from the branding.* configuration and overridable at runtime by administrators.
Package branding implements white-labelling: the product name, logos, favicon, primary colour, login message and support/source links, taken from the branding.* configuration and overridable at runtime by administrators.
Package buildtags reports which optional features this binary was compiled with: AI analysis (left out by -tags noai) and the MCP server (left out by -tags nomcp).
Package buildtags reports which optional features this binary was compiled with: AI analysis (left out by -tags noai) and the MCP server (left out by -tags nomcp).
Package clientsetup builds native client URLs and per-client configure / publish snippets for a repository.
Package clientsetup builds native client URLs and per-client configure / publish snippets for a repository.
Package cron parses standard 5-field cron expressions ("minute hour day-of-month month day-of-week") and computes fire times in UTC.
Package cron parses standard 5-field cron expressions ("minute hour day-of-month month day-of-week") and computes fire times in UTC.
Package crypto provides AES-256-GCM encryption of secrets stored at rest (webhook secrets, upstream passwords, SSO client secrets, AI API keys, storage backend credentials).
Package crypto provides AES-256-GCM encryption of secrets stored at rest (webhook secrets, upstream passwords, SSO client secrets, AI API keys, storage backend credentials).
Package curation decides which upstream packages and versions a proxy repository may serve.
Package curation decides which upstream packages and versions a proxy repository may serve.
Package declarative implements `oa apply`, `oa diff` and `oa export`: it loads Kubernetes-style YAML manifests, validates them against per-kind schemas, diffs them against the live server state fetched through the REST API and applies the difference in dependency order.
Package declarative implements `oa apply`, `oa diff` and `oa export`: it loads Kubernetes-style YAML manifests, validates them against per-kind schemas, diffs them against the live server state fetched through the REST API and applies the difference in dependency order.
Package dtrack pushes OpenArtifact's SBOMs and VEX decisions to a Dependency-Track server (https://dependencytrack.org) and records how far each push got.
Package dtrack pushes OpenArtifact's SBOMs and VEX decisions to a Dependency-Track server (https://dependencytrack.org) and records how far each push got.
Package exploit loads the CISA Known Exploited Vulnerabilities (KEV) catalog and the FIRST EPSS scores, keyed by CVE id, and derives from them the kev / epss / priority attributes of a vulnerability finding.
Package exploit loads the CISA Known Exploited Vulnerabilities (KEV) catalog and the FIRST EPSS scores, keyed by CVE id, and derives from them the kev / epss / priority attributes of a vulnerability finding.
Package federation replicates the artifacts of a repository between OpenArtifact instances (docs/design/federation.md): every member keeps an event log of its changes, written transactionally with them, and pulls the logs of its peers.
Package federation replicates the artifacts of a repository between OpenArtifact instances (docs/design/federation.md): every member keeps an event log of its changes, written transactionally with them, and pulls the logs of its peers.
format
ansible
Package ansible serves hosted Ansible collection repositories to ansible-galaxy (ansible-core 2.15 and later) through the Galaxy API v3.
Package ansible serves hosted Ansible collection repositories to ansible-galaxy (ansible-core 2.15 and later) through the Galaxy API v3.
apk
Package apk serves hosted Alpine apk repositories: the mirror-tree layout <branch>/<repo>/<arch>/ that apk reads as one repository line, the generated signed APKINDEX.tar.gz, and the .apk uploads and deletes.
Package apk serves hosted Alpine apk repositories: the mirror-tree layout <branch>/<repo>/<arch>/ that apk reads as one repository line, the generated signed APKINDEX.tar.gz, and the .apk uploads and deletes.
base
Package base provides shared HTTP handler infrastructure for artifact format handlers.
Package base provides shared HTTP handler infrastructure for artifact format handlers.
composer
Package composer serves hosted Composer (PHP) repositories to the Composer 2 client.
Package composer serves hosted Composer (PHP) repositories to the Composer 2 client.
conan
Package conan serves a hosted Conan 2 remote: the REST API (v2) the conan client speaks, with revisions.
Package conan serves a hosted Conan 2 remote: the REST API (v2) the conan client speaks, with revisions.
deb
filerepo
Package filerepo is the HTTP handler shared by the hosted formats that store plain files addressed by a Maven-style group/module/version/filename path (ivy and sbt).
Package filerepo is the HTTP handler shared by the hosted formats that store plain files addressed by a Maven-style group/module/version/filename path (ivy and sbt).
formattest
Package formattest provides in-memory fakes shared by the format handler tests: a content-addressed blob store, a recording webhook publisher and a quarantine lookup.
Package formattest provides in-memory fakes shared by the format handler tests: a content-addressed blob store, a recording webhook publisher and a quarantine lookup.
ivy
lifecycle
Package lifecycle is where a format says what has to happen to its generated metadata when rows change behind the handler's back: a repository is rebuilt from a backup or its signing key changes (Stale), a cleanup policy removes rows (Removed), a trashed item is restored (Restored).
Package lifecycle is where a format says what has to happen to its generated metadata when rows change behind the handler's back: a repository is rebuilt from a backup or its signing key changes (Stale), a cleanup policy removes rows (Removed), a trashed item is restored (Restored).
nix
Package nix serves hosted Nix binary caches.
Package nix serves hosted Nix binary caches.
npm
pacman
Package pacman serves hosted Arch Linux package repositories to pacman.
Package pacman serves hosted Arch Linux package repositories to pacman.
plugin
Package plugin is the one place a package format is plugged into the server.
Package plugin is the one place a package format is plugged into the server.
raw
rpm
sbt
storage
Package storage is the leaf descriptor package of the format plugins: what a format's rows in the generic package tables (packages, package_versions, package_files and their side tables) need from the subsystems that work on every format the same way: trash, retention cleanup, federation, the artifact detail, promotion, backup and the recovery journal.
Package storage is the leaf descriptor package of the format plugins: what a format's rows in the generic package tables (packages, package_versions, package_files and their side tables) need from the subsystems that work on every format the same way: trash, retention cleanup, federation, the artifact detail, promotion, backup and the recovery journal.
terraform
Package terraform serves hosted Terraform/OpenTofu registries: modules (module registry protocol) and providers (provider registry protocol), in a repository of format "terraform".
Package terraform serves hosted Terraform/OpenTofu registries: modules (module registry protocol) and providers (provider registry protocol), in a repository of format "terraform".
Package formats holds the plugin registration of every package format: one file per format, each a plugin.Format value assembling the hosted handler constructor, the analysis, client setup, proxy and group hooks and the metadata lifecycle of that format.
Package formats holds the plugin registration of every package format: one file per format, each a plugin.Format value assembling the hosted handler constructor, the analysis, client setup, proxy and group hooks and the metadata lifecycle of that format.
Package gpgkeys manages the GPG keys that sign deb, pacman and rpm repository metadata and sealed release bundles: import, generation, activation (globally or per repository), deletion and the lookup the metadata workers use to find the signer of a repository.
Package gpgkeys manages the GPG keys that sign deb, pacman and rpm repository metadata and sealed release bundles: import, generation, activation (globally or per repository), deletion and the lookup the metadata workers use to find the signer of a repository.
gpgkeystest
Package gpgkeystest provides an in-memory gpgkeys.Store for tests.
Package gpgkeystest provides an in-memory gpgkeys.Store for tests.
Package group serves group repositories: a read-only view over an ordered list of hosted and proxy member repositories of the same format.
Package group serves group repositories: a read-only view over an ordered list of hosted and proxy member repositories of the same format.
Package httpcache holds the dependency-free pieces of HTTP validator caching shared by the SPA handler and the format handlers: If-None-Match evaluation and Cache-Control construction.
Package httpcache holds the dependency-free pieces of HTTP validator caching shared by the SPA handler and the format handlers: If-None-Match evaluation and Cache-Control construction.
Package httpcompress encodes compressible HTTP responses (JSON, XML, YAML, plain text) with zstd or gzip, as the client's Accept-Encoding allows.
Package httpcompress encodes compressible HTTP responses (JSON, XML, YAML, plain text) with zstd or gzip, as the client's Accept-Encoding allows.
Package httpx holds the JSON response writers shared by the HTTP layers, so every one of them answers with the same envelope.
Package httpx holds the JSON response writers shared by the HTTP layers, so every one of them answers with the same envelope.
Package importmeta lets administrators preserve origin metadata when migrating artifacts from another repository manager.
Package importmeta lets administrators preserve origin metadata when migrating artifacts from another repository manager.
Package iocopy is io.Copy with a pooled buffer.
Package iocopy is io.Copy with a pooled buffer.
Package itempath is the one reading of a release bundle item's artifact_path.
Package itempath is the one reading of a release bundle item's artifact_path.
Package lazyre compiles package-level regular expressions on first use.
Package lazyre compiles package-level regular expressions on first use.
Package licensemeta reads the licenses a package declares from the package file itself: the metadata inside the artifact (a wheel's METADATA, an npm tarball's package.json, a crate's Cargo.toml, a nupkg's .nuspec, a gem's gemspec, a .pom or an ivy.xml).
Package licensemeta reads the licenses a package declares from the package file itself: the metadata inside the artifact (a wheel's METADATA, an npm tarball's package.json, a crate's Cargo.toml, a nupkg's .nuspec, a gem's gemspec, a .pom or an ivy.xml).
archivetest
Package archivetest builds the small package archives (wheels, sdists, npm tarballs, crates, nupkgs) that license-reading tests feed to upload handlers.
Package archivetest builds the small package archives (wheels, sdists, npm tarballs, crates, nupkgs) that license-reading tests feed to upload handlers.
Package licensepolicy applies a repository's license policies to the licenses an artifact declares.
Package licensepolicy applies a repository's license policies to the licenses an artifact declares.
policytest
Package policytest provides the license-policy scenarios every upload path is tested with: for one declared license, which policy configurations admit the upload and which reject it.
Package policytest provides the license-policy scenarios every upload path is tested with: for one declared license, which policy configurations admit the upload and which reject it.
Package limitio bounds how much of a reader is consumed.
Package limitio bounds how much of a reader is consumed.
Package mcp exposes OpenArtifact to AI agents through the Model Context Protocol (specification 2026-07-28, older revisions negotiated down by the SDK).
Package mcp exposes OpenArtifact to AI agents through the Model Context Protocol (specification 2026-07-28, older revisions negotiated down by the SDK).
Package netutil provides SSRF-safe outbound HTTP helpers.
Package netutil provides SSRF-safe outbound HTTP helpers.
Package nixkeys manages the ed25519 keys that sign the narinfo of Nix binary caches.
Package nixkeys manages the ed25519 keys that sign the narinfo of Nix binary caches.
Package ocimanifest extracts what an OCI image manifest, OCI image index or Docker v2 manifest/manifest list references.
Package ocimanifest extracts what an OCI image manifest, OCI image index or Docker v2 manifest/manifest list references.
Package ocipath parses OCI distribution /v2/ request paths.
Package ocipath parses OCI distribution /v2/ request paths.
Package osv imports the OSV vulnerability database (https://osv.dev, data under CC-BY 4.0) into the local mirror and decides whether a package version is affected by an advisory, following the OSV schema's evaluation rules.
Package osv imports the OSV vulnerability database (https://osv.dev, data under CC-BY 4.0) into the local mirror and decides whether a package version is affected by an advisory, following the OSV schema's evaluation rules.
Package passwd is the local-password policy and Argon2id hashing.
Package passwd is the local-password policy and Argon2id hashing.
Package pathseg is the one definition of a plain path segment, shared by every place that turns client-supplied names into repository paths, coordinates, file names or upstream URLs.
Package pathseg is the one definition of a plain path segment, shared by every place that turns client-supplied names into repository paths, coordinates, file names or upstream URLs.
Package pglock takes the session-level Postgres advisory locks that keep a background job to one replica at a time.
Package pglock takes the session-level Postgres advisory locks that keep a background job to one replica at a time.
Package pkgdeps lists the dependencies a stored package file declares: the manifest and, where the package ships one, the lockfile (npm package.json and shrinkwrap, pypi Requires-Dist, maven pom, Cargo.toml and Cargo.lock, composer.json, go.mod, nuspec, gemspec, Chart.yaml and Chart.lock, conda index.json, deb Depends, rpm Requires, conan recipe, ivy.xml).
Package pkgdeps lists the dependencies a stored package file declares: the manifest and, where the package ships one, the lockfile (npm package.json and shrinkwrap, pypi Requires-Dist, maven pom, Cargo.toml and Cargo.lock, composer.json, go.mod, nuspec, gemspec, Chart.yaml and Chart.lock, conda index.json, deb Depends, rpm Requires, conan recipe, ivy.xml).
Package presign redirects blob downloads to short-lived presigned object store URLs.
Package presign redirects blob downloads to short-lived presigned object store URLs.
Package promote copies the content of release bundle items from one hosted repository into another (bundle promotion).
Package promote copies the content of release bundle items from one hosted repository into another (bundle promotion).
Package proxy serves proxy repositories: files are fetched from the repository's upstream on first request, cached content-addressed in the blob store, recorded in proxy_cache_entries (which also backs the repository's package listing) and served from the cache until their TTL expires.
Package proxy serves proxy repositories: files are fetched from the repository's upstream on first request, cached content-addressed in the blob store, recorded in proxy_cache_entries (which also backs the repository's package listing) and served from the cache until their TTL expires.
Package publicurl resolves the externally visible origin (scheme, host and optional path prefix) the server hands to clients inside generated documents: npm tarballs, the Cargo config.json, the NuGet service index, Composer dists, presigned upload relays.
Package publicurl resolves the externally visible origin (scheme, host and optional path prefix) the server hands to clients inside generated documents: npm tarballs, the Cargo config.json, the NuGet service index, Composer dists, presigned upload relays.
Package pypisimple models the PyPI "simple repository API": the index of projects and the per-project file lists of PEP 503 (HTML) and PEP 691 (JSON), including the PEP 592 yanked flag, PEP 658/714 core metadata hints and PEP 700 size/upload-time.
Package pypisimple models the PyPI "simple repository API": the index of projects and the per-project file lists of PEP 503 (HTML) and PEP 691 (JSON), including the PEP 592 yanked flag, PEP 658/714 core metadata hints and PEP 700 size/upload-time.
Package quarantine enforces artifact quarantine on the download path.
Package quarantine enforces artifact quarantine on the download path.
Package quota reserves and releases repository storage quota on the upload and delete paths of every format handler.
Package quota reserves and releases repository storage quota on the upload and delete paths of every format handler.
Package recovery implements disaster recovery from the blob store: the row journal (database triggers mark changed package rows, a worker mirrors them as small JSON sidecar blobs next to the content-addressed package blobs) and `openartifact rebuild`, which re-indexes an empty database from those sidecars.
Package recovery implements disaster recovery from the blob store: the row journal (database triggers mark changed package rows, a worker mirrors them as small JSON sidecar blobs next to the content-addressed package blobs) and `openartifact rebuild`, which re-indexes an empty database from those sidecars.
Package registry is the small name-keyed registry the format hook tables are built on.
Package registry is the small name-keyed registry the format hook tables are built on.
Package replication copies every blob of the primary store to a secondary backend asynchronously, applies deletions to it, verifies that both sides agree and lets reads fall back to the replica (docs/operations/replication.md).
Package replication copies every blob of the primary store to a secondary backend asynchronously, applies deletions to it, verifies that both sides agree and lets reads fall back to the replica (docs/operations/replication.md).
Package repodispatch routes requests for proxy and group repositories to the proxy and group services.
Package repodispatch routes requests for proxy and group repositories to the proxy and group services.
Package repotype is the registry of package formats and the policy derived from it: which formats exist, which can be served as proxy, group or federated repositories, and the per-format facts that more than one package needs (default upstream, signing, URL namespace, Package URL type, vuln ecosystem, version rules).
Package repotype is the registry of package formats and the policy derived from it: which formats exist, which can be served as proxy, group or federated repositories, and the per-format facts that more than one package needs (default upstream, signing, URL namespace, Package URL type, vuln ecosystem, version rules).
repotypetest
Package repotypetest holds the exhaustiveness helpers of the format registry: tests of every place that branches on a format use them, so adding a format to internal/repotype fails each place that does not decide on it yet.
Package repotypetest holds the exhaustiveness helpers of the format registry: tests of every place that branches on a format use them, so adding a format to internal/repotype fails each place that does not decide on it yet.
Package sbom generates software bills of materials (CycloneDX 1.4-1.6, SPDX 2.3 JSON and tag-value) and VEX documents (OpenVEX 0.2.0, CycloneDX VEX) for artifacts from their stored properties, license and vulnerability scans and the admin VEX decisions.
Package sbom generates software bills of materials (CycloneDX 1.4-1.6, SPDX 2.3 JSON and tag-value) and VEX documents (OpenVEX 0.2.0, CycloneDX VEX) for artifacts from their stored properties, license and vulnerability scans and the admin VEX decisions.
Package scanexport renders stored vulnerability and secret scan results as SARIF 2.1.0 (for GitHub code scanning, DefectDojo and other SARIF consumers) and as CSV.
Package scanexport renders stored vulnerability and secret scan results as SARIF 2.1.0 (for GitHub code scanning, DefectDojo and other SARIF consumers) and as CSV.
Package telemetry wires OpenTelemetry: the OTLP exporters (traces, a bridge that ships the Prometheus registry as OTLP metrics, and a log provider for application and audit records), the HTTP server middleware, an instrumented client transport and a pgx tracer.
Package telemetry wires OpenTelemetry: the OTLP exporters (traces, a bridge that ships the Prometheus registry as OTLP metrics, and a log provider for application and audit records), the HTTP server middleware, an instrumented client transport and a pgx tracer.
Package tiering implements storage tiers and lifecycle policies: a registry of named tiers mapped to storage backends, a BlobStore that reads transparently from whichever tier holds a blob, and a mover that relocates blobs between tiers according to ordered policies without ever leaving a blob without exactly one authoritative placement.
Package tiering implements storage tiers and lifecycle policies: a registry of named tiers mapped to storage backends, a BlobStore that reads transparently from whichever tier holds a blob, and a mover that relocates blobs between tiers according to ordered policies without ever leaving a blob without exactly one authoritative placement.
Package trash is the policy layer of soft delete: format handlers route deletes through Delete (soft when the repository's retention allows it, the caller's own hard delete otherwise), guard released versions with GuardRelease, and the trash API and purge worker use the audit helpers so every delete/restore/purge leaves the same trail.
Package trash is the policy layer of soft delete: format handlers route deletes through Delete (soft when the repository's retention allows it, the caller's own hard delete otherwise), guard released versions with GuardRelease, and the trash API and purge worker use the audit helpers so every delete/restore/purge leaves the same trail.
Package workq is the queue a web process uses to ask a worker process for work (server.role, docs/operations/scaling.md): a row in worker_requests per (kind, key).
Package workq is the queue a web process uses to ask a worker process for work (server.role, docs/operations/scaling.md): a row in worker_requests per (kind, key).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL