Skip to content

build(deps): Bump geoip2/geoip2 from 3.4.0 to 3.5.0 - #9727

Open
librecode-workflow-automation[bot] wants to merge 2 commits into
mainfrom
dependabot/composer/geoip2/geoip2-3.5.0
Open

librecode-workflow-automation[bot] wants to merge 2 commits into
mainfrom
dependabot/composer/geoip2/geoip2-3.5.0

Conversation

@librecode-workflow-automation

Copy link
Copy Markdown
Contributor
Prod Packages Operation Base Target Link
composer/ca-bundle Upgraded 1.5.14 1.6.1 Compare
geoip2/geoip2 Upgraded v3.4.0 v3.5.0 Compare
libresign/pdf-signature-validator Downgraded v0.7.0 v0.6.2 Compare
maxmind-db/reader Upgraded v1.14.0 v1.15.0 Compare
maxmind/web-service-common Upgraded v0.11.1 v0.12.0 Compare

Signed-off-by: librecode-workflow-automation[bot] <331658022+librecode-workflow-automation[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Summary

This PR updates the 3rdparty submodule pointer from f87dc48 to 03c3c48. The dependency upgrades in the objectives (geoip2 v3.5.0, and related packages) are in the submodule. They are not verified here.

GeoIpDatabaseStatusService::getStatus() now validates buildEpoch with filter_var(..., FILTER_VALIDATE_INT, min_range 0). It adds the key only when the result is an integer. An invalid value now omits the key instead of copying it.

The ready-database test now asserts buildEpoch equals 1770245369.

Tests and CI: not available.

Changes: 3rdparty Reference

Layer / File(s) Summary
Update subproject reference
3rdparty
The subproject reference changes to commit 03c3c48ab0dfe4bb126704109691b5f995e67780.

GeoIP Status

Layer / File(s) Summary
Validate build epoch in status output
lib/Service/GeoIp/GeoIpDatabaseStatusService.php, tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php
getStatus() adds buildEpoch to the status payload only when validation confirms it is a non-negative integer. The ready-status test checks that its value is 1770245369.

Suggested reviewers: yvescesar

Change: Other

Merge Risk: Minimal · up to f68af

The GeoIP status now exposes the build epoch only when it is a valid non-negative integer, and the dependency pin is advanced. No merge-blocking risk was identified.

Security architecture risk: Minimal · up to f68af

The GeoIP response now returns a validated build timestamp or omits the field. The settings page already handles an absent timestamp, and database readiness does not depend on it. No security regression was established in the inspected change; the dependency update was not verified package by package.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The verified application-level effect is confined to buildEpoch in the existing GeoIP status responses. The change adds no route, request input, or configuration-write path.

Trust Boundaries and Controls

  • observed — Database metadata is validated before buildEpoch is serialized in the HTTP response. This is an output constraint, not a change to route authorization.
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a1fb1f02-c690-47f4-9c81-66624023f3d7
Commits

Reviewing files that changed from the base of the PR and between 3773204 and f68afc6.

Files selected for processing: 2

  • lib/Service/GeoIp/GeoIpDatabaseStatusService.php
  • tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

Recent review details

Context from checks skipped due to timeout: 32

  • GitHub Check: test-summary
  • GitHub Check: CodeRabbit
  • GitHub Check: matrix
  • GitHub Check: changes
  • GitHub Check: matrix
  • GitHub Check: changes
  • GitHub Check: changes
  • GitHub Check: changes
  • GitHub Check: stylelint
  • GitHub Check: matrix
  • GitHub Check: matrix
  • GitHub Check: matrix
  • GitHub Check: changes
  • GitHub Check: matrix
  • GitHub Check: changes
  • GitHub Check: changes
  • GitHub Check: static-psalm-analysis
  • GitHub Check: openapi
  • GitHub Check: matrix
  • GitHub Check: changes
  • GitHub Check: reuse-compliance-check
  • GitHub Check: changes
  • GitHub Check: matrix
  • GitHub Check: php-cs
  • GitHub Check: info.xml lint
  • GitHub Check: changes
  • GitHub Check: matrix
  • GitHub Check: matrix
  • GitHub Check: Block unconventional commits
  • GitHub Check: changes
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (actions)
Additional context used

Code guidelines: 4

AGENTS.md — configured
3 cross-repository guideline sources
Path-based instructions: 4

Source excerpt: Unit tests mirror source paths under `tests/php/Unit/`.

CodeRabbit inference engine (AGENTS.md)

Files:

  • tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php
Source excerpt: Prefer named independent cases for inputs that share the **same** setup, action, contract and expectation.

CodeRabbit inference engine

Files:

  • lib/Service/GeoIp/GeoIpDatabaseStatusService.php
  • tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php
Source excerpt: Tests are also code to review.

CodeRabbit inference engine

Files:

  • lib/Service/GeoIp/GeoIpDatabaseStatusService.php
  • tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php
Source excerpt: For integration tests changing persistent state, snapshot only the relevant pre-test values and restore them in a reliable teardown/finally path; preserve absent-vs-empty and types.

CodeRabbit inference engine

Files:

  • lib/Service/GeoIp/GeoIpDatabaseStatusService.php
  • tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php
Multi-repo context LibreSign/3rdparty, LibreSign/pdf-signature-validator

Linked repositories findings

Scope: LibreSign/3rdparty was inspected at its PR branch (refs/pull/173/head, HEAD 03c3c48), not its default branch. LibreSign/pdf-signature-validator was inspected at its default checkout (HEAD 49133fa, tags fetched). LibreSign/documentation was inspected at its default checkout (HEAD cbcf6fb). pdf-elements and xobject-template were not searched.

LibreSign/3rdparty (PR #173 branch, 03c3c48)

Locked versions match the PR description:

  • geoip2/geoip2 v3.5.0 with constraint ^3.5.0 [::LibreSign/3rdparty::composer.json:41], locked at [::LibreSign/3rdparty::composer.lock:316] (tag v3.5.0 at [::LibreSign/3rdparty::composer.lock:369]).
  • libresign/pdf-signature-validator v0.6.2 with constraint ^0.6.2 [::LibreSign/3rdparty::composer.json:43], locked at [::LibreSign/3rdparty::composer.lock:433] (tag v0.6.2 at [::LibreSign/3rdparty::composer.lock:474]).
  • maxmind-db/reader v1.15.0 [::LibreSign/3rdparty::composer.lock:600].
  • composer/ca-bundle 1.6.1 [::LibreSign/3rdparty::composer.lock:122] and maxmind/web-service-common v0.12.0 [::LibreSign/3rdparty::composer.lock:665].
  • The vendored GeoIP2 manifest requires maxmind-db/reader ^1.15.0 and maxmind/web-service-common ~0.12 [::LibreSign/3rdparty::composer/geoip2/geoip2/composer.json:22-23], which is consistent with the lock.

The validator pin moves backward. The PR description calls this a downgrade from v0.7.0. I did not inspect the base branch, so I could not confirm the "from" side from the checkout. On the PR branch, ^0.6.2 resolves only to >=0.6.2 <0.7.0 under Composer's 0.x caret rules, so v0.7.0 cannot be installed at this constraint. The v0.6.2 tag matches the locked commit 8719b83, and v0.7.0 is 49133fa.

Validator contract delta (v0.6.2 → v0.7.0), from file names and diff stats only:

  • 31 src/ files changed (+2778/−74). New files include PdfSignatureHistory and PdfSignatureHistoryReader, revision boundary, indirect-object and reference-index readers, PdfReferencePaths, and a DocMdp validation tree (modification and revision-change inspectors, annotation, appearance, form and signature-field policies, DSS and timestamp ownership readers, and projections).
  • Existing files modified include PdfIncrementalRevisionReader (92 lines changed), PdfRevisionSnapshot, DocMdpValidationDataInspector and DocMdpValidationDataPolicy.
  • I did not read implementations, so I cannot say which public signatures or error semantics changed.

The validator guidance asks for checks on malformed, tampered and previously signed PDFs and on trust decisions. The revision-history and DocMdp validation surface is what v0.7.0 adds and v0.6.2 lacks. Reviewers should confirm the downgrade is intentional and that no LibreSign code relies on v0.7.0 symbols.

Constraint narrowed in v0.6.2:

  • The vendored validator manifest requires signerphp/pdf-core ^0.2.0 [::LibreSign/3rdparty::composer/libresign/pdf-signature-validator/composer.json:15].
  • The validator's default checkout requires ^0.1.2 || ^0.2.0 [::LibreSign/pdf-signature-validator::composer.json:15].
  • The vendored copy is generated, so it should be updated by regenerating, not by hand-editing.

Runtime constraint: maxmind-db/reader v1.15.0 declares a conflict with ext-maxminddb versions <1.15.0 || >=2.0.0 [::LibreSign/3rdparty::composer.lock:616-618]. Hosts with a non-matching PECL extension will hit a resolution conflict.

LibreSign/pdf-signature-validator (default branch, 49133fa)

  • I found no consumers of the validator API in the linked repositories. This is an absence result from the searches I ran, not proof that none exist.

LibreSign/documentation (default branch, cbcf6fb)

  • Searches for pdf-signature-validator, geoip2, GeoIP, ca-bundle and maxmind returned no matches. This checkout is main, not the affected release, so I could not check release-specific API or version claims.

Limitations

  • The 3rdparty search output was truncated in the middle, so the repo-wide reference list is incomplete. The matches shown were in vendored or generated code.
  • Tag diff stats have no line numbers, so those findings are cited by file name only.
  • The commit-message intent "preserve the integer build epoch in GeoIP database status" was not verified in any linked repository.
  • pdf-elements and xobject-template were not searched, so this review has no evidence on viewer or appearance-template consumers.

coderabbitai[bot]
coderabbitai Bot previously approved these changes Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Code Metrics Report

Note: Metrics describe the revision analyzed by the successful PHPUnit run. Newer commits with pending, canceled or failed checks may not yet be represented in this report.

main (ec4f67e) #9727 (d3a402f) +/-
Coverage 78.1% 78.1% +0.0%
Test Execution Time 4m36s 5m34s +58s
Details
  |                     | main (ec4f67e) | #9727 (d3a402f) |  +/-  |
  |---------------------|----------------|-----------------|-------|
+ | Coverage            |          78.1% |           78.1% | +0.0% |
  |   Files             |            537 |             537 |     0 |
  |   Lines             |          29818 |           29820 |    +2 |
+ |   Covered           |          23303 |           23305 |    +2 |
- | Test Execution Time |          4m36s |           5m34s |  +58s |

Code coverage of files in pull request scope (85.1% → 85.7%, patch 100.0%)

Files Coverage +/- Patch Coverage Status
lib/Service/GeoIp/GeoIpDatabaseStatusService.php 85.7% +0.6% 100.0% modified

Reported by octocov

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant