openartifact

module
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: AGPL-3.0

README

OpenArtifact logo

OpenArtifact

Self-hosted artifact repository for 16 package formats.
One Go binary, embedded web UI, PostgreSQL. Hosted, proxy and group repositories with RBAC, SSO and security scanning.

CI Go 1.27 REUSE

Quickstart · Formats · Configuration · Website · Documentation · Contributing

OpenArtifact stores and serves npm, PyPI, Maven, Docker/OCI, Helm, Debian, RPM, Go, Cargo, NuGet, RubyGems, Conda, Conan, Ivy, sbt and raw files behind one URL scheme and one permission model, on your own infrastructure. Free software under the AGPL.

Repository list filtered by formatnpm repository with published package versions

Formats

Repository type Formats
Hosted all 16 (listed above)
Proxy (read-only mirror of an upstream) Maven, Debian, RPM, raw
Group (ordered members, first hit wins) Maven, raw

Client URLs and setup per format: docs/formats.

Features

  • Native client protocols for 16 formats; hosted, proxy (with serve-stale) and group repositories
  • RBAC with users, groups, permission targets and API tokens; SSO via OIDC and SAML; projects
  • SBOM (CycloneDX/SPDX), vulnerability scanning (OSV, Trivy, Grype), license compliance, secret detection
  • Cleanup policies, storage quotas, artifact properties, release bundles with promotion pipelines
  • Blob storage on filesystem, S3, GCS, Azure, Garage, SeaweedFS or an OCI registry; backups
  • GPG-signed APT and RPM metadata; signed, attested release images
  • Webhooks, audit log, Prometheus metrics, REST API with OpenAPI spec and a self-hosted interactive API reference
  • oa CLI with Nexus/Artifactory import; optional MCP server and AI analysis (both off by default)

Quickstart

cp docker/.env.example docker/.env      # set POSTGRES_PASSWORD
make docker-up    # docker compose up -d --build with version/commit/build time stamped
                  # (no dhi.io access? OPENARTIFACT_RUNTIME=distroless make docker-up)

The UI and API are on http://localhost:8080. The first start creates user admin with a random password printed once to the server's stderr (docker compose -f docker/docker-compose.yml logs openartifact). Change it at first login.

On Kubernetes:

helm install openartifact oci://ghcr.io/openartifact/charts/openartifact

More: installation, configuration.

Documentation

Section Contents
Getting started Installation (Compose, Helm, binaries, first login), configuration (every setting), upgrading
Formats Client URLs and setup per format: Maven, npm, PyPI, Docker, Helm, Debian, RPM, Go, Cargo, NuGet, RubyGems, Conda, Conan, Ivy/sbt, raw
Repositories Hosted, proxy and group, cleanup and quotas, properties, release bundles
Security Authentication, SSO, RBAC, scanning, signing and release verification
Operations Storage, backup, monitoring, webhooks, performance
Migration Import from Nexus or Artifactory with oa import
Integrations oa CLI, MCP server, REST API, AI analysis
Development Build, test, CI, architecture

The documentation is published, per release, at https://openartifact.github.io/ (search, version switcher, generated configuration, metrics, CLI and REST API reference). The same pages are readable here: the full page index is docs/README.md.

Contributing, security, license

Directories

Path Synopsis
bench
oabench command
Command oabench seeds a running OpenArtifact instance with thousands of packages and drives HTTP load scenarios against it, reporting latency percentiles, throughput, error rate and server RSS/CPU.
Command oabench seeds a running OpenArtifact instance with thousands of packages and drives HTTP load scenarios against it, reporting latency percentiles, throughput, error rate and server RSS/CPU.
cmd
docgen command
Command docgen writes the generated reference pages under docs/reference (configuration, metrics, CLI, REST API).
Command docgen writes the generated reference pages under docs/reference (configuration, metrics, CLI, REST API).
oa command
resetpw command
Command resetpw resets a local user's password directly in the database (break-glass recovery when nobody can log in).
Command resetpw resets a local user's password directly in the database (break-glass recovery when nobody can log in).
server command
internal
ai
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
api/responses
Package responses provides typed response structs for all API handler endpoints.
Package responses provides typed response structs for all API handler endpoints.
attest
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`.
bgtask
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.
branding
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.
clientsetup
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.
cron
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.
crypto
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).
database/databasetest
Package databasetest provides test doubles for the database.Database interface: embed BaseMockDB in a test mock and override only the methods you need.
Package databasetest provides test doubles for the database.Database interface: embed BaseMockDB in a test mock and override only the methods you need.
declarative
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.
dtrack
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.
federation
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/base
Package base provides shared HTTP handler infrastructure for artifact format handlers.
Package base provides shared HTTP handler infrastructure for artifact format handlers.
format/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.
format/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).
format/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.
gpgkeys
Package gpgkeys manages the GPG keys that sign deb/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/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.
gpgkeys/gpgkeystest
Package gpgkeystest provides an in-memory gpgkeys.Store for tests.
Package gpgkeystest provides an in-memory gpgkeys.Store for tests.
group
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.
httpcache
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.
httpx
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.
importmeta
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.
iocopy
Package iocopy is io.Copy with a pooled buffer.
Package iocopy is io.Copy with a pooled buffer.
licensemeta
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 .pom).
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 .pom).
licensemeta/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.
licensepolicy
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.
licensepolicy/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.
mcp
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).
netutil
Package netutil provides SSRF-safe outbound HTTP helpers.
Package netutil provides SSRF-safe outbound HTTP helpers.
ocimanifest
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.
ocipath
Package ocipath parses OCI distribution /v2/ request paths.
Package ocipath parses OCI distribution /v2/ request paths.
pathseg
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.
pkgdeps
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, 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, go.mod, nuspec, gemspec, Chart.yaml and Chart.lock, conda index.json, deb Depends, rpm Requires, conan recipe, ivy.xml).
presign
Package presign redirects blob downloads to short-lived presigned object store URLs.
Package presign redirects blob downloads to short-lived presigned object store URLs.
promote
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).
proxy
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.
pypisimple
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.
quarantine
Package quarantine enforces artifact quarantine on the download path.
Package quarantine enforces artifact quarantine on the download path.
quota
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.
recovery
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.
replication
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).
repodispatch
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.
repotype
Package repotype defines the repository types and which formats can be served as proxy or group repositories.
Package repotype defines the repository types and which formats can be served as proxy or group repositories.
sbom
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.
scanexport
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.
telemetry
Package telemetry wires OpenTelemetry: the OTLP exporters (traces, plus an optional bridge that ships the Prometheus registry as OTLP metrics), the HTTP server middleware, an instrumented client transport and a pgx tracer.
Package telemetry wires OpenTelemetry: the OTLP exporters (traces, plus an optional bridge that ships the Prometheus registry as OTLP metrics), the HTTP server middleware, an instrumented client transport and a pgx tracer.
tiering
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.
trash
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.
xzutil
Package xzutil builds xz writers with a dictionary sized to the input.
Package xzutil builds xz writers with a dictionary sized to the input.
pkg
cargo
Package cargo holds the parts of the Cargo sparse registry protocol that proxy and group repositories need: request-path parsing, index file validation and merging, the registry config.json and its download template.
Package cargo holds the parts of the Cargo sparse registry protocol that proxy and group repositories need: request-path parsing, index file validation and merging, the registry config.json and its download template.
deb
delta
Package delta provides binary diff generation and application for package files.
Package delta provides binary diff generation and application for package files.
gpg
npm
nuget
Package nuget holds NuGet protocol helpers shared by the hosted format handler and the proxy/group services: version parsing, ordering and normalization, and v3 registration/flat-container document handling.
Package nuget holds NuGet protocol helpers shared by the hosted format handler and the proxy/group services: version parsing, ordering and normalization, and v3 registration/flat-container document handling.
rpm
rpmsign
Package rpmsign adds OpenPGP signatures to RPM packages.
Package rpmsign adds OpenPGP signatures to RPM packages.
rubymarshal
Package rubymarshal implements a minimal, dependency-free subset of Ruby's Marshal format version 4.8 (the binary wire format Marshal.dump/ Marshal.load use — unrelated to YAML).
Package rubymarshal implements a minimal, dependency-free subset of Ruby's Marshal format version 4.8 (the binary wire format Marshal.dump/ Marshal.load use — unrelated to YAML).

Jump to

Keyboard shortcuts

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