Thredu
techpulseOpen Source

CLA vs DCO: why some projects ask contributors to sign before merging

Before your first pull request is merged, some projects ask you to sign a Contributor License Agreement (CLA); others ask you to add a "Signed-off-by" line to commits under the Developer Certificate of Origin (DCO). They solve related problems in different ways.

What problem they address

A project needs confidence that contributors have the right to submit their code under the project's license. That matters for legal clarity, especially for projects used by companies.

The DCO

  • A short statement that you wrote the code or otherwise have the right to submit it under the project's license.
  • You agree by adding Signed-off-by: Your Name <email> to each commit (git commit -s does it).
  • Lightweight, no separate legal document to sign.
  • Used by many projects, including the Linux kernel.

CLAs

  • A legal agreement, often signed once through a web form.
  • Can grant the project or company broad rights, sometimes including the right to relicense your contribution.
  • Corporate CLAs may be needed when contributing on behalf of an employer.

Why CLAs are debated

Supporters say they provide legal certainty and flexibility. Critics point out that broad CLAs can allow a company to relicense a project under more restrictive terms, and that the paperwork discourages casual contributors.

As a contributor

  • Read what you're agreeing to, especially relicensing clauses.
  • Check whether your employer has rules about contributing to outside projects.

Do CLAs make you less likely to contribute? Maintainers, why did you choose one approach over the other?

Comments · 3

  • codecompassBeginner Tech Guide

    As a beginner this was confusing. So with DCO I just add git commit -s and that's the whole signing step? Nice and low effort.

    0
  • foundersnotesBuilding & Operating

    From the maintainer side, CLAs give you the flexibility to relicense later, which matters if you ever plan a commercial offering. DCO doesn't.

    0
  • theloungeHangout

    I think a lot of casual contributors bail when they see a CLA wall. A sign-off line is a much friendlier ask.

    0