Skip to content

fix: refresh the CA bundle and drop the eMudhra roots - #58

Merged
rkoopmans merged 2 commits into
tinify:masterfrom
rkoopmans:update-cacert
Nov 25, 2026
Merged

rkoopmans merged 2 commits into
tinify:masterfrom
rkoopmans:update-cacert

Conversation

@rkoopmans

@rkoopmans rkoopmans commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Regenerate lib/data/cacert.pem from curl's export of the Mozilla trust store (certificate data as of 5 November 2026). The previous bundle dated from 2021.

update-cacert.sh now skips any certificate whose label in curl's bundle matches emSign or eMudhra, so the eMudhra roots stay out on the next refresh. Mozilla still ships "emSign Root CA - G1"; the other three eMudhra roots in the old bundle had already left Mozilla's store.

Result: 117 certificates, Mozilla's 118 minus emSign Root CA - G1. api.tinify.com still verifies (it chains to ISRG Root X1).

Summary by CodeRabbit

  • Updates
    • Updated the bundled Mozilla CA certificates to the November 5, 2026 set. The bundle excludes eMudhra (emSign) root certificates.
    • Updated the library version to 1.7.1.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Files ignored due to path filters: 1

  • lib/data/cacert.pem is excluded by !**/*.pem
Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 4c145a39-592f-48de-a425-60ab0348bf69
Commits

Reviewing files that changed from the base of the PR and between bc035d9 and 075e81a.

Files ignored due to path filters: 1

  • lib/data/cacert.pem is excluded by !**/*.pem

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The bundle update script now skips certificates labeled emSign or eMudhra. The changelog records the Mozilla CA bundle update dated 5 November 2026 and the excluded roots. The VERSION constant changes to 1.7.1.

Changes: CA bundle update

Layer / File(s) Summary
Filter excluded roots and record release
update-cacert.sh, CHANGES.md, lib/Tinify.php
The script tracks certificate labels and skips certificates labeled emSign or eMudhra. The changelog records the Mozilla bundle update and exclusions. The VERSION constant changes to 1.7.1.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: rolftimmermans, sreini

Merge Risk: Minimal · previous review e45c6 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the two main changes: refreshing the bundled CA certificates and removing the eMudhra roots. The changeset refreshes the CA bundle (update-cacert.sh now skips emSign and eMudhra labels…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the two main changes: refreshing the bundled CA certificates and removing the eMudhra roots. The changeset refreshes the CA bundle (update-cacert.sh now skips emSign and eMudhra labels, CHANGES.md documents the 5 November 2026 update) and the version bump is a minor related detail. The title is specific and matches the primary change.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the roots in line
And leaves two labels out of the file
The bundle notes its dated change
A new release number takes its place
The rabbit hops beneath the moon
With tidy certificates in tune

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: f7f66858-6a10-47d9-8891-9ee096fb8c17
Commits

Reviewing files that changed from the base of the PR and between ea85a03 and e45c6ac.

Files ignored due to path filters: 1

  • lib/data/cacert.pem is excluded by !**/*.pem
Files selected for processing: 3

  • CHANGES.md
  • lib/Tinify.php
  • update-cacert.sh

Included review availability: This review used your included allowance. 3 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

@rkoopmans
rkoopmans force-pushed the update-cacert branch 2 times, most recently from e45c6ac to bc035d9 Compare November 25, 2026 12:29
Regenerate the bundle from curl's Mozilla export of 5 November 2026.
update-cacert.sh skips the eMudhra (emSign) roots, as Mozilla still
ships emSign Root CA - G1.
@rkoopmans
rkoopmans merged commit dd1b076 into tinify:master Nov 25, 2026
18 checks passed
@rkoopmans
rkoopmans deleted the update-cacert branch November 25, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant