Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definitions & terms #9

Merged
merged 6 commits into from
Feb 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions definitions-terms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Definitions and Terms

A collection of definitions and terms used within this repository.

## TOC

* [Fingerprint](#fingerprint)
* [Fully Qualified Artifact Reference](#registry-fully-qualified-reference)
* [OCI Annotations](#oci-annotations)
* [OCI Descriptor](#oci-descriptor)
* [OCI Index](#oci-index)
* [OCI Manifest](#oci-manifest)
* [Registry](#registry)
* [Repo/Repository](#repo/repository)
* [Repository Path](#repository-path)
* [SBoM](#sbom)
* [Subject](#subject)
* [Tag](#tag)

## Artifact / Image

Artifacts are a generalization of how images are stored in an instance of the [OCI Distribution Spec][oci-distribution-spec]. An [OCI Image][oci-image] is a type of [OCI Artifact][oci-artifact]. When referencing artifacts, within a [fully qualified reference](#registry-fully-qualified-reference), the artifact is right most element of the namespace, combined with the `:tag`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the artifact is right most element of the namespace

This isn't really accurate. The right-most element of the name is still just part of the name, and can resolve to anything the registry stores. This could be an index, an image manifest, or an artifact.

We should probably include a definition for a name, referencing the distribution spec:

The rules for a repository name are as follows:

  1. A repository name is broken up into path components. A component of a repository name MUST begin with one or more lowercase alpha-numeric characters. Subsequent lowercase alpha-numeric characters are OPTIONAL and MAY be separated by periods, dashes or underscores. More strictly, it MUST match the regular expression [a-z0-9]+(?:[._-][a-z0-9]+)*.
  2. If a repository name has two or more path components, they MUST be separated by a forward slash ("/").
  3. The total length of a repository name, including slashes, MUST be less than 256 characters.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the definition I wrote for repo, below.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this sentence?

When referencing artifacts, within a fully qualified reference, the artifact is right most element of the namespace, combined with the :tag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets have this conversation on Monday.

Reference: [OCI Artifacts][oci-artifact]
![](./media/artifact-ref.png)


## Fingerprint

A short identifier of a given public key.
Reference: [Fingerprint][fingerprint]


## OCI Annotations

A key-value map that can be associated with [OCI Descriptors][oci-descriptor] and [OCI Image manifests][oci-manifest].
OCI spec reference: [OCI Annotations][oci-annotations]

## OCI Descriptor

A structure describing content, including the media type, a content-addressable digest, the size, and other properties. Descriptors are used to describe layers and configuration in a manifest.
OCI spec reference: [OCI Descriptor][oci-descriptor]

## OCI Index

A higher-level collection of [image manifests][oci-manifest], or other [oci indexes][oci-index], typically used to describe platform-specific (architecture and operating-system) images that can be identified collectively and referred to together. The specific image manifests are identified by modified [descriptors][oci-descriptor] with additional properties and restrictions. [OCI Artifacts][oci-artifact] are another use-case for indexes where an OCI Index can reference a collection of artifacts, such as an image, a deployment chart, its SBoM and deployment configuration references.
OCI spec reference: [OCI Image Index][oci-index]

## OCI Manifest

A description of an [artifact][oci-artifact]. The manifest references optional configuration and blobs (layers) as content-addressable references ([descriptors][oci-descriptor]). Artifacts may be container images, helm charts or other artifact types that may be signed and stored in a registry.
OCI spec reference: [OCI Image Manifest][oci-manifest]

## Registry

A registry is a collection of [OCI Indexes][oci-index] and [OCI Manifests][oci-manifest] for a specific org or entity.
A unique registry may be uniquely identified with a domain or a root namespace:
![](./media/unique-registry-domain-ref.png)
![](./media/unique-registry-namespace-ref.png)

## Repo/Repository

A repo/repository refers to the unique location, within a registry. When referring to a repo, the registry is assumed, based on the context.
![](./media/registry-repo-ref.png)

## Repository Path

A path, within the [unique registry org](#multi-tenant-registry), up to, but not including the repository (repo) name.
![](./media/registry-namespace-ref.png)

## Registry: Fully Qualified Reference

In order to deploy an artifact, a fully qualified reference is required. This includes the unique registry, namespace, repo and tag.
![](./media/fully-qualified-artifact-ref.png)

## SBoM

Represents a generic, non-project specific, reference to a Software Bill of Materials. Similar to the automotive industry which tracks the components that make up a vehicle, the SBoM may contain the list of packages used within the artifact, the compiler and version used to build the artifact and other relevant information.
Additional reference: [Software bill of materials][sbom]

## Subject

The data that is signed.

## Tag

Information that represents a version, or platform specific version of the artifact.
eg:
- `example.com/org/namespace/artifact:tag`
- `org.example.com/namespace/artifact:tag`
- `org.example.com/databases/somedb:v1` (multi-arch tag)
- `org.example.com/databases/somedb:v1-alpine` (platform specific tag)
- `org.example.com/databases/somedb:v1-windows` (platform specific tag)
- `org.example.com/databases/somedb:v1-helm` (helm chart to deploy a platform specific image)


[fingerprint]: https://en.wikipedia.org/wiki/Public_key_fingerprint
[oci-annotations]: https://github.com/opencontainers/image-spec/blob/master/annotations.md
[oci-artifact]: https://github.com/opencontainers/artifacts
[oci-descriptor]: https://github.com/opencontainers/image-spec/blob/master/descriptor.md
[oci-distribution-spec]: https://github.com/opencontainers/distribution-spec
[oci-image]: https://github.com/opencontainers/image-spec
[oci-index]: https://github.com/opencontainers/image-spec/blob/master/image-index.md
[oci-manifest]: https://github.com/opencontainers/image-spec/blob/master/manifest.md
[sbom]: https://en.wikipedia.org/wiki/Software_bill_of_materials
Binary file added media/artifact-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/fully-qualified-artifact-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/registry-namespace-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/registry-repo-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/registry-repo-tag-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/unique-registry-domain-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/unique-registry-namespace-ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.