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

Add standardized OCI annotations to container images #9625

Open
AlexGustafsson opened this issue Dec 19, 2024 · 0 comments
Open

Add standardized OCI annotations to container images #9625

AlexGustafsson opened this issue Dec 19, 2024 · 0 comments

Comments

@AlexGustafsson
Copy link

AlexGustafsson commented Dec 19, 2024

Add the org.opencontainers.image.source label to allow scanning tools to identify the source repository of the image. This is one of the labels that the OCI has standardized for adding metadata to images: https://github.com/opencontainers/image-spec/blob/main/annotations.md.

docker pull calico/kube-controllers
docker inspect calico/kube-controllers --format '{{ json .Config.Labels }}'

Output:

{"maintainer":"Casey Davenport <[email protected]>"}

Expected output:

{"maintainer":"Casey Davenport <[email protected]>", "org.opencontainers.image.source": "https://github.com/projectcalico/calico"}
docker pull calico/node
docker inspect calico/node --format '{{ json .Config.Labels }}'

Output:

{"description":"Calico node handles networking and policy for Calico","maintainer":"[email protected]","name":"Calico node","release":"1","summary":"Calico node handles networking and policy for Calico","vendor":"Project Calico","version":""}

Expected output:

{"description":"Calico node handles networking and policy for Calico","maintainer":"[email protected]","name":"Calico node","release":"1","summary":"Calico node handles networking and policy for Calico","vendor":"Project Calico","version":"","org.opencontainers.image.source": "https://github.com/projectcalico/calico"}
@AlexGustafsson AlexGustafsson changed the title Add OCI annotations to container images Add standardized OCI annotations to container images Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants