Skip to main content

Holos replaces its CLA with the DCO

Jeff McCune
Holos maintainer & author

Holos no longer has a Contributor License Agreement (CLA). To contribute, you now sign off each commit under the Developer Certificate of Origin (DCO):

git commit -s

Why we changed​

The old CLA was an agreement with one company, Open Infrastructure Operations LLC. You kept ownership of your work. You also gave the company, and the people who received software it distributes, these licenses, both non-exclusive and royalty-free:

  • A perpetual, irrevocable copyright license that included the right to sublicense.
  • A patent license, irrevocable except as the agreement stated.

You also waived, or agreed not to enforce, your moral rights against the company, its assigns and their licensees. The company could transfer the agreement and its rights under it to someone else without your consent.

I want engineers at banks and other regulated companies to be able to contribute to Holos. An engineer there may need a legal team to approve a sublicensable, transferable grant to one company before agreeing to it. I don't want Holos to ask for that grant. We removed the CLA, and no individual or corporate CLA takes its place.

Open source foundations also use the DCO. Holos is not a CNCF or FINOS project, but this is what each one says:

  • The CNCF charter, section 11(b), requires all new inbound code contributions to the CNCF to have a DCO sign-off and to be made under Apache-2.0. Each project decides whether it also requires a CLA.
  • FINOS software projects use the DCO by default. A project may use a CLA when its maintainers request one and coordinate with FINOS.

What you certify​

With a sign-off, you certify the Developer Certificate of Origin 1.1. In short, one of these is true: you created the change, in whole or in part, and have the right to submit it under the open source license indicated in the file; it is based on earlier work that, to the best of your knowledge, is covered by an appropriate open source license, and that license gives you the right to submit the work, with your modifications, under the same license (unless you are permitted to submit it under a different one), as indicated in the file; or someone who certified one of these three gave it directly to you and you did not change it. You also agree that the project and your contribution are public, and that a record of the contribution, including the personal information you submit with it and your sign-off, is kept indefinitely and may be redistributed consistent with the project or the open source licenses involved. The summary is not a substitute for the text. Read it before you sign off.

The DCO does not change your employer's rules. If you need your employer's permission to submit your work, you still need it. This post is not legal advice.

Contributions come in under the Apache License 2.0, the license in the LICENSE file of each repository listed below. That license has grants of its own. Under section 5, a contribution that you intentionally submit comes in under its terms unless you explicitly state otherwise. They include a perpetual, irrevocable copyright license with the right to sublicense (section 2) and a patent license (section 3). What ends is the separate agreement with one company.

What to do​

Commit with -s. Git adds a line like this to the end of the commit message:

Signed-off-by: Your Name <[email protected]>

The email in that line must match the commit author's email. Upper and lower case do not matter. Sign off only for yourself. A sign-off is not a cryptographic signature. The main branches of holos and secrets-manager require signed commits too, so there you use git commit -s -S.

A check named dco / dco is now required for pull requests to main in six repositories:

In holos, the workflows on a pull request from an outside contributor wait for a maintainer to approve them, every time. Until then, dco / dco shows as pending. In the other five repositories, a first-time contributor also waits for approval.

What the check covers​

The check reads the commits in a pull request. It looks for a sign-off with the author's email on each one. It cannot tell whether the certification is true.

It skips merge commits, and it does not check pull requests that a bot opened. It fails a pull request with more than 250 commits. It makes no claim about the history of main: for example, the merge commits that GitHub made there when we rolled out the check have no sign-off.

If the check fails​

Sign in to GitHub. Open the details of the failed dco / dco check, then open the Summary page of that workflow run. The report there names the commits that failed. If there is no report, read the check's error message. When it can, the report gives commands for your pull request. Otherwise it asks you to talk to a maintainer. Follow the report. If a step goes differently, stop and ask a maintainer. The commands are only for commits that you wrote.

The simplest case is one failing commit that is the newest one on your branch, and is not a merge commit. First, on your pull request branch, check three things:

  • git rev-parse HEAD prints the commit ID that the pull request has at its head. The report shows the full ID.
  • git status --short -uno prints nothing.
  • git var GIT_COMMITTER_IDENT shows the commit author's email. If it does not, and that address is yours, set it with git config user.email "[email protected]". Then run git var GIT_COMMITTER_IDENT again.

Then add your sign-off:

git commit --amend --allow-empty -s --no-edit

If your commits need signatures, as in holos and secrets-manager, add -S just before --amend.

Amending rewrites the commit, so you need a force push. Do a dry run first. It sends nothing, and these options need Git 2.30 or later:

git push --dry-run --force-with-lease --force-if-includes

Expect one line with ->. It starts with + and the old head commit ID, and it names your pull request branch in the repository it comes from, such as your fork. If anything differs, stop and ask. If it matches, push:

git push --force-with-lease --force-if-includes

When more than one commit needs to be rewritten, the report may give a git rebase --signoff command that ends in a commit ID. Use the report's command, with its other steps. Do not put main or origin/main in place of the ID. In a clone of a fork, those can be old, and the rebase can then rewrite other people's commits and add your sign-off to them. If the commits that the fix would rewrite have more than one author email, the report gives no commands. Each author has to sign off their own commits, and a maintainer cannot do it for them.

Work from before the change​

Contributions made before the switch and already merged keep the terms they came in under. That includes any license granted under the CLA. Nobody needs to sign anything again or add a sign-off to work that is already merged. A pull request that is still open needs a sign-off on each of its commits, except merge commits. The old CLA remains in the Git history.

If you have been waiting to contribute, the contributing guide is the place to start. Questions are welcome in GitHub Discussions and on Discord.