Skip to content

fix(images): move postgres-exporter to v0.21.1 and seaweedfs to 4.56 - #71

Merged
ChiragAgg5k merged 2 commits into
mainfrom
fix/images-exporter-seaweedfs
Dec 1, 2026
Merged

ChiragAgg5k merged 2 commits into
mainfrom
fix/images-exporter-seaweedfs

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

What

Bumps two bundled images whose binaries carry vulnerable Go code, clearing 22 open high Trivy findings on this repo:

Image Before After Findings cleared
quay.io/prometheuscommunity/postgres-exporter (optional PostgreSQL metrics sidecar) v0.20.1 v0.21.1 21 (code scanning #8, #12, #13, #18–#31, #5997, #6673, #7238)
docker.io/chrislusf/seaweedfs (built-in S3 storage) 4.52 4.56 1 (#6671)

Why these versions fix it

Trivy's findings are in bin/postgres_exporter and usr/bin/weed. The fixed versions it asks for, compared with what the new tags are built from:

postgres_exporter            v0.20.1 (found)      needed            v0.21.1 (go.mod / .promu.yml at tag)
  Go stdlib                  1.26.4               >= 1.26.10/1.27.3 Go 1.27 toolchain (promu golang 1.27)
  golang.org/x/net           0.55.0               >= 0.62.0         0.62.0
  golang.org/x/text          0.38.0               >= 0.41.0         0.43.0
  golang.org/x/crypto        0.53.0               >= 0.55.0         0.58.0
weed (seaweedfs)             4.52                                   4.56
  golang.org/x/net           0.61.0               >= 0.62.0         0.62.0  (go 1.27.4)

The Trivy scan here only runs on its daily schedule against main, so the cleared alerts close on the first scan after merge.

Upgrade notes (in CHANGELOG)

  • postgres-exporter v0.21 wraps counters above 2^53, so the first scrape after upgrading can show one false rate() spike on very large counters.
  • v0.21 logs a deprecation warning for DATA_SOURCE_URI, which the chart sets in templates/postgresql/statefulset.yaml. It keeps working until v0.22; moving it to --datasource.uri is left for a separate change.
  • seaweedfs 4.53–4.56 are S3 Vectors / Tables / lifecycle additions and fixes; nothing the chart configures changed.

Not in this PR

Renovate's #40 carries these two bumps among 15 updates and is red for unrelated reasons, so they are split out here. docker:29.10.1-dind is left to #40: its runc 1.5.3 still pins golang.org/x/net 0.55.0 and compose 5.8.1 / buildx 0.39.1 keep the flagged module versions, so it would not clear the dind findings.

Verification

  • helm template with ci/full-values.yaml and database.builtin.metrics.enabled=true renders postgres-exporter:v0.21.1 and seaweedfs:4.56.
  • Values, README, artifacthub.io/images and the extensions_test.yaml assertion are updated together; CI runs the unit tests, generated-files check and kind installs.

🤖 Generated with Claude Code

Related: appwrite-labs/cloud#6671

postgres-exporter v0.20.1 is built with Go 1.26.4 and old golang.org/x
modules (21 high Trivy findings); v0.21.1 is built with Go 1.27 and
x/net 0.62.0, x/text 0.43.0, x/crypto 0.58.0. seaweedfs 4.52 carries
x/net 0.61.0 (CVE-2026-78661); 4.56 has 0.62.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@appwrite

appwrite Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
2f1934a Reviewed Reviewed 🟢 S · Ready to merge ✅ Approved View review

The reported missing SeaweedFS image assertion is now present, and no other issues were found in the incremental change.

Updates the bundled postgres-exporter and SeaweedFS image versions and synchronizes the chart values, Artifact Hub image metadata, generated README, changelog, and image assertions. The postgres-exporter test and SeaweedFS StatefulSet test both check the rendered image tag.

Latest changes: The newest commit adds an assertion that the built-in SeaweedFS StatefulSet renders the 4.56 image.

Walkthrough (6)
File Change
CHANGELOG.md Documents the image upgrades and their compatibility notes.
charts/appwrite/Chart.yaml Updates the Artifact Hub image references for both images.
charts/appwrite/README.md Regenerates the documented defaults for the image tags.
charts/appwrite/tests/extensions_test.yaml Updates the rendered postgres-exporter image assertion.
charts/appwrite/tests/objectstorage_test.yaml Adds an assertion for the rendered SeaweedFS image tag.
charts/appwrite/values.yaml Bumps the default postgres-exporter and SeaweedFS image tags.
Fixed since the last review (1)
  • Assert the SeaweedFS image in its unit test · charts/appwrite/values.yaml:709

Reviewed the commits since da888a1

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot 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 A · Looks good to merge. Summary

Comment thread charts/appwrite/values.yaml Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@appwrite appwrite Bot 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

@ChiragAgg5k
ChiragAgg5k merged commit 5608e06 into main Dec 1, 2026
38 of 41 checks passed
@ChiragAgg5k ChiragAgg5k self-assigned this Dec 2, 2026
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