Repository navigation
fix: add the upstream_ssl_trusted_certificate patch for OpenResty 1.31.8.1 - #139
Conversation
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Configure upstream SSL trust loading patch/1.31.8.1/nginx-upstream_ssl_trusted_certificate.patch |
The gRPC and proxy upstream SSL setup load trusted certificates and CRLs under NGX_HTTP_APISIX when verification is enabled or a trusted-certificate path is configured. When verification is off, each restores the original verification depth. Other builds retain the prior verify-only loading condition. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related PRs
- api7/apisix-nginx-module#137: Adds the same upstream SSL trusted-certificate and CRL behavior for earlier OpenResty patch directories.
- api7/apisix-nginx-module#136: Adds the OpenResty 1.31.8.1 patch directory and its patch application mapping, which this change extends.
Suggested reviewers: nic-6443
Merge Risk: 
Minimal · up to e3067
-
The patch adds upstream SSL trust loading. No actionable merge-blocking issue was established.
Pre-merge checks: 
6
-
Full details: E2e Test Quality Review
-
Explanation
PASS. The patch-only PR is covered by the existing E2E test
t/upstream_ssl_trusted_certificate.t, which is present in the base and head. The test uses real TLS upstream servers and covers proxy and gRPC flows, trusted, revoked, and untrusted certificates, static and per-request verification, missing certificates, CRLs, and verify-depth cases. The CI matrix runs all.tfiles forapisix-runtime-or-1.31.8.1. The new patch is included in the target patch directory and is applied by the existing wildcard loop. No blocking, major, or minor test-quality issue is introduced.
Full details: Security Check
-
Explanation
No security issues found in categories 1–7. The authoritative diff adds only
patch/1.31.8.1/nginx-upstream_ssl_trusted_certificate.patch; it adds no logging, response serialization, database persistence, endpoint authorization, resource lookup, ownership, shared-resource, or secret-reference code. For TLS configuration, the patch preserves the error when verification is enabled without a trusted certificate, loads trust material for per-request verification, and restores the prior verification depth when static verification is off. The new patch is byte-for-byte identical to the existingpatch/1.31.1.1patch. Related tests cover trusted certificates, revoked certificates, missing trusted certificates, and certificate-chain depth.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
#137 added
nginx-upstream_ssl_trusted_certificate.patchtopatch/1.21.4,patch/1.29.2.4andpatch/1.31.1.1. #136 addedpatch/1.31.8.1from a branch cut before #137, so builds on OpenResty 1.31.8.1 do not get the fix.This copies
patch/1.31.1.1/nginx-upstream_ssl_trusted_certificate.patchtopatch/1.31.8.1unchanged. It applies to OpenResty 1.31.8.1 after the other patches with no rejects and no fuzz, and nginx did not change the code around its hunks between 1.31.1 and 1.31.8.t/upstream_ssl_trusted_certificate.tfrom #137 covers it on theapisix-runtime-or-1.31.8.1CI entry.Summary by CodeRabbit