Skip to content

Investigate MPL -> BUSL Changes/Impact #617

Closed

Description

@jeefy

We may have some projects that may be impacted by a license change.

We should investigate the impact on our projects and provide guidance if they are impacted.

Relevant Links:
https://www.hashicorp.com/blog/hashicorp-adopts-business-source-license
https://github.com/cncf/foundation/blob/main/allowed-third-party-license-policy.md
https://github.com/cncf/foundation/blob/main/agpl-recommendations.md
#187 (License exception for hashicorp/terraform projects)

EDIT: Let's keep this a data-gathering Issue only please 😄 See #617 (comment) for context.

EDIT EDIT: We've published some initial guidelines here: https://github.com/cncf/foundation/blob/main/source-available-recommendations.md

Activity

  1. dims commented on Aug 11, 2023

    @dims
    Member

    Kubernetes Infra (sig-k8s-infra) has a lot of usages of terraform:
    https://github.com/search?q=repo%3Akubernetes%2Fk8s.io%20terraform&type=code

    Kubernetes image-builder subproject of CAPI uses packer to build AMI(s):
    https://cs.k8s.io/?q=packer&i=nope&files=&excludeFiles=&repos=kubernetes-sigs/image-builder

    Some good news though, Kubernetes used to vendor libraries from hashicorp under MPL for a long time in its history, but over time we started pruning them a while ago, the last of which went in here:
    kubernetes/kubernetes#103548

    And we have tools to prevent regressions to the vendored depdenencies:
    https://github.com/kubernetes/kubernetes/blob/master/hack/unwanted-dependencies.json#L30

    Initial slack discussion:
    https://kubernetes.slack.com/archives/C5P3FE08M/p1691699636105219

  2. rikatz commented on Aug 11, 2023

    @rikatz
    Contributor

    From a quick search on Vagrant usage:

    Sig-windows-dev-tools rely on Vagrant to build the environment https://github.com/kubernetes-sigs/sig-windows-dev-tools

    Kubespray (github.com/kubernetes-sigs/kubespray) offers a way to bootstrap using Vagrant

    IIUC from the license, dev workflow licensing will not be changed and both tools uses Vagrant for development and not to offer production services, but it is worth checking as some cloud provider may be using at least kubespray internally and this may impact them

  3. BenTheElder commented on Aug 11, 2023

    @BenTheElder

    While kubernetes core doesn't depend on any hashicorp libraries, plenty of subprojects do. https://cs.k8s.io/?q=%22github.com%2Fhashicorp&i=nope&files=&excludeFiles=&repos=

    From a quick scan, I think these are all MPL things that remain MPL for now.

    EDIT: We also have some vagrant usage in https://github.com/kubernetes-sigs/kind CI, but nothing critical and we can probably move to lima, we just need to non-interactively boot a cgroupsv2 enabled VM and ssh install/test docker/podman/kind. The kubernetes-sigs/image-builder project is probably the most immediate concern.

  4. vielmetti commented on Aug 11, 2023

    @vielmetti

    The Register has a story at https://www.theregister.com/2023/08/11/hashicorp_bsl_licence/ (in the inimitable El Reg style).

  5. jayunit100 commented on Aug 12, 2023

    @jayunit100

    Sig windows dev tools uses vagrant

  6. amye commented on Aug 12, 2023

    @amye
    Contributor

    Sig windows dev tools uses vagrant

    Slightly more details would be helpful!

  7. dims commented on Aug 12, 2023

    @dims
    Member

    Looking through the https://cs.k8s.io/?q=hashicorp%5C%2F&i=nope&files=go.mod&excludeFiles=&repos= and the exceptions list from https://github.com/cncf/foundation/tree/main/license-exceptions the grand total of 24 repos that seem to get vendored

    hashicorp/consul/api
    hashicorp/errwrap
    hashicorp/go-cleanhttp
    hashicorp/go-getter
    hashicorp/go-hclog
    hashicorp/go-immutable-radix
    hashicorp/go-msgpack
    hashicorp/go-multierror
    hashicorp/go-plugin
    hashicorp/go-retryablehttp
    hashicorp/go-rootcerts
    hashicorp/go-safetemp
    hashicorp/go-secure-stdlib
    hashicorp/go-sockaddr
    hashicorp/go-uuid
    hashicorp/go-version
    hashicorp/golang-lru
    hashicorp/hcl
    hashicorp/memberlist
    hashicorp/raft
    hashicorp/raft-boltdb
    hashicorp/serf
    hashicorp/vault
    hashicorp/yamux
    
  8. yurishkuro commented on Aug 12, 2023

    @yurishkuro
    Contributor

    Jaeger backend (https://github.com/jaegertracing/jaeger) uses two Hashicorp libraries:

    • github.com/hashicorp/go-hclog v1.5.0
    • github.com/hashicorp/go-plugin v1.4.10

    It is my understanding that libraries are not subject to MPL -> BSL change, but we're watching those repos anyway. We also have a plan to phase out hashicorp/go-plugin (jaegertracing/jaeger#4647).

  9. aaguiarz commented on Aug 12, 2023

    @aaguiarz
    Contributor
  10. AkihiroSuda commented on Aug 12, 2023

    @AkihiroSuda
    Contributor
  11. AkihiroSuda commented on Aug 12, 2023

    @AkihiroSuda
    Contributor

    Lima has a template for Nomad, but we are going to ditch it away

  12. terrytangyuan commented on Aug 12, 2023

    @terrytangyuan
    Member

    Argo has one direct and multiple indirect dependencies on HashiCorp projects. My understand is that those dependencies are not subject to MPL -> BSL change. We are tracking those closely at argoproj/argoproj#236.

  13. ckotzbauer commented on Aug 12, 2023

    @ckotzbauer

    Kured uses one library indirectly, I opened kubereboot/kured#817

  14. stefanprodan commented on Aug 12, 2023

    @stefanprodan
    Contributor

    @dims I think CNCF needs to replace hashicorp/vault with hashicorp/vault/api in the license exceptions, only the API package remains MPL, while the rest is now BUSL 1.1.

  15. justincormack commented on Aug 12, 2023

    @justincormack

    The repos that have changed licenses are below (note as Stefan says, there may be parts that are not relicensed in these repos)

    hashicorp/terraform
    hashicorp/consul
    hashicorp/vault
    hashicorp/vagrant
    hashicorp/nomad
    hashicorp/packer
    hashicorp/waypoint
    hashicorp/boundary
    hashicorp/vault-csi-provider
    hashicorp/vault-secrets-operator

    All the general Go libraries etc are unchanged.

    Sub parts that remain MPL include (not exhaustive check)
    hashicorp/consul/api
    hashicorp/vault/api
    hashicorp/vault/sdk

  16. 56 remaining items

  17. amye commented on Aug 28, 2023

    @amye
    Contributor

    N.B. The 2023-06-27 license exceptions file inaccurately indicates that that github.com/hashicorp/vault is licensed under MPL-2.0 and has GB exception approval as of 2023-06-27. In reality, github.com/hashicorp/vault is BUSL-1.1, while only its sub-package github.com/hashicorp/vault/api is MPL-2.0. cc @amye

    That was as of the time of publication and predates this issue.
    Only thing we're looking for in here is "investigate the impact on our projects".

    If you need a separate issue, feel free!

  18. leogr commented on Aug 29, 2023

    @leogr
    Contributor

    N.B. The 2023-06-27 license exceptions file inaccurately indicates that that github.com/hashicorp/vault is licensed under MPL-2.0 and has GB exception approval as of 2023-06-27. In reality, github.com/hashicorp/vault is BUSL-1.1, while only its sub-package github.com/hashicorp/vault/api is MPL-2.0. cc @amye

    That was as of the time of publication and predates this issue. Only thing we're looking for in here is "investigate the impact on our projects".

    If you need a separate issue, feel free!

    @amye Thank you for the clarification!

    My point is: since an exception for github.com/hashicorp/vault already existed when it was MPL 2.0'd, and its sub-package github.com/hashicorp/vault/api is still MPL-2.0'd (ie. the sub-package has not been relicensed), the exception should be still valid today for only the part of github.com/hashicorp/vault/api. Thus, this package should not impact our projects, and we are fine. Is that correct?

    If this is not the case, I will open a separate issue 🙏

  19. RichiH commented on Aug 29, 2023

    @RichiH

    Seems we never documented this here, Prometheus is using

    which are both explicitly under MPL 2.0; scanners would catch it anyway if they weren't

  20. dhiguero commented on Sep 12, 2023

    @dhiguero
    Contributor

    Hi, from the KubeVela project we have the following dependencies:

    • github.com/hashicorp/go-version
    • github.com/hashicorp/hcl/v2
  21. added a commit that references this issue on Sep 19, 2023
  22. FeynmanZhou commented on Nov 17, 2023

    @FeynmanZhou
    Contributor

    notation-hashicorp-vault uses vault API as a direct dependency. According to the HashiCorp statement and Vault API license file, HashiCorp APIs, SDKs, and almost all other libraries will remain MPL 2.0, as well as Vault API. I assume it is compliant to use Vault API as a dependency in notation-hashicorp-vault.

    If there is any concern on Vault API's license, please let us know. Thanks.

    linking notaryproject/notation-hashicorp-vault#14

  23. dims commented on Nov 17, 2023

    @dims
    Member

    @FeynmanZhou you should cross check if the official list of exceptions has what you need already ... if not you will need to ask for an exception

    https://github.com/cncf/foundation/tree/main/license-exceptions

  24. stefanprodan commented on Nov 17, 2023

    @stefanprodan
    Contributor

    @dims are these lists up to date? Hashicorp Vault is marked MPL 2.0 while it's BUSL https://github.com/hashicorp/vault/blob/main/LICENSE

    ##### Package: hashicorp/vault
    PackageName: hashicorp/vault
    SPDXID: SPDXRef-Package7
    PackageDownloadLocation: NOASSERTION
    FilesAnalyzed: false
    PackageLicenseConcluded: MPL-2.0
    PackageLicenseDeclared: NOASSERTION
    PackageCopyrightText: NOASSERTION
    PackageComment: not auto-allowlist because: Non-allowlist license(s); approved by GB exception 2023-06-27

    "package": "github.com/hashicorp/vault",
    "license": "MPL-2.0 ",
    "comment": "not auto-allowlist because: Non-allowlist license(s); approved by GB exception 2023-06-27"
    },

  25. dims commented on Nov 17, 2023

    @dims
    Member

    @stefanprodan looks you have to use the MPL version of the older tags/releases as BUSL is not been granted an exception. If you are not able to, then please file for a new exception specifying which release(s) you want to use which have the newer license.

  26. stefanprodan commented on Nov 17, 2023

    @stefanprodan
    Contributor

    @dims Vault's API package is MPL, see https://github.com/hashicorp/vault/blob/main/api/.copywrite.hcl

    I this the exclusion list should point to the vault/api package, like it does for Consul

    ##### Package: hashicorp/consul/api
    PackageName: hashicorp/consul/api
    SPDXID: SPDXRef-Package8
    PackageDownloadLocation: NOASSERTION
    FilesAnalyzed: false
    PackageLicenseConcluded: MPL-2.0
    PackageLicenseDeclared: NOASSERTION
    PackageCopyrightText: NOASSERTION
    PackageComment: not auto-allowlist because: Non-allowlist license(s); approved by GB exception 2023-06-27

  27. dims commented on Nov 17, 2023

    @dims
    Member

    @stefanprodan ok i kicked off a PR to force the issue - #670

  28. stefanprodan commented on Nov 17, 2023

    @stefanprodan
    Contributor

    Thanks @dims

  29. jeefy commented on May 24, 2024

    @jeefy
    MemberAuthor

    We're going to close this out as we've collected enough info for the Legal Committee to navigate these waters. We really appreciate everyone's input! Y'all rock <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions