build-cran-binaries/.crow
Repository files (latest commit first)
Filename Latest commit message Latest commit date
pat-s 5c4cca6cce fix: verify the metadata database certificate with sslmode=verify-full (#235)
Part of https://codefloe.com/rpkgs/bincraft/issues/225. Stacked on #234.

Every connection to the metadata database used `sslmode = 'require'`, which encrypts but does not authenticate the server, so anyone able to impersonate `r-binaries.devxy.io:15432` would receive `PGPASS`.

## Changes

- `.crow/build-all-versions.yaml`, `process-updates.yaml`, `prune-stale-flat-binaries.yaml`, `reindex.yaml`, `weekly-rebuild-reindex.yaml`: `metadata_db_sslmode = 'verify-full'` in every bincraft call.
- `local/*.R`: the same for bincraft calls; scripts that call `DBI::dbConnect()` directly also pass `sslrootcert = bincraft::postgres_sslrootcert("verify-full")`, because libpq looks for `~/.postgresql/root.crt` rather than the system trust store.
- `README.md`: note that the endpoint serves a Let's Encrypt certificate and how to verify it.
- air reformatted three `=` assignments to `<-` in `local/missing-cran-packages-db.R` and `local/packages-without-any-binary.R` while the hook ran on those files.

## Ordering: merge last

1. devxy/k8s-talos#417 must be live: today the server presents an in-cluster certificate from a private CA, which `verify-full` rejects.
2. https://codefloe.com/rpkgs/bincraft/pulls/226 must be released: `local/install-bincraft.R` installs the latest tag, and older releases neither pass a root certificate nor export `postgres_sslrootcert()`.
3. #234 must be merged.

Merging early fails every database connection in CI, and since #234 per-minor reindex failures fail the pipeline.

Reviewed-on: #235
2026-10-17 07:45:46 +00:00
..
archive-missed-packages.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
auto-apply-patches.yaml fix(ci): install RPostgres for audit workflows (#172) 2026-08-30 07:31:28 +00:00
backfill-abi-classification.yaml feat(abi): backfill classifier verdicts for pre-per-minor packages (#199) 2026-09-04 10:34:49 +00:00
backfill-flat-safety.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
build-all-versions-install-deps.yaml fix(ci): make every manual gate default to a value that matches nothing (#158) 2026-08-09 15:31:14 +00:00
build-all-versions.yaml fix: verify the metadata database certificate with sslmode=verify-full (#235) 2026-10-17 07:45:46 +00:00
process-updates.yaml fix: verify the metadata database certificate with sslmode=verify-full (#235) 2026-10-17 07:45:46 +00:00
prune-stale-flat-binaries.yaml fix: verify the metadata database certificate with sslmode=verify-full (#235) 2026-10-17 07:45:46 +00:00
rebuild-abi-gap.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
reindex.yaml fix: verify the metadata database certificate with sslmode=verify-full (#235) 2026-10-17 07:45:46 +00:00
repair-built-stamp.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
repair-unsafe-flat-objects.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
retire-slot.yaml feat(slots): add a retirement workflow and a drift check (#214) 2026-09-11 13:14:17 +00:00
trial-build-registry.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
verify-repo-routing.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
weekly-audit-missing.yaml chore(alpine): drop the deprecated Alpine 3.22 slot (#213) 2026-09-11 07:27:03 +00:00
weekly-patch-proposals.yaml fix(ci): install RPostgres for audit workflows (#172) 2026-08-30 07:31:28 +00:00
weekly-rebuild-missing.yaml fix(ci): give each xvfb-run its own display (#230) 2026-10-11 12:12:28 +00:00
weekly-rebuild-reindex.yaml fix: verify the metadata database certificate with sslmode=verify-full (#235) 2026-10-17 07:45:46 +00:00