Skip to content

fix(docker): use appwrite/base 2.2.7 for golang.org/x/net 0.61.0 in git-remote-entire - #14765

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/base-image-2.2.7
Oct 22, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/base-image-2.2.7

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

What

Bumps the server image to appwrite/base:2.2.7 (and its -xdebug variant), and escapes backslashes in the benchmark PR comment table.

Why

Trivy reports five golang.org/x/net/http2 advisories (CVE-2026-78659, CVE-2026-78660, CVE-2026-78663, CVE-2026-78669, CVE-2026-97032, fixed in 0.60.0) against /usr/local/bin/git-remote-entire. That binary comes from the base image: 2.2.6 builds it with x/net 0.59.0, and 2.2.7 (appwrite/docker-base#127) rebuilds it from entireio/cli 0.12.0 with x/net 0.61.0. I confirmed this from the build info in both published images (golang.org/x/net v0.59.0 in 2.2.6, v0.61.0 in 2.2.7, both built with Go 1.27.3). The only change between 2.2.6 and 2.2.7 is that binary.

CodeQL flagged .github/workflows/benchmark-comment.js for escaping | without escaping \ first, so a sample name containing \| would end its table cell early. The fix escapes backslashes, then pipes, using replaceAll.

Testing

node --check on the script. The Docker build and the image scan run in CI.

Related: appwrite-labs/cloud#6671

…it-remote-entire

base 2.2.6 ships git-remote-entire built against golang.org/x/net 0.59.0,
which Trivy flags for five HTTP/2 advisories fixed in 0.60.0. base 2.2.7
rebuilds it from entireio/cli 0.12.0 with x/net 0.61.0.

The benchmark PR comment also escapes backslashes before pipes in sample
names, so a name ending in a backslash cannot swallow the cell delimiter.
@luxor-code-review

luxor-code-review Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Review complete. No issues found — approved ✅.


The change contains a small escaping fix and a routine base-image bump, with no behavioral changes elsewhere.

Files Change
.github/workflows/benchmark-comment.js Escapes backslashes before pipes when building benchmark comment table rows, preventing sample names from corrupting the markdown table.
Dockerfile Bumps appwrite/base from 2.2.6 to 2.2.7 in the base and xdebug stages, including the explanatory comment.

Reviewed commit: 1f335c1

@ChiragAgg5k ChiragAgg5k self-assigned this Oct 22, 2026
@ghost

ghost commented Oct 22, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The image tag changes are consistent across both stages, and the table-cell escaping handles backslashes before pipes.

This PR updates the production and Xdebug Docker stages to use appwrite/base:2.2.7. It also escapes backslashes before pipes in benchmark table cells so names containing \| render without splitting the cell.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 2
File Change
Dockerfile Bumped both base-image tags and aligned the Xdebug note with the new version.
.github/workflows/benchmark-comment.js Escaped backslashes and pipes in top API wait names before rendering table rows.

Reviewed 1f335c1 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@github-actions

Copy link
Copy Markdown

Security rules

No new WARNING or ERROR findings from security rules.

19 existing findings tracked in .semgrep/baseline.json
  • php.appwrite.guest-write-without-abuse-limit (12)
  • php.appwrite.secret-compare-timing (5)
  • php.appwrite.weak-secret-env-default (2)

Posted by Checks / Rules. Re-runs update this comment in place. Rule details and baseline: .semgrep/README.md.

@github-actions

Copy link
Copy Markdown

✨ Benchmark results

Comparing main (before) → fix/base-image-2.2.7 (after).

Metric Before After Change
🚀 Requests/sec 212.41 214.11 ⚪ +0.8%
⏱️ Latency P50 80.73 ms 79.9 ms ⚪ -1%
⏱️ Latency P95 191.65 ms 192.89 ms ⚪ +0.6%
Per-scenario breakdown & investigation details

Metrics below reflect the current branch (after). Δ P95 compares against the base.

Scenario P50 (ms) P95 (ms) Requests RPS Δ P95 (ms)
API total 79.9 192.89 13,623 214.11 +1.24
Account 158.25 318.99 717 11.9 +53.16
TablesDB 77.6 153.45 7,409 119.02 +3.52
Storage 72.81 173.95 3,585 59.36 -21.76
Functions 112.65 230.33 1,912 32.23 +10.5

Top API waits (after)

API request Max wait (ms)
functions.create 558
storage.buckets.create 531.22
account.name.update 470.47
account.prefs.update 413.62
functions.variables.update 410.5

@ChiragAgg5k
ChiragAgg5k merged commit 70205bb into main Oct 22, 2026
68 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/base-image-2.2.7 branch October 22, 2026 10:51
Tapraj-Pathak pushed a commit to Tapraj-Pathak/appwrite that referenced this pull request Oct 24, 2026
fix(docker): use appwrite/base 2.2.7 for golang.org/x/net 0.61.0 in git-remote-entire

(cherry picked from commit 70205bb)
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