Skip to content

Commit fbc6ce4

Browse files
committed
layers: describe policy enforcement for foreign layer media type
Signed-off-by: Stephen J Day <[email protected]>
1 parent 7cb680d commit fbc6ce4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

layer.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,13 @@ Note that this opaque file will apply to _all_ children, including sub-directori
156156
Implementations SHOULD generate layers using _explicit whiteout_ files, but MUST accept both.
157157

158158
Any given image is likely to be composed of several of these Image Filesystem Changeset tar archives.
159+
160+
# Foreign Layers
161+
162+
Certain layers, due to legal requirements, may not be regularly distributable.
163+
Typically, one can download such layers but they should never be uploaded.
164+
165+
Layers that have these restrictions SHOULD be tagged with an alternative mediatype of `application/vnd.oci.image.layer.foreign.tar+gzip`.
166+
[Descriptors](descriptor.md) referencing these layers MAY include `urls` for downloading these layers.
167+
It is implementation defined whether or not implementations upload layers tagged with this media type.
168+

media-types.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ The following `mediaType` MIME types are used by the formats described here, and
55
- `application/vnd.oci.descriptor.v1+json`: [Content Descriptor](descriptor.md)
66
- `application/vnd.oci.image.manifest.list.v1+json`: [Manifest list](manifest.md#manifest-list)
77
- `application/vnd.oci.image.manifest.v1+json`: [Image manifest format](manifest.md#image-manifest)
8-
- `application/vnd.oci.image.layer.tar+gzip`: ["Layer", as a gzipped tar archive](layer.md)
98
- `application/vnd.oci.image.config.v1+json`: [Container config JSON](serialization.md)
9+
- `application/vnd.oci.image.layer.tar+gzip`: ["Layer", as a gzipped tar archive](layer.md)
10+
- `application/vnd.oci.image.layer.foreign.tar+gzip`: ["Layer", as a gzipped tar that MUST NOT be distributed](layer.md#foreign-layers)
1011

1112
## Compatibility Matrix
1213

0 commit comments

Comments
 (0)