The Kleidos Contributor Agreement, the public register of who has accepted it, and the bot that collects acceptances at cla.kleidos.dev.
Kleidos is published under the GNU GPL, version 3 or later. Every contributor accepts this agreement once, before their first pull request is merged, in any Kleidos repository: it gives José M. Requena Plens, who maintains Kleidos, a non-exclusive licence on each contribution, so that he can publish it under the project's open-source licence and also license it under other terms, including paid commercial licences. You keep your copyright.
Not legal advice. The Addendum was drafted without a lawyer, from the Spanish and EU texts it cites.
Each version is made of two texts accepted together, in a single act. English is the binding language; the Spanish texts are for information. The version signed today is the one registry/config.json names as current_version.
Version 2 (agreements/v2/) is current. It differs from version 1 only in the Addendum, clause 1.5 (you accept by signing in at cla.kleidos.dev and confirming the sentence, and nothing is posted in your name; or, if the site is down, by posting the sentence yourself) and a new clause 1.6 (an entry that names you and that you did not make is looked into with you and removed if it cannot be confirmed). Its set digest is a05d5ba2c12c829a14dd2316bc49afdf726bb2a0da14d71a17098fc427c88408. Signatures under version 1 stay valid.
Version 1:
| File | What it is |
|---|---|
agreements/v1/individual.md |
Contributor Agreements 1.2, individual, non-exclusive, with the Traditional patent licence. Generated by the contributoragreements.org chooser and never edited (its options are in its last link). |
agreements/v1/entity.md |
The same template, entity version, for a company or other organization. |
agreements/v1/addendum.md |
The Kleidos Addendum: twelve clauses that adapt the template to Spanish law and state the purpose of the licence, including the commercial exception and the commitment to keep every published version open source (clause 10). Where the two differ, the Addendum prevails. |
agreements/v1/addendum.es.md |
Traducción informativa del Anexo al español. |
agreements/v1/individual.es.md |
Traducción informativa del Contributor Agreement individual al español: borrador pendiente de revisión, no forma parte del conjunto que se acepta. |
agreements/v1/summary.es.md |
Resumen informativo en español. |
agreements/v1/SHA256SUMS |
The SHA-256 of individual.md, entity.md and addendum.md. |
The text you accept is identified by the set digest, the SHA-256 of SHA256SUMS:
89c1d46b9b1048508d9acdba113620b08a45c57d7e067ee41dd2b816a839a61e
Check it yourself with sha256sum -c SHA256SUMS && sha256sum SHA256SUMS inside agreements/v1/. A change to any of the three texts is a new version, accepted again and only for later contributions (Addendum 4.4).
From version 2 on (the flow the site uses):
- Open your pull request in any Kleidos repository.
- The bot
kleidos-claposts a short comment, in English, with a Sign the agreement button, and the check📝 CLAshows "Action required". The repository's other checks wait. - The button opens
cla.kleidos.dev/sign/<owner>/<repo>/<number>(step 1 of 2): what the agreement is, who still has to sign, and Sign in with GitHub to sign. Signing in only tells the site which GitHub account you are. GitHub asks you to authorize Kleidos CLA sign-in, a separate app of kleidos-dev with no permission at all: it gets nothing beyond what is public anyway, it cannot post, and it is never installed anywhere. - Back on the page (step 2 of 2), read the summary, open the full text if you want, tick the box with the acceptance sentence and click I agree and sign. That confirmation is your signature. Nothing is posted anywhere in your name: the site hands your account id and your sign-in token to this repository's job
record.yml, which asks GitHub itself whose token it is, records your acceptance with GitHub's date and time and a qualified time stamp, and deletes the app's authorization from your account. - Within a minute the confirmation page shows your register entry, the bot's comment turns to "accepted" and
📝 CLAturns green. Where the repository lets the app start an outside contributor's checks, the waiting checks start by themselves; elsewhere a maintainer starts them, and the comment says which. Later pull requests, in any Kleidos repository, are green from the start, and the bot posts no comment on them: you sign once per account.
If the site is down, you can post the acceptance sentence yourself as a new comment on your pull request, alone and unedited; the register records it the same way (method: "comment").
Under version 1 (the flow used until version 2 became current; its signatures stay valid):
- Open your pull request in any Kleidos repository.
- The bot
kleidos-claposts a short comment, in English, with a Sign the agreement button that shows how many authors have signed, and the check📝 CLAshows "Action required". The repository's other checks wait. - The button opens
cla.kleidos.dev/sign/<owner>/<repo>/<number>(step 1 of 2): what the agreement is, who still has to sign, and Sign in with GitHub to sign. Signing in is not signing. GitHub asks you to authorize the appkleidos-cla; it reads your account id and login and, when you click "I agree and sign", posts one comment on that pull request for you. The full text is always at cla.kleidos.dev/agreement (en español, informative). - Back on the page (step 2 of 2), read the summary, open the full text if you want, tick the box and click I agree and sign. The acceptance sentence is posted on the pull request under your account; that comment is your signature. The app's permission is revoked at once, and a confirmation page shows the register entry once it is recorded.
- Within a minute the register records it, the bot's comment turns to "accepted" and
📝 CLAturns green. Where the repository lets the app start an outside contributor's checks, the waiting checks start by themselves; elsewhere a maintainer starts them, and the comment says which. Later pull requests, in any Kleidos repository, are green from the start, and the bot posts no comment on them.
Each author of a pull request signs with their own account: the opener, every commit author and every Co-authored-by: co-author. The sentence is, for version 1 (version 2's is the same with version 2 (SHA-256 a05d5ba2c12c), and is in registry/config.json):
I have read and I accept the Kleidos Contributor Agreement, version 1 (SHA-256 89c1d46b9b10), made of the Contributor Agreement text and its Addendum. I understand that it lets José M. Requena Plens license my contributions under other terms as well, including paid commercial licences. I am of legal age and I am entitled to license what I contribute.
If the site is down, you can post that sentence yourself as a new comment on your pull request, alone and unedited; the register records it the same way (method: "comment"). That fallback means that whatever can comment as your account (a token, the gh CLI, another app you authorized) can also accept for it: keep those in mind as you would your password. The register tells the two methods apart by the app's numeric id (app_id in registry/config.json), never by its name.
- You, for yourself, on the site, if you are of legal age and what you contribute is yours to license.
- A company or other organization signs the entity version outside the site: as a PDF with an electronic signature, or by email from the organization's domain to mail@kleidos.dev, with the GitHub account ids it authorizes. Its covered accounts then sign nothing. If you contribute as part of your job, this is probably you: do not sign on the site.
- Under 18: your parent or guardian accepts by email to mail@kleidos.dev.
- No signature needed (by numeric account id, never by login, in
registry/config.json): the project owner, Dependabot, GitHub Actions, and the review bots CodeRabbit and Greptile, whose suggestions are applied by a person who has signed. Any other automation account fails the check, and a maintainer looks.
The register is public, on the branch signatures of this repository. It stays here, public, on purpose: being public is what lets anyone check each entry, its GitHub-signed commit, the run that wrote it and its time stamp, without trusting the maintainer or the site, and the privacy notice says so before anyone signs. One file per signer, signatures/individual/<github id>.json. A signature made by signing in (version 2 on) is schema 2:
{
"schema": 2,
"kind": "individual",
"github_id": 123456,
"login_at_signing": "alice",
"agreement": "kleidos-ca",
"version": 2,
"set_sha256": "a05d5ba2c12c829a14dd2316bc49afdf726bb2a0da14d71a17098fc427c88408",
"sentence_sha256": "…",
"accepted_at": "2026-12-01T10:22:58Z",
"method": "signin",
"evidence": {
"authorized_at": "2026-12-01T10:22:31Z",
"signin_client_id": "Iv23li…",
"context_pr_url": "https://github.com/kleidos-dev/boards/pull/42",
"site_commit": "…",
"lang": "en"
},
"recorded_at": "2026-12-01T10:23:02Z",
"recorder_run_id": 1,
"recorder_commit": "…"
}Both times are GitHub's, not the site's: accepted_at is the Date of GitHub's answer when record.yml checked your sign-in token, and authorized_at is the time GitHub says that token was created (when you clicked "Authorize"). sentence_sha256 is the hash of the sentence beside the box you ticked; site_commit is the commit of this repository the page was built from, so the exact page can be rebuilt; the pull request is context, not the signature. An acceptance comment (version 1 through the app, or typed by hand under any version) is schema 1:
{
"schema": 1,
"kind": "individual",
"github_id": 123456,
"login_at_signing": "alice",
"agreement": "kleidos-ca",
"version": 1,
"set_sha256": "89c1d46b9b1048508d9acdba113620b08a45c57d7e067ee41dd2b816a839a61e",
"accepted_at": "2026-12-01T10:22:31Z",
"method": "web",
"evidence": {
"pr_url": "https://github.com/kleidos-dev/boards/pull/42",
"comment_url": "https://github.com/kleidos-dev/boards/pull/42#issuecomment-1",
"comment_id": 1,
"comment_body_sha256": "…"
},
"recorded_at": "2026-12-01T10:23:02Z",
"recorder_run_id": 1
}Beside each signature, signatures/individual/<github id>.tsr is an RFC 3161 time-stamp token over the SHA-256 of that file, from a qualified time-stamping service: Sectigo (Europe) SL, http://timestamp.sectigo.com/qualified, on the Spanish trusted list (the EU list of trusted lists points to it) as a qualified time-stamp service, granted since 2021-05-05. A qualified time stamp is presumed to give the date and the integrity of what it covers (eIDAS art. 41.2; LEC art. 326.4). It is written in the same commit as the entry; when the service does not answer, the entry is written without it and a daily run adds it. The service receives only that hash (and the address of GitHub's runner). Check a token yourself:
openssl ts -verify -digest "$(sha256sum 123456.json | cut -d' ' -f1)" -in 123456.tsr -CAfile registry/tsa/sectigo-qualified-time-stamping-root-r45.pemThe pinned root is "Sectigo Qualified Time Stamping Root R45", SHA-256 f871f8976b4068d700d5f281084b4a29eaf4b8f35743330ba062fab46f58c2ed (openssl x509 -noout -fingerprint -sha256 prints it with colons); the service's CA in the trusted list is "Sectigo Qualified Time Stamping CA R35" (subject key identifier 61003f77d9ffea39d291a51cbe9d35c7785ea467). Sectigo's policies and practices, which bind whoever relies on its tokens: https://sectigo.com/eIDASCPS and https://sectigo.com/legal. Its documents do not grant free use in writing ("may charge fees"), and it asks scripts to wait 15 seconds between requests, which the recorder does. If it ever closes, a non-qualified service such as FreeTSA can take its place with a change of timestamping in registry/config.json (its URL, qualified: false and its root under registry/tsa/); its tokens prove existence and integrity too, without the presumption of a qualified one.
And one file per merged pull request, coverage/<owner>/<repo>/<number>.json, with the merge commit, the date and the account ids it covers: the per-contribution record of Addendum 4.2. The schemas are in registry/schema/.
Never stored, anywhere: your real name, email, postal address, IP address, browser, avatar, tokens. The email of your commits is read only to find your GitHub account. Your sign-in token is handed once to record.yml (it is in no log, run name or file) and its grant is deleted as soon as it is checked. The site sets one cookie, strictly necessary, for at most an hour while you sign; there are no analytics and nothing from third parties.
The full privacy notice is PRIVACY.md (en español), also at cla.kleidos.dev/privacy. Controller: José M. Requena Plens, mail@kleidos.dev. You have the rights of access, rectification, erasure, restriction, objection and portability (GDPR arts. 15 to 22).
pull request ──webhook──▶ Worker (cla.kleidos.dev) ──▶ Queue ──▶ evaluate: who must sign, who has
│ ├─ check run 📝 CLA on the head commit
signer ── sign in with GitHub ──▶│ /sign, /auth, /agree ├─ the bot's one comment
(Kleidos CLA sign-in, │ └─ approve the held fork runs
no permission at all) └─ posts nothing
│
record.yml (this repository) ◀── dispatch (account id, the signer's sign-in token)
asks GitHub whose token it is (Check a token, its own secret), deletes the grant,
writes the entry and its qualified time stamp on `signatures`
verify.yml checks the whole branch after every write and weekly
- The Worker never writes the register, and never acts as the signer. The bot's app has no contents write at all, and from version 2 the sign-in app has no permission at all. On "I agree and sign" the Worker hands the account it read and the signer's own token to
record.yml, which asks GitHub (POST /applications/{client_id}/token, with the sign-in app's client secret, an Actions secret of the environmentsignin, which onlymaincan use) whether the token is valid, is of our sign-in app and belongs to that very account, a personal one, signed in within the last two hours; only then does it record, with GitHub's own times, and then it deletes the grant (DELETE /applications/{client_id}/grant). So GitHub, not the Worker, vouches for who signed: a compromised Worker could record nobody but an account that authorized the sign-in app and whose authorization has not been deleted since (and could not know whether it clicked "I agree"), could not backdate an entry (both times are GitHub's), and could not alter or remove a record. The token cannot be checked again later, since its grant is gone; the qualified time stamp is what keeps the entry checkable. The grant is deleted when the signer signs, signs out, or turns out to have nothing to sign; someone who signs in, must sign and leaves without either keeps the authorization in their GitHub account until they revoke it there, and the app's tokens expire, so a refresh token of up to six months exists for it. A Worker compromised at that sign-in, or later while the authorization remains, could record that account with GitHub's times of that later moment; it still could not record anyone who never authorized the app or whose signature removed the grant. Under version 1, the appkleidos-claposts the sentence with the signer's own short-lived user token and the job re-reads that comment, with the same guarantees. - Every fact is re-read on every event. Queue messages carry identifiers only; a lost, repeated or replayed webhook only causes a recomputation. Webhooks are checked against their HMAC signature before anything is parsed.
- CI waits through GitHub's own fork approval ("Require approval for all external contributors"). In a repository whose
auto_approveis true, the app approves the held runs of a pull request once every author has signed, except when its head commit changes anything under.github/(read from that commit's own tree against its merge base, so a head that moves cannot change the answer), or when a held run may target a self-hosted runner: those wait for a maintainer.pull_request_targetis used nowhere. - The merge block is the required status check
📝 CLA, pinned to the app in each repository's ruleset. - The sign page runs no JavaScript at all, loads nothing from elsewhere (its stylesheet, fonts and mark come from its own origin), and sends a strict Content-Security-Policy. The session and the OAuth transaction live in two encrypted
__Host-cookies; the server keeps no session. Every page exists in English and Spanish at one path (?lang=en|es, else the browser'sAccept-Language); the links carry the language, so no cookie remembers it. - The comment's button is an SVG the Worker draws, in English, at
/button/v2/<state>-<signed>-<total>.svg(thev1addresses of older comments still answer). GitHub shows comment images through its camo proxy, which caches by URL, so the content of a URL never changes and the bot rewrites its comment with the URL of the new state on every evaluation.
The code:
| Path | What |
|---|---|
worker/ |
The Cloudflare Worker (TypeScript, no runtime dependency): webhook, queue consumer, cron, sign pages. Tests run in the Workers runtime with a mocked GitHub. |
registry/ |
config.json (served repositories, exemptions by id, accepted versions), entities.json, the schemas, and cla.py, the recorder and verifier (Python standard library only). |
.github/workflows/record.yml, verify.yml |
The register's only writer, and its checker. |
scripts/create-github-app.ts |
Creates the GitHub App from its manifest and stores its secrets straight into the Worker; run by the owner. |
scripts/create-signin-app.ts |
Creates the identity-only sign-in app from its manifest (no permission, no event, no webhook) and stores its client id and secret straight into the Worker and the Actions environment signin; run by the owner. |
registry/tsa/ |
The pinned root of the qualified time-stamping service. |
Done already: this repository, its signatures branch, the Queue kleidos-cla in the Cloudflare account "Kleidos", and the Worker, deployed from main with its custom domain (steps 1 and 2, repeated for every later deploy). The account has the workers.dev subdomain kleidos, which Cloudflare requires before a Worker can have a cron or a Queue consumer; this Worker is not served there (workers_dev and preview_urls are false). The rest needs the owner's own credentials:
cd worker && npm ci && npx wrangler login.npm run deployfrom a clean checkout of a signed commit ofmain: it checks the digests, that the tree is clean, thatHEADcarries a good signature and is onorigin/main, then deploys the Workerkleidos-clawith its custom domaincla.kleidos.dev(the DNS record and the certificate are made by Cloudflare), the Queue consumer and the cron. Until the secrets exist the Worker serves the texts (each page says the CLA bot is not configured yet) and/healthz, refuses every/webhookdelivery with 401 (no signature can be verified), and answers 503 on everything else.node scripts/create-github-app.ts(from any directory) and open the address it prints. It runs the wrangler pinned inworker/(nevernpx) and first checks thatwrangler secret listreaches the Worker, so the one-time code is never spent on a missing target. It posts the manifest (public app; permissionsmetadata: read,contents: read,pull_requests: write,checks: write,actions: write; eventspull_request,check_run,workflow_run) to GitHub, checks that the app it gets back iskleidos-claofkleidos-dev, and pipesAPP_ID,APP_PRIVATE_KEY(converted to PKCS#8),CLIENT_ID,CLIENT_SECRET,WEBHOOK_SECRETand a newSESSION_KEYintowrangler secret put. Nothing secret is printed or written to disk.- Install the app on
kleidos-dev, on selected repositories only (clafirst). Inregistry/config.jsonsetapp_idto the app's id and add its bot account id to theexemptlist. - After the check has reported once on a repository, require
📝 CLAthere, pinned to the app id. - The sign-in app, for version 2:
node scripts/create-signin-app.ts(from any directory, withghsigned in as an owner of kleidos-dev) and open the address it prints. It checks wrangler and gh as the first script does, sets the Actions environmentsigninof this repository tomainonly, posts the manifest (public app, so that anyone can sign in with it; no permission, no event, no webhook,request_oauth_on_installfalse), checks that the app it gets back iskleidos-cla-sign-inofkleidos-dev, pipesSIGNIN_CLIENT_IDandSIGNIN_CLIENT_SECRETintowrangler secret putand the secret intogh secret set SIGNIN_CLIENT_SECRET --env signin, and drops the private key and webhook secret GitHub also returns. Nothing secret is printed or written to disk. On the app's settings page check that user tokens expire, Device Flow is off and the webhook is inactive, and delete the private key; never install the app. Then put its client id (public) inregistry/config.jsonassignin_client_id. Until a version whoseflowissigninis current, the site does not use it: the live flow stays version 1's. - Keep every other app with write access off
kleidos-dev/cla(gh api /orgs/kleidos-dev/installationsafter each new app): an app that can push tomainorsignaturescan change the configuration or write a record, and is part of the register's trust root.
The code, the Addendum and its translation, the summaries, the notices and the configuration are under the MIT License. The two Contributor Agreements 1.2 texts are third-party material under CC BY-SA 4.0, from contributoragreements.org. REUSE.toml says which is which.
Security reports: SECURITY.md. Contributing to this repository: CONTRIBUTING.md.