Skip to content

nextcloud{33,34,35}: use symlink to cacerts instead of vendored bundle - #576600

Open
bartoostveen wants to merge 1 commit into
NixOS:masterfrom
bartoostveen:nextcloud-use-cacert
Open

bartoostveen wants to merge 1 commit into
NixOS:masterfrom
bartoostveen:nextcloud-use-cacert

Conversation

@bartoostveen

Copy link
Copy Markdown
Member

Opted to use ca-no-trust-rules-bundle.crt as there are do not seem to be trust rules in Nextcloud (most PHP applications don't anyway)

Related to: #576541

This was annoying to test, I cherry-picked it for my two instances and the version check seemed to be able to contact Nextcloud, therefore it's pretty safe to say the application is able to load the bundle. I have never touched Nextcloud packaging though, so not entirely sure, just did the work as I have multiple instances to test on anyway :)

Things done

Opted to use `ca-no-trust-rules-bundle.crt` as there are do not seem to be trust rules in Nextcloud (most PHP applications don't anyway)

Related to: NixOS#576541
@bartoostveen bartoostveen added 1.severity: security Issues which raise a security issue, or PRs that fix one backport release-26.05 Backport PR automatically labels Oct 20, 2026
@zimbatm zimbatm mentioned this pull request Oct 21, 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: 0 This PR does not cause any packages to rebuild on Darwin. labels Oct 21, 2026
@Ma27

Ma27 commented Oct 21, 2026

Copy link
Copy Markdown
Member

We already do this in the module by setting default_certificates_bundle_path there. This has the benefit that we're also applying blacklisted things from the ca module, i.e. changes like the one that was done yesterday are already applied.

@provokateurin

Copy link
Copy Markdown
Member

We had this patching in the past, but like @Ma27 said we now do it via a config option: #481911

@bachp

bachp commented Oct 21, 2026

Copy link
Copy Markdown
Member

@Ma27 @provokateurin Is there any harm in removing the bundled ca-certs? If I understand correctly our module would make it work anyay.

I think if would make it easier to check that nextcloud indeed doesn't use any in case of future similar incidents. Maybe we can skip the simylink proposed here as we don't need it.

@provokateurin

Copy link
Copy Markdown
Member

Maybe instead of replacing them, they could be removed from the output then?

@Ma27

Ma27 commented Oct 22, 2026

Copy link
Copy Markdown
Member

@bachp fine by me.
@provokateurin that's also a neat idea, I believe this doesn't break with us overriding it on config-level?

@provokateurin

Copy link
Copy Markdown
Member

Yes as long as we set the config option in the module, removing the bundle from the output should not break anything (and if it would, then it's an upstream bug).

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 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants