Skip to content

rainloop-community: use cacert bundle instead of vendored CA bundle - #578586

Merged
SuperSandro2000 merged 1 commit into
NixOS:masterfrom
irgolic:cacert/rainloop-community
Oct 27, 2026
Merged

SuperSandro2000 merged 1 commit into
NixOS:masterfrom
irgolic:cacert/rainloop-community

Conversation

@irgolic

@irgolic irgolic commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Part of #576541.

rainloop-community bundles a copy of the curl CA bundle in rainloop/v/1.16.0/app/libraries/tmhOAuth/cacert.pem. The tmhOAuth library gives this file to curl through its curl_cainfo option. The file has 137 certificates. Of these, 113 are not in cacert, and 14 are in cacert but not for TLS. The bundle accepts AAA Certificate Services as a root, and it does not have 108 TLS roots of cacert. In installPhase, the change replaces the file with a symlink to ${cacert}/etc/ssl/certs/ca-bundle.crt. rainloop-standard uses the same expression, thus it also gets the change.

Note

AI Disclosure: Claude Code made the code change, the commit message and the first version of this pull request description, with patchix. Claude Code used Claude Opus 5.5. This pull request description is written in ASD-STE100 (Simplified Technical English), examined with memelint in strict mode. As the automation/AI policy requires, I established confidence in this output: by manual review of the code change and of this description, and with the verification tooling that this description discloses.

Test

nix-cacert-harness examines the package before and after this change. A local copy of nixpkgs is not necessary.

nix run github:irgolic/nix-cacert-harness -- rainloop-community --pr 578586 --emudhra
Output of harness: rainloop-community
[1/2] static check + eMudhra chains: offline, reproducible
base (before) = dac5e22db3ed2be013da0eba8050c05140bd3f30
reference: fprs4zi8r6227x12qbsd1grvfrpz6201-nss-cacert-3.131.1 TLS roots=118 all=169
==================================================================
ATTR rainloop-community
before: dac5e22db3ed2be013da0eba8050c05140bd3f30   after: worktree <worktree>
before ok (0 built, 0s)
        drv /nix/store/6sk9gcjgcal9bkf9cfsyia5yhdi1xhv9-rainloop-community-1.16.0.drv
after  ok (0 built, 1s)
        drv /nix/store/92ps0yvlz95c7g467ibq70c7aazzjl3m-rainloop-community-1.16.0.drv

| output:path | before | after |
|---|---|---|
| out:/rainloop/v/1.16.0/app/libraries/tmhOAuth/cacert.pem | pem 137 certs: 113 not in cacert, 14 in cacert but not for TLS, 108 cacert TLS roots missing; scanner: AAA | symlink->cacert:ca-bundle.crt pem 169 certs (118 TLS roots + 51 non-TLS, i.e. cacert's own trust-rules bundle) |

cacert in runtime closure (before): no
cacert in runtime closure (after): yes
CAs trusted before but not trusted for TLS by cacert (127 total), e.g.:
  - C=GB, O=Comodo CA Limited, CN=AAA Certificate Services
  - C=AT, O=A-Trust Ges. f. Sicherheitssysteme im elektr. Datenverkehr GmbH, OU=A-Trust-nQual-03, CN=A-Trust-nQual-03
  - C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
  - C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 2
  - C=BM, O=QuoVadis Limited, CN=QuoVadis Root CA 3
  - C=BM, O=QuoVadis Limited, OU=Root Certification Authority, CN=QuoVadis Root Certification Authority
  - C=ch, O=Swisscom, OU=Digital Certificate Services, CN=Swisscom Root CA 1
VERDICT rainloop-community: FIXED: before trusted CAs outside cacert; after: 1 store(s) == cacert, none with extra CAs

eMudhra chains (--emudhra; offline and reproducible): the 14 chains in fixtures/emudhra,
each leaf verified against each store (openssl verify -purpose sslserver, at 2026-10-23):
| output:path | before | after |
|---|---|---|
| out:/rainloop/v/1.16.0/app/libraries/tmhOAuth/cacert.pem | pem: accepted 7/14 (g3: 0/7, aaa: 7/7, noct: 1/2) | symlink->cacert:ca-bundle.crt pem: accepted 0/14 |
VERDICT rainloop-community emudhra: FIXED: before accepted 7/14 compromised eMudhra chains (g3: 0/7, aaa: 7/7, noct: 1/2); after 0/14

[2/2] live eMudhra test hosts: needs network, NOT reproducible offline
(no shims/rainloop-community.{nix,sh} or shims/live/rainloop-community.{nix,sh}: live check skipped)

Before the change, the bundle accepts 7 of the 14 eMudhra chains: all 7 chains through AAA Certificate Services. It accepts none of the 7 emSign ECC Root CA - G3 chains. After the change, the file is a symlink to the cacert bundle, and it accepts none of the 14 chains. The harness has no live test for this package.

Things done

Assisted-by: Claude Code (Claude Opus 5.5) with patchix
@irgolic irgolic added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Oct 25, 2026
@zimbatm zimbatm mentioned this pull request Oct 25, 2026
66 of 95 tasks
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. llm-assisted Contributions that include code generation with LLMs 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! labels Oct 25, 2026
@SuperSandroBot

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (b97195b)

Command: nixpkgs-review pr 578586
Commit: cd6cb7987bfe31f2ef675e90e58167265c4d6de9 (subsequent changes)
Merge: 952aa55c71d2da7c7d8bab1fd3044845f8d62222

Logs: https://github.com/SuperSandro2000/nixpkgs-review-gha/actions/runs/40537804787/attempts/1


x86_64-linux

✅ 2 packages built:
  • rainloop-community
  • rainloop-standard

aarch64-linux

✅ 2 packages built:
  • rainloop-community
  • rainloop-standard

@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Oct 27, 2026
Merged via the queue into NixOS:master with commit 05c2f20 Oct 27, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 7.no default reviewers This PR targets a package or module with no existing maintainers; roving reviewers, take pity! 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants