foundation icon indicating copy to clipboard operation
foundation copied to clipboard

License requirements when shipping containers

Open dprotaso opened this issue 2 years ago • 11 comments

This is the public issue for (https://cncfservicedesk.atlassian.net/servicedesk/customer/portal/1/CNCFSD-1652).

There were enough people in the Knative project asking about this so I figured it warranted having a public issue others can comment on (so I'm not the sole proxy).

Original Question

What are the CNCF requirements for license disclosure for dependencies when shipping container images?

Background

Knative has been vendoring licenses and including them in the containers we ship. This been our practice since the project went public in 2018 and was a requirement of Google's OSPO's office.

Some context from Evan Anderson [1]

To provide additional context, this was original implemented to meet the second clause of the BSD 2-clause license:

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

By embedding the license in the container image, people who received the OCI image (for example, by pulling from a repo which the image had been cloned to) would also receive a copy of the license, which would trivially satisfy "reproduce the above copyright notice". Since I'm not a lawyer, I'm not going to venture whether this was an overly-restrictive reading of this clause. (This also similarly trivially satisfies the MIT requirement of including a liability disclaimer notice.)

[1] https://github.com/knative/hack/issues/315#issuecomment-1730007607

Related Info

We now build our containers using a tool called ko - this will also publish a SBOM file https://ko.build/features/sboms/

I believe the SBOM will include some license info. Is having this file available for download sufficient for license compliance?

dprotaso avatar Sep 21 '23 19:09 dprotaso

Looks like the licenses in the SBOM is not a thing at moment - https://github.com/ko-build/ko/pull/766

but what if it were 🤔

dprotaso avatar Sep 21 '23 19:09 dprotaso

So as I'm reading through this, this may no longer be an active question?

amye avatar Sep 26 '23 21:09 amye

We're still looking for input from the CNCF what is required

dprotaso avatar Sep 26 '23 22:09 dprotaso

hey @amye any updates?

dprotaso avatar Oct 26 '23 15:10 dprotaso

@amye can we satisfy the requirements to distribute licenses by having the project and dependency licenses in the SBOM? We can also add the license text to the SBOM in addition to the identifiers if needed.

puerco avatar Nov 21 '23 17:11 puerco

Hi - just following up here again

dprotaso avatar Dec 11 '23 23:12 dprotaso

Hi - just following up here again

Still in discussion with Legal Committee!

amye avatar Dec 12 '23 00:12 amye

What has the discussion been? Is there a timeline on a decision - the original service desk ticket is almost a year old

On Mon, Dec 11, 2023 at 19:08 Amye Scavarda Perrin @.***> wrote:

Hi - just following up here again

Still in discussion with Legal Committee!

— Reply to this email directly, view it on GitHub https://github.com/cncf/foundation/issues/642#issuecomment-1851095130, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAERAVYQQIU3QYWO5IK22TYI6OBTAVCNFSM6AAAAAA5CAM6QGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJRGA4TKMJTGA . You are receiving this because you authored the thread.Message ID: @.***>

dprotaso avatar Dec 12 '23 02:12 dprotaso

Following up - I'm assuming the lack of response indicates there's no requirement and thus projects are not required to have disclosures in our project's container image.

dprotaso avatar Jan 15 '24 21:01 dprotaso

@joannalee333 Can you comment on this?

jeffcshapiro avatar Jun 19 '24 12:06 jeffcshapiro

Staff will be working with the Legal Committee on development of guidance for this issue. Licensing compliance for container images is not as straightforward as it is for code. We'll likely have guidance ready to share later this quarter.

joannalee333 avatar Jul 12 '24 18:07 joannalee333

Hi - is there any follow up guidance?

dprotaso avatar May 01 '25 13:05 dprotaso

Guidance on this topic is now available at https://github.com/cncf/foundation/blob/main/policies-guidance/container-image-guidance.md

joannalee333 avatar Jun 06 '25 14:06 joannalee333