-
Notifications
You must be signed in to change notification settings - Fork 44
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
SteveLasker
merged 6 commits into
notaryproject:master
from
SteveLasker:Definitions-&-Terms
Feb 24, 2020
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5cc9019
A set of definitions & terms for refernce across the repo
a858db2
A set of definitions & terms for refernce across the repo
fe788f7
A set of definitions & terms for refernce across the repo
da69d32
PR feedback for OCI Index/Artifact references
SteveLasker 647c2c7
Incorporate PR feedback for path/namespace and others
5ac1b35
Merge branch 'Definitions-&-Terms' of https://github.com/SteveLasker/…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. | ||
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.