debian

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

Package debian implements Debian package and repository metadata. It checks every binary (.deb, .ddeb) and source (.dsc) package a repository stores or caches, keeps the package index and the deb.name and deb.version item properties in step with the binaries, and derives a local or federated repository's apt metadata: for each distribution, the Packages and Sources indexes of every component and architecture with their gzip forms and by-hash copies, and a Release file, signed as InRelease and Release.gpg when the repository names a key pair. It also reads and checks the upstream apt metadata that remote, virtual and snapshot reads rely on.

Role

artifacts module, ecosystem layer: the Debian package, index, source and signing rules of the Debian slice. Its Handler plugs into the item service through the format hooks (decision 0032), so every write and delete in a Debian repository reaches it whichever API carried it, and it rebuilds the apt metadata as queued work (decision 0033). The Debian protocol is the http subpackage (debianhttp), which serves remote and virtual metadata, the reindex operation and snapshots with this package.

Inputs

  • Driving: the format registry (artifacts/ecosystem), which hands the item service's hooks for debian repositories to Handler; the work queue, which runs the metadata rebuild (KindIndex) and the reindex operation's writeProps=0 form (KindReindexNoProps) through Handler.Work, and every format's reindex through Handler.Reindex; the protocol (debianhttp), which checks metadata paths and decodes an index to serve it only to a caller with Read permission on every package it lists (a permission rule: a package the download policy refuses stays listed), composes and signs a virtual repository's metadata (DecodePackagesIndex, ReleasePackageIndexes, IndexForms, Release, SignRelease), copies checksum-bound metadata into a snapshot (ReleaseIndexRefs) under WithSnapshotWrite, and queues KindReindexNoProps; the item kit (artifacts/adapters/http/itemkit), whose remote source request checks upstream metadata or a package before a remote caches it (the *Path predicates, ByHashPath, ValidateReleaseMetadata, ReadBinary, ReadSource), caches an index as fetched (#1356) and asks the upstream for any other file a local repository would derive as metadata (GeneratedPath, #1375), and whose item GET sends a remote's downloads, and the metadata its -cache alias holds (#1382), through the remote source (Serves); and the artifacts module's item delete (artifacts/adapters/http), which permits a whole snapshot folder's delete (WithSnapshotDelete).
  • Driven: the format hooks' environment (format.Env): its blobs hold the packages; its store holds the items, their properties and the package index (artifacts/core/pkgindex), and lists a repository's files by AQL (artifacts/core/aql); Enqueue asks for the metadata rebuild when the write commits; Derive and Underive write and remove the metadata; Now dates each Release; and Keys (access/api) reads the GPG signing pair, which the OpenPGP library (github.com/ProtonMail/go-crypto) unlocks and signs with. The shared xz reader (platform/xzfile), which reads a whole xz file as dpkg and apt do, and zstd (github.com/klauspost/compress) read a package's compressed control and data members; github.com/ulikunitz/xz, its lzma package and bzip2 (github.com/dsnet/compress, as the standard library only reads bzip2) write an index's optional forms. The generic deploy policy (artifacts/ecosystem/generic) is a check Admit applies.
  • Settings: the server's debian.metadata_validation, through the format registry as Handler's Settings (DisableMetadataValidation, #1374): 7.x's debian.metadata.validation, on by default. A repository's primaryKeyPairRef (keyPair for a virtual repository) names its signing pair, ddebSupported admits .ddeb debug packages to a local or federated repository (a remote caches them whatever it says, #1352), debianTrivialLayout refuses source packages, and optionalIndexCompressionFormats names the forms besides plain and gzip (bz2, lzma, xz) each Packages index is written in.

Outputs

  • Settings, the server-wide options Handler carries.
  • Handler: the hooks that read a package before its transaction (Inspect), admit a package with valid coordinates and keep clients out of apt metadata and snapshots (Admit, Deleting), keep the package index and properties in step with deploys and deletes, marking a package they cannot read with deb.index.status (PropIndexStatus, #1355) (Deployed, Deleting, Deleted), class apt metadata as derived (Classify), make a metadata read wait for its rebuild (Owed), derive the metadata (WorkKinds, Work) and rebuild the package index (Reindex).
  • The package rules: Binary and ReadBinary; Source, SourcePart and ReadSource.
  • The index rules: IndexedBinary and Packages, IndexedSource, SourceArchive and Sources, GzipIndex, IndexForm and IndexForms, ReleaseEntry and Release, SignedRelease and SignRelease, ValidBinaryPath and ValidSourcePath.
  • The upstream metadata rules: GeneratedPath, PackagesIndexPath, SourcesIndexPath, InstallerPackagesIndexPath, ReleaseMetadataPath, ByHashPath, ByHashMetadataPath, ValidateReleaseMetadata, PackageIndexRef with ReleasePackageIndexes and ReleaseIndexRefs, PackageRecord with DecodePackagesIndex, DecodeInstallerPackagesIndex and ParsePackagesIndex, and SourceIndexRecord with DecodeSourcesIndex.
  • Snapshot guards: WithSnapshotWrite and WithSnapshotDelete.
  • The stored names: KindIndex, KindReindexNoProps and the Prop* property names.

Invariants

  • A binary's identity comes from its control data, which must give a valid Package, Version and Architecture and, unless the server's debian.metadata_validation is off, a Maintainer and Description and no field with an empty value; with it off, an empty field is left out of the package's stanza. Its ar members must be debian-binary (2.x), then control.tar and data.tar, within fixed bounds (8 GiB archive, 16 MiB control member, 1 MiB control file, 4 GiB data).
  • A binary is listed only under the deb.distribution, deb.component and deb.architecture it was deployed with, which must name its own architecture unless it is Architecture: all; one deployed without them is stored but never indexed. A binary ReadBinary refuses is stored too but never indexed or given a version: it carries the reason in deb.index.status in place of deb.name and deb.version until a readable package replaces it, as JFrog's "Use Debian Metadata Validation" describes (#1355). An Architecture: all package is listed under binary-all, under every other architecture of its distribution and component, and under amd64 even when nothing else names it, so a fresh amd64 apt client finds it.
  • A source package is listed only once its .dsc carries dsc.distribution and dsc.component and every archive it names is stored beside it with the declared size and digests.
  • Index records take sizes and digests from the stored bytes, never from what a client uploaded; the Release file gives each index's digests, and its signatures bind them.
  • A local or federated repository's apt metadata under dists/ is derived, never uploaded, and never built for a remote from its partial cache: a remote caches the upstream's Release after the item kit's remote source request has checked it, its indexes as fetched, as 7.x does until RTFACT-27303 is done (#1356), and any other file under dists/ that a local repository derives as the upstream's metadata (#1375).
  • Nothing under snapshots/ is written except by the server's own snapshot publication, or deleted except as a whole snapshot folder (409).
  • KindIndex, KindReindexNoProps and the property names are stored, so they stay byte-identical.

References

Status

Implemented P9c, which delivered the plan's P29 group (issues #757 to #760). Moved here in P9d.

Testing

  • binary_test.go, binary_security_test.go and real_fixture_test.go: ReadBinary on dpkg-built packages, corrupt ar structure, malformed control archives and ambiguous control fields.
  • source_test.go and source_security_test.go: ReadSource on the dpkg-source fixture and a signed descriptor, invalid control, corrupt declarations and archive bindings, and Sources order.
  • index_test.go, metadata_test.go and metadata_security_test.go: Packages from stored digests in stable order, Release checksums, compressed indexes, upstream Release and Packages checks, by-hash paths and forged digests.
  • sign_test.go: SignRelease binds both apt signature forms.
  • handler_security_test.go: admission of generated metadata, snapshots and package coordinates, stale inspections, class-specific work, the source lifecycle, a malformed binary kept with its reason and unavailable content.
  • validation_test.go: a binary's metadata read with debian.metadata_validation off: empty fields left out of its stanza, no Maintainer or Description admitted, and the archive and its Package, Version and Architecture still checked (#1374).
  • work_test.go and source_work_test.go: Release and every architecture's index, signing through Env.Keys, and only complete source packages published.
  • index_forms_test.go and work_forms_test.go: the optional bz2, lzma and xz index forms, checked by the system's bzip2 and xz tools where present, written and listed in Release with by-hash copies when optionalIndexCompressionFormats names them (#1274), and plain and gzip alone otherwise; the installer and by-hash names apt reads; and the LZMA alone header check.
  • contract_test.go: the format contract suite (artifacts/core/formattest) with KindIndex as the repository's work.
  • xz_test.go: a package whose control.tar.xz or data.tar.xz, and a Packages, installer Packages or Sources index, whose xz stream lost its index and footer, refused by ReadBinary and the index decoders (#1331).
  • xz_budget_test.go: those packages and indexes, whole and cut, answer the same under the xz dictionary budget as without it (#1354).

testdata holds the contract packages, the dpkg-source fixture alpha_1.0-1 and generate-source.sh, which builds it; the protocol's tests (http/debian_source_test.go) and the acceptance steps also read them. The protocol's native apt evidence is the @debian acceptance partition (test/acceptance/features/debian.feature).

Index

Constants

View Source
const (
	KindIndex          = "debian.index"
	KindReindexNoProps = "debian.reindex-no-props"
)

KindIndex is the work kind that rebuilds a local or federated repository's apt metadata (Work), keyed by the repository. KindReindexNoProps is the work kind of the reindex operation asked with writeProps=0: Work rebuilds the package index without rewriting the deb.name and deb.version properties, then queues KindIndex. Debian needs a kind of its own because the item service runs the shared format.KindReindexNoProps only for Opkg. The work queue keeps these values, so they never change.

View Source
const (
	PropDistribution = "deb.distribution"
	PropComponent    = "deb.component"
	PropArchitecture = "deb.architecture"
	PropName         = "deb.name"
	PropVersion      = "deb.version"
	// PropIndexStatus is the property JFrog's Debian guide names for why a
	// package failed validation and was left out of the index ("Use Debian
	// Metadata Validation"). It holds ReadBinary's reason, whose wording is
	// artifactweave's own: no 7.x source gives JFrog's [I].
	PropIndexStatus = "deb.index.status"
)

PropDistribution, PropComponent and PropArchitecture are the matrix parameters a client deploys a binary with, as the JFrog Debian documentation gives them, naming the distributions, components and architectures whose indexes list it; a binary deployed without them is stored but never indexed. PropName and PropVersion are the properties Deployed and Reindex set from the binary's control data. The items keep these names, so they never change.

Variables

This section is empty.

Functions

func ByHashMetadataPath

func ByHashMetadataPath(p string) (string, bool)

ByHashMetadataPath names a checksum-addressed Packages or Sources index.

func ByHashPath

func ByHashPath(p string) (string, bool)

ByHashPath names any checksum-addressed file, one whose path ends by-hash/SHA256/<sha256>, and returns that SHA-256 in lower case. Apt reads every file a Release lists this way when the Release says Acquire-By-Hash, translations and Contents indexes as much as Packages indexes (RTFACT-29275 shows a 7.x remote repository serving a component's by-hash/SHA256 file), so only the name's shape is checked here.

func GeneratedPath

func GeneratedPath(path string) bool

GeneratedPath reports whether path is one of the files under dists/ that a local or federated repository derives (Classify): a Release, InRelease or Release.gpg, or anything in a binary-<arch> or source folder.

func GzipIndex

func GzipIndex(body []byte) ([]byte, error)

GzipIndex compresses apt index text with a stable header for reproducible Release checksums and by-hash URLs.

func InstallerPackagesIndexPath

func InstallerPackagesIndexPath(p string) bool

InstallerPackagesIndexPath names the Packages index of the Debian installer's udebs, dists/<d>/<c>/debian-installer/binary-<arch>/Packages, plain or in any form an index name may take. A remote repository relays it as metadata, as RTFACT-18414 made the installer's SHA256SUMS; it is not one of the binary-<arch> indexes a repository composes or that PackagesIndexPath names.

func Packages

func Packages(entries []IndexedBinary) ([]byte, error)

Packages writes one binary-architecture index in stable package order. Architecture-independent packages belong in binary-all and in each architecture supported by the distribution.

func PackagesIndexPath

func PackagesIndexPath(p string) bool

PackagesIndexPath accepts only the apt binary-index layout this adapter understands. The same grammar guards remote metadata and virtual reads.

func Release

func Release(
	distribution string,
	components, architectures []string,
	generated []ReleaseEntry,
	at time.Time,
) ([]byte, error)

Release builds the checksummed metadata apt verifies before accepting a Packages index. Signing this body produces InRelease and Release.gpg.

func ReleaseMetadataPath

func ReleaseMetadataPath(p string) bool

ReleaseMetadataPath names one of the metadata files apt checks before it accepts indexes for a distribution.

func Serves

func Serves(t repo.PackageType) bool

Serves reports whether t is the Debian package type.

func Sources

func Sources(entries []IndexedSource) ([]byte, error)

Sources emits the deb-src index with server-computed checksums. Client supplied Directory, Files and Checksums fields never reach the output.

func SourcesIndexPath

func SourcesIndexPath(p string) bool

SourcesIndexPath accepts apt source indexes for one distribution/component.

func ValidBinaryPath

func ValidBinaryPath(p string) bool

ValidBinaryPath reports whether a repository-relative path can safely appear as the Filename of a binary package in an apt index.

func ValidSourcePath

func ValidSourcePath(p string) bool

ValidSourcePath reports whether a repository-relative descriptor path can safely appear in a Sources index.

func ValidateReleaseMetadata

func ValidateReleaseMetadata(p string, body []byte) error

ValidateReleaseMetadata bounds upstream metadata before cache publication. Apt verifies the OpenPGP signature with its configured key; this checks the control structure and checksum paths so malformed bytes do not enter cache.

func WithSnapshotDelete

func WithSnapshotDelete(ctx context.Context) context.Context

WithSnapshotDelete permits deleting a complete snapshot folder.

func WithSnapshotWrite

func WithSnapshotWrite(ctx context.Context) context.Context

WithSnapshotWrite marks server-owned metadata publication. A client cannot supply this context value through the HTTP or package protocol surface.

Types

type Binary

type Binary struct {
	Name, Version, Architecture string
	Control                     []byte
}

Binary is the metadata in a validated .deb control archive. Control holds the original deb822 fields for the Packages index, including continuation lines, so package-specific fields are not silently discarded.

func ReadBinary

func ReadBinary(ctx context.Context, body io.ReaderAt, size int64) (Binary, error)

ReadBinary validates the ordered ar members, bounded control metadata and the data archive before any uploaded package can enter an apt index.

type Handler

type Handler struct {
	generic.Handler
	Settings Settings
}

Handler is the Debian format's hooks: it checks every binary (.deb, .ddeb) and source (.dsc) package written to a Debian repository and the coordinates it is deployed with, keeps the package index and deb.name and deb.version properties in step with the binaries, marks a binary it cannot read with deb.index.status and leaves it out of both, keeps snapshots immutable, and derives a local or federated repository's apt metadata as queued work (KindIndex), signed when the repository names a key pair. Settings say how strictly a binary's metadata is read.

func (Handler) Admit

func (h Handler) Admit(
	ctx context.Context,
	env format.Env,
	c repo.Config,
	w format.Write,
) (format.Write, error)

Admit refuses (409) a write under snapshots/ that the server's snapshot publication (WithSnapshotWrite) did not make, then applies the generic deploy policy, wrapping its refusal, and passes a checksum deploy. No write may put apt metadata under dists/ (anything in a binary-<arch> or source folder, a Release, InRelease or Release.gpg) into a local or federated repository, which derives its own (409). A .dsc needs a valid path in a repository without the trivial layout, and dsc.distribution and dsc.component properties with valid values unless a remote caches it without them (400). A .deb, or a .ddeb where ddebSupported is on or that a remote caches, needs a valid path, and its deb.distribution, deb.component and deb.architecture properties must be all absent or all valid, each architecture the package's own unless it is Architecture: all (400). A malformed package passes with the architecture unchecked, since it has none to compare. Admit repeats Inspect's checks unless Inspect already read the same content at the same path. Any other file passes.

func (Handler) Classify

func (Handler) Classify(_ repo.Config, path string) format.Class

Classify classes apt metadata under dists/ as derived, so replication and federation skip it and each side generates its own, and every other path as unique, a snapshot's copied metadata included, since it cannot be generated again.

func (Handler) Deleted

func (h Handler) Deleted(
	ctx context.Context,
	env format.Env,
	c repo.Config,
	removed []model.Item,
) error

Deleted re-syncs each removed binary's version in the package index, once per name and version, from that version's remaining binaries. A version with none left is not its concern: the item service has already pruned it.

func (Handler) Deleting

func (Handler) Deleting(ctx context.Context, env format.Env, c repo.Config, it model.Item) error

Deleting refuses (409) to delete anything under snapshots/ except as part of a whole snapshot folder (WithSnapshotDelete), and queues the metadata rebuild when a local or federated repository's own binary or source package file is about to be deleted, so the rebuild is asked for exactly when the delete commits.

func (Handler) Deployed

func (h Handler) Deployed(ctx context.Context, env format.Env, c repo.Config, it model.Item) error

Deployed sets a stored binary's deb.name and deb.version properties, brings its version in the package index up to date and, for a local or federated repository's own write, queues the metadata rebuild. A version's files are every binary in the repository whose control data gives that name and version, so Deployed reads them all rather than trusting their paths. A malformed binary gets deb.index.status instead and only queues the rebuild, which leaves it out, so a package it replaced leaves the index too. A source package file (a .dsc, .diff.gz or .tar.* archive) only queues the rebuild, which lists the source once all its parts are stored. Folders and other files change nothing.

func (Handler) Inspect

func (h Handler) Inspect(
	ctx context.Context,
	env format.Env,
	_ repo.Config,
	w format.Write,
) (any, error)

Inspect reads and checks the stored content a write puts at a .dsc, .deb or .ddeb path, before the write's transaction, and returns the parsed source or binary for Admit and Deployed, so a package is read once per write. A checksum deploy and any other path inspect nothing. A write with no content digest, or whose source package is invalid, is refused with 400; a binary package that cannot be read is kept as malformed (readBinary).

func (Handler) Owed

func (Handler) Owed(c repo.Config, cached bool, path string) []format.WorkRef

Owed makes a read of a local or federated repository's apt metadata wait for its pending rebuild, so a client never reads metadata that lags a completed write. A remote's cache owes nothing.

func (Handler) Reindex

func (h Handler) Reindex(ctx context.Context, env format.Env, c repo.Config) error

Reindex rebuilds repository c's package index from its binaries (a remote's from its cache): a package per name and a version per version, whose files are its binaries and whose creation time is the oldest file's. It reads every binary, failing on the first that is missing, and restores the deb.name and deb.version properties, or deb.index.status on a malformed one, which it leaves out. A local or federated repository's metadata rebuild is then queued.

func (Handler) Work

func (h Handler) Work(ctx context.Context, env format.Env, work work.WorkItem) error

Work rebuilds apt metadata from the committed item tree. It never builds a remote repository's index from a partial cache: remote metadata is fetched from the upstream with the source/cache policy instead.

func (Handler) WorkKinds

func (Handler) WorkKinds() []string

WorkKinds returns KindIndex and KindReindexNoProps, the kinds Work runs.

type IndexForm

type IndexForm struct {
	Suffix string
	Body   []byte
}

IndexForm is one file a repository writes for an index: the suffix after the index's name, empty for the plain index, and the file's bytes.

func IndexForms

func IndexForms(body []byte, formats []string) ([]IndexForm, error)

IndexForms returns the files a repository writes for the plain index body: body itself, its gzip copy, and a copy in each format formats, a repository's optionalIndexCompressionFormats, names. Each form comes once in that fixed order whatever the setting's order or repeats. A value other than bz2, lzma and xz adds nothing [I]: gz is written anyway, and 7.x offers no other.

type IndexedBinary

type IndexedBinary struct {
	Binary    Binary
	Path      string
	Size      int64
	Checksums kernel.Checksums
}

IndexedBinary binds a validated control record to the exact stored item and its server-computed digests. The upload cannot supply these values.

type IndexedSource

type IndexedSource struct {
	Source    Source
	Path      string
	Size      int64
	Checksums kernel.Checksums
	Archives  []SourceArchive
}

IndexedSource binds a parsed .dsc to the stored bytes for it and each named archive. Source records are emitted only after all declared bytes match.

type PackageIndexRef

type PackageIndexRef struct {
	Path   string
	SHA256 string
	Size   int64
}

PackageIndexRef binds a Packages representation to the SHA256 and size declared by its member Release file.

func ReleaseIndexRefs

func ReleaseIndexRefs(distribution string, body []byte) ([]PackageIndexRef, error)

ReleaseIndexRefs returns every checksum-bound metadata path in a Release. Snapshot creation uses these declarations to materialize an immutable view.

func ReleasePackageIndexes

func ReleasePackageIndexes(distribution string, body []byte) ([]PackageIndexRef, error)

ReleasePackageIndexes selects the plain Packages index for each advertised component and architecture, falling back to gzip when plain is absent. The caller must compare the fetched bytes with each declared digest.

func (PackageIndexRef) BasePath

func (r PackageIndexRef) BasePath() string

BasePath is the uncompressed Packages or Sources path for a Release member.

type PackageRecord

type PackageRecord struct {
	Name, Version, Architecture string
	Filename, SHA256            string
	Size                        int64
	Raw                         []byte
}

PackageRecord is a validated stanza in an upstream Packages index. Raw retains package fields for virtual index composition, while Filename and SHA256 bind the advertised download to one repository-relative artifact.

func DecodeInstallerPackagesIndex

func DecodeInstallerPackagesIndex(ctx context.Context, body []byte) ([]PackageRecord, error)

DecodeInstallerPackagesIndex checks an installer's Packages index (InstallerPackagesIndexPath) as DecodePackagesIndex checks a binary-<arch> one, except that its rows name .udeb files, the installer's packages.

func DecodePackagesIndex

func DecodePackagesIndex(ctx context.Context, body []byte) ([]PackageRecord, error)

DecodePackagesIndex accepts the plain index and each compression an index name may carry. The bound applies after decompression, so a small compressed bomb cannot enter the remote cache or a virtual index. ctx ends a wait for the xz dictionary budget.

func ParsePackagesIndex

func ParsePackagesIndex(body []byte) ([]PackageRecord, error)

ParsePackagesIndex checks the complete apt Packages representation before it can be cached or combined into a virtual index. A malformed stanza must not make apt resolve a package that the registry cannot safely address.

type ReleaseEntry

type ReleaseEntry struct {
	Path string
	Body []byte
}

ReleaseEntry is a path under dists/<distribution> and its generated body.

type Settings

type Settings struct {
	// DisableMetadataValidation is 7.x's debian.metadata.validation=false
	// (JFrog's "Use Debian Metadata Validation", on by default): a binary
	// whose control data has a field with no value, or no Maintainer or
	// Description, is indexed rather than marked malformed
	// (readBinaryArchive).
	DisableMetadataValidation bool
}

Settings are the Debian format's server-wide options (ecosystem.Settings). The zero value is 7.x's default.

type SignedRelease

type SignedRelease struct {
	InRelease  []byte
	ReleaseGPG []byte
}

SignedRelease is the two signatures apt can verify beside Release.

func SignRelease

func SignRelease(body []byte, armoredPrivate, passphrase string) (SignedRelease, error)

SignRelease binds an apt Release file to the repository's configured GPG private key. Callers publish all three files in one derivation cycle.

type Source

type Source struct {
	Name, Version, Format string
	Control               []byte
	Parts                 []SourcePart
}

Source is the parsed source control file and its declared archive parts.

func ReadSource

func ReadSource(ctx context.Context, r io.Reader, size int64) (Source, error)

ReadSource parses an unsigned or OpenPGP clear-signed .dsc without accepting a second stanza or unbounded input. The repository verifies archive digests separately before any Sources entry is published.

type SourceArchive

type SourceArchive struct {
	Name      string
	Size      int64
	Checksums kernel.Checksums
}

SourceArchive is one archive a source package's .dsc names, as the repository stores it beside the .dsc: its file name, and the size and digests of the stored bytes, which must equal the .dsc's declarations before the source is indexed. The Sources record takes its size and digests from here, never from the .dsc.

type SourceIndexRecord

type SourceIndexRecord struct {
	Files []string
}

SourceIndexRecord lists the artifact paths advertised by one validated Sources stanza. It lets the HTTP layer enforce read permissions before exposing a source index to an apt client.

func DecodeSourcesIndex

func DecodeSourcesIndex(ctx context.Context, body []byte) ([]SourceIndexRecord, error)

DecodeSourcesIndex bounds and validates plain or gzip apt source indexes. ctx ends a wait for the xz dictionary budget.

type SourcePart

type SourcePart struct {
	Name, MD5, SHA256 string
	Size              int64
}

SourcePart is one archive named by a .dsc file. Its declarations are not trusted until the repository has compared them to stored server checksums.

Directories

Path Synopsis
Package debianhttp serves the Debian protocol over the item kit: the Packages and Sources indexes, under the download policy at their own path and handed only to a caller with Read permission on every package they list; a virtual repository's apt metadata, composed from its members and signed with its key pair when it names one, the packages that metadata lists, and every other file under dists/ from the first member that holds it; the artifactory spec's metadata calculation (POST /api/deb/reindex/{repoKey}); and snapshots, which copy a distribution's metadata into a local repository (POST /api/deb/{repoKey}/snapshot), run as queued work, and are read under /api/deb/{repoKey}/snapshots/{tag}/.
Package debianhttp serves the Debian protocol over the item kit: the Packages and Sources indexes, under the download policy at their own path and handed only to a caller with Read permission on every package they list; a virtual repository's apt metadata, composed from its members and signed with its key pair when it names one, the packages that metadata lists, and every other file under dists/ from the first member that holds it; the artifactory spec's metadata calculation (POST /api/deb/reindex/{repoKey}); and snapshots, which copy a distribution's metadata into a local repository (POST /api/deb/{repoKey}/snapshot), run as queued work, and are read under /api/deb/{repoKey}/snapshots/{tag}/.

Jump to

Keyboard shortcuts

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