-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
A broader set of services are starting to consume image annotations. Specifically Azure container scanning honors the lifecycle annotation to treat EOL images specially. As a result, the images produced with the .NET Docker infrastructure should have these lifecycle annotations added.
Related links:
-
Thread & Vulnerability Management guidance (MSFT internal link)
How can I mark an image in my ACR as end of life or dictate how long it should be scanned and reported on? Attach annotations* to the image called 'lifecycle annotations' which requires: The ACR Metadata Service to be onboarded for your registry (see callout below) [ORAS CLI](https://oras.land/docs/installation/) must be installed ORAS CLI must be authenticated to your registry [(See How to Authenticate ORAS CLI)](https://learn.microsoft.com/en-us/azure/container-registry/container-registry-oci-artifacts#sign-in-to-a-registry) You can use the ORAS CLI to attach lifecycle annotations by running the following command: Variables: $IMAGE refers to a fully qualified image name or digest (e.g. myregistry.azurecr.io/myimage:v1 OR myregistry.azurecr.io/myimage@sha256:fdbd1bc674f77e7a3b8129ecac062a9b7c22de74968e8ea3a46f071f61f3e99f) Lifecycle.end-of-life.date should be in the expected format of yyyy-mm-dd oras attach --artifact-type application/vnd.microsoft.artifact.lifecycle --annotation "vnd.microsoft.artifact.lifecycle.end-of-life.date=2023-05-12T21:15:10.8343521Z" $IMAGE
Work Items:
- Add a new command for annotating image digests for EOL #1334
- EOL annotations pipeline #1340
- Command for generation of EOL annotation data file #1358
- Remove force annotate option #1364
- Add command to wait for EOL annotation ingestion #1367
- Push EOL annotations in publish stage #1413
- EOL annotation race condition #1417
- Roll out
- [dotnet-docker/nightly] Annotate and remove historical images
- [dotnet-docker/nightly] Enable annotations in pipeline: Enable EOL annotation publishing dotnet-docker#5837
- [buildtools-prereqs] Annotate and remove historical images
- [buildtools-prereqs] Enable annotations in pipeline: Enable matrix trimming and EOL annotations dotnet-buildtools-prereqs-docker#1209
- [dotnet-docker/main] Annotate and remove historical images
- [dotnet-docker/main] Enable annotations in pipeline
- [dotnet-framework-docker] Annotate and remove historical images
- [dotnet-framework-docker] Enable annotations in pipeline: Enable EOL annotations in pipeline microsoft/dotnet-framework-docker#1184
- [buildtools-prereqs/imagebuilder] Annotate and remove historical images
- [buildtools-prereqs/imagebuilder] Enable annotations in pipeline: Enable EOL annotations for Image Builder pipeline #1496
- Clean up
_
placeholder tags that we pushed to MAR for historical images that were imported from MAR
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done