Skip to content

fix: use bitnamilegacy images temporarily - #41176

Merged
pratapaprasanna merged 1 commit into
releasefrom
ww-bitnami-deprecated-images-2
Aug 13, 2025
Merged

pratapaprasanna merged 1 commit into
releasefrom
ww-bitnami-deprecated-images-2

Conversation

@wyattwalter

@wyattwalter wyattwalter commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Description

Bitnami has deprecated the images we rely on by default in the chart. We need to figure out how we adjust to this situation (and upgrade MongoDB as well to get off the EOL version here). For now, use the bitnamilegacy images.

see: bitnami/charts#35256

Fixes #Issue Number
or
Fixes Issue URL

Warning

If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.

Automation

/ok-to-test tags=""

🔍 Cypress test results

Caution

If you modify the content in this section, you are likely to disrupt the CI result for your PR.

Communication

Should the DevRel and Marketing teams inform users about this change?

  • Yes
  • No

Summary by CodeRabbit

  • Chores
    • Updated Helm chart to version 3.6.4.
    • Switched default container image repositories for MongoDB and PostgreSQL to bitnamilegacy while keeping the existing tags, improving continuity with upstream changes.
    • Cleaned up a deprecated MongoDB image configuration block to avoid confusion in values configuration.
    • These changes affect deployment configuration only and do not modify application behavior.

@coderabbitai

coderabbitai Bot commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Walkthrough

Updated Helm chart version to 3.6.4 and repointed MongoDB/PostgreSQL images to bitnamilegacy repositories in values.yaml, removing the redundant mongodb.image block.

Changes

Cohort / File(s) Summary
Helm Chart Version
deploy/helm/Chart.yaml
Bumped chart version from 3.6.3 to 3.6.4.
Helm Values: Image Repositories
deploy/helm/values.yaml
Repointed MongoDB image to bitnamilegacy/mongodb:6.0.13 and PostgreSQL image to bitnamilegacy/postgresql:14.12.0; removed redundant mongodb.image block (bitnami/mongodb).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Poem

Charts nudged up, a tidy sweep,
Images drift to legacy keep.
Mongo sails with Postgres, too,
New harbors, same trusty crew.
Helm sets course—3.6.4—
Steady ops from shore to shore.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ww-bitnami-deprecated-images-2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions Bot added the Bug Something isn't working label Aug 11, 2025

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f448648 and 11f64c5.

⛔ Files ignored due to path filters (1)
  • deploy/helm/tests/__snapshot__/defaults_snapshot_test.yaml.snap is excluded by !**/*.snap
📒 Files selected for processing (2)
  • deploy/helm/Chart.yaml (1 hunks)
  • deploy/helm/values.yaml (2 hunks)
🔇 Additional comments (1)
deploy/helm/Chart.yaml (1)

14-14: Patch version bump looks correct for values-only changes

No concerns from me on this bump. Please ensure a brief CHANGELOG/Release note mentions the temporary switch to bitnamilegacy images.

Comment thread deploy/helm/values.yaml
Comment on lines 35 to 39
image:
registry: docker.io
repository: bitnami/mongodb
repository: bitnamilegacy/mongodb
tag: 6.0.13
arbiter:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

MongoDB: repository switched to bitnamilegacy — verify image/tag availability

Change aligns with the PR goal. Recommend verifying the tag exists in Docker Hub and that there are no remaining bitnami/mongodb references elsewhere.

Run these checks:

Optional hardening: consider pinning by digest to prevent unexpected base image changes:

  • Example tag-to-digest: docker pull and record sha256, then use tag@sha256:.

If you keep the commented initContainer examples, consider updating those to bitnamilegacy to avoid confusion in future edits.


---

🏁 Script executed:

```shell
#!/usr/bin/env bash
set -euo pipefail

# 1) Ensure no lingering bitnami image references remain in values
rg -n 'bitnami/(mongodb|postgresql)' deploy/helm/values.yaml || true

# 2) Verify docker.io/bitnamilegacy/mongodb:6.0.13 exists (anonymous token + manifest check)
get_token() {
  repo="$1"
  curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:${repo}:pull" | jq -r .token
}

check_manifest() {
  repo="$1"
  tag="$2"
  token="$(get_token "$repo")"
  curl -fsSL -H "Authorization: Bearer ${token}" -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
    "https://registry-1.docker.io/v2/${repo}/manifests/${tag}" >/dev/null && echo "OK: ${repo}:${tag}" || echo "MISSING: ${repo}:${tag}"
}

check_manifest "bitnamilegacy/mongodb" "6.0.13"

Length of output: 6093


MongoDB image tag verified; update commented examples

  • ✔️ docker.io/bitnamilegacy/mongodb:6.0.13 manifest exists on Docker Hub
  • ⚠️ Commented initContainer examples still reference bitnami images (deploy/helm/values.yaml lines 122 & 124)
    • Update those to use bitnamilegacy (or remove) to avoid confusion
  • No other bitnami/(mongodb|postgresql) references found

Optional: pin the image with a sha256 digest to guard against unexpected upstream updates.

🤖 Prompt for AI Agents
In deploy/helm/values.yaml around lines 35-39 (and refer to the commented
examples at lines ~122 and ~124), the main image is correctly set to
docker.io/bitnamilegacy/mongodb:6.0.13 but the commented initContainer examples
still reference bitnami images; update those commented example lines to use
bitnamilegacy/mongodb (or remove the outdated comments) so the docs/examples
match the configured image, and optionally replace the tag with a pinned sha256
digest to prevent unexpected upstream changes.

Comment thread deploy/helm/values.yaml
Comment on lines 56 to 60
image:
registry: docker.io
repository: bitnami/postgresql
repository: bitnamilegacy/postgresql
tag: 14.12.0
primary:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

PostgreSQL: repository switched to bitnamilegacy — verify image/tag availability

Looks good and consistent with MongoDB. Suggest verifying tag presence and ensuring no stray bitnami/postgresql refs.

Run:

Optional: pin by digest for reproducibility as above.


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

# Search for stray bitnami/postgresql references
rg -n 'bitnami/postgresql' deploy/helm/values.yaml || true

# Verify docker.io/bitnamilegacy/postgresql:14.12.0 exists
get_token() {
  repo="$1"
  curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:${repo}:pull" | jq -r .token
}
token="$(get_token 'bitnamilegacy/postgresql')"
curl -fsSL -H "Authorization: Bearer ${token}" -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
  "https://registry-1.docker.io/v2/bitnamilegacy/postgresql/manifests/14.12.0" >/dev/null && echo "OK" || echo "MISSING"

Length of output: 5888


PostgreSQL image/tag validated; remove stray reference

  • Verified that docker.io/bitnamilegacy/postgresql:14.12.0 exists in the Docker registry.
  • deploy/helm/values.yaml, line 124: there’s still a commented-out reference to docker.io/bitnami/postgresql:14.5.0-debian-11-r21—please remove or update it to avoid confusion.

Optional: pin the image by digest for reproducibility.

🤖 Prompt for AI Agents
In deploy/helm/values.yaml around lines 56-60 and remove the stray commented
reference at line 124, the file currently references
docker.io/bitnamilegacy/postgresql:14.12.0 but also contains a commented-out
docker.io/bitnami/postgresql:14.5.0-debian-11-r21; delete or update that
commented line to match the validated image, or replace both with a
digest-pinned reference (e.g., repository@sha256:...) if you want reproducible
pinning.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
deploy/helm/Chart.yaml (1)

14-14: Version bump acknowledged; add release notes entry for traceability.

Please update CHANGELOG/release notes to mention the temporary switch to bitnamilegacy images so operators understand the rationale and rollback plan.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f448648 and 11f64c5.

⛔ Files ignored due to path filters (1)
  • deploy/helm/tests/__snapshot__/defaults_snapshot_test.yaml.snap is excluded by !**/*.snap
📒 Files selected for processing (2)
  • deploy/helm/Chart.yaml (1 hunks)
  • deploy/helm/values.yaml (2 hunks)

Comment thread deploy/helm/values.yaml
image:
registry: docker.io
repository: bitnami/mongodb
repository: bitnamilegacy/mongodb

@coderabbitai coderabbitai Bot Aug 11, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Temporary switch to bitnamilegacy/mongodb looks fine; add a TODO and verify tag availability.

Add a short TODO with the upstream issue link and planned reversion criteria. Also verify the tag exists on Docker Hub to avoid pull-time surprises.

Proposed inline comment:

   image:
     registry: docker.io
-    repository: bitnamilegacy/mongodb
+    # TODO(appsmith#35256): Temporary switch due to Bitnami image deprecation. Revert to bitnami/mongodb once upstream is resolved and MongoDB is upgraded.
+    repository: bitnamilegacy/mongodb
     tag: 6.0.13

Script to verify the tag exists:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Checking bitnamilegacy/mongodb:6.0.13..."
curl -fsSL 'https://hub.docker.com/v2/repositories/bitnamilegacy/mongodb/tags?page_size=1&name=6.0.13' | jq '.count, .results[].name'

echo "Expected: count >= 1 and name == 6.0.13"

Length of output: 360


Adjust MongoDB image tag to an existing tag and add TODO

The 6.0.13 tag isn’t available on Docker Hub—only 6.0.13-debian-11-r9 exists—so we need to update the tag in values.yaml and include the TODO for reverting upstream.

Locations to update:

  • deploy/helm/values.yaml: around line 37

Proposed diff:

 image:
   registry: docker.io
-  # TODO(appsmith#35256): Temporary switch due to Bitnami image deprecation. Revert to bitnami/mongodb once upstream is resolved and MongoDB is upgraded.
-  repository: bitnamilegacy/mongodb
-  tag: 6.0.13
+  # TODO(appsmith#35256): Temporary switch due to Bitnami image deprecation. Revert to bitnami/mongodb once upstream is resolved and MongoDB is upgraded.
+  repository: bitnamilegacy/mongodb
+  tag: 6.0.13-debian-11-r9

Updated verification script:

#!/bin/bash
set -euo pipefail

echo "Verifying bitnamilegacy/mongodb:6.0.13-debian-11-r9..."
curl -fsSL 'https://hub.docker.com/v2/repositories/bitnamilegacy/mongodb/tags?page_size=1&name=6.0.13-debian-11-r9' \
  | jq '.count, .results[].name'
# Expect: count >= 1 and name == "6.0.13-debian-11-r9"
🤖 Prompt for AI Agents
deploy/helm/values.yaml around line 37: the image tag currently references a
non-existent tag (6.0.13); change it to the existing tag "6.0.13-debian-11-r9"
in values.yaml and add a single-line TODO comment noting to revert to the
upstream "6.0.13" tag if/when it becomes available; ensure the repository/name
remains "bitnamilegacy/mongodb" and keep the TODO concise and searchable (e.g.,
TODO: revert image tag when upstream publishes 6.0.13).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🤔 this worked on a test deploy. I'll have to double-check it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

docker pull bitnamilegacy/mongodb:6.0.13
6.0.13: Pulling from bitnamilegacy/mongodb
45f335159959: Download complete
Digest: sha256:98fca2a5dc569ec1588a0819c1778bf453b39ded1d8e9c42c15104a3e0f44d4a
Status: Downloaded newer image for bitnamilegacy/mongodb:6.0.13
docker.io/bitnamilegacy/mongodb:6.0.13

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@wyattwalter Thanks for verifying that! You're absolutely right - the 6.0.13 tag does exist and work for bitnamilegacy/mongodb. My earlier API check was incorrect.

Since the current configuration works as-is, no tag change is needed. However, I'd still recommend adding a brief TODO comment to document that this is a temporary switch:

image:
  registry: docker.io
  # TODO: Temporary switch due to Bitnami image deprecation (ref: bitnami/charts#35256)
  repository: bitnamilegacy/mongodb
  tag: 6.0.13

This will help future maintainers understand the context and know to revert once the upstream issue is resolved.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@wyattwalter Thanks for verifying that! You're absolutely right - the 6.0.13 tag does exist and work for bitnamilegacy/mongodb. My earlier API check was incorrect.

Since the current configuration works as-is, no tag change is needed. However, I'd still recommend adding a brief TODO comment to document that this is a temporary switch:

image:
  registry: docker.io
  # TODO: Temporary switch due to Bitnami image deprecation (ref: bitnami/charts#35256)
  repository: bitnamilegacy/mongodb
  tag: 6.0.13

This will help future maintainers understand the context and know to revert once the upstream issue is resolved.


✏️ Learnings added
Learnt from: wyattwalter
PR: appsmithorg/appsmith#41176
File: deploy/helm/values.yaml:37-37
Timestamp: 2025-08-12T14:17:36.367Z
Learning: The bitnamilegacy/mongodb:6.0.13 Docker image tag exists and is functional, despite Docker Hub API queries suggesting otherwise. Direct docker pull commands are more reliable than API metadata for verifying image availability.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

Comment thread deploy/helm/values.yaml
image:
registry: docker.io
repository: bitnami/postgresql
repository: bitnamilegacy/postgresql

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

PostgreSQL image moved to bitnamilegacy; mirror the same TODO and validate the tag.

Document the temporary nature and check the tag’s availability to prevent deployment failures.

Proposed inline comment:

   image:
     registry: docker.io
-    repository: bitnamilegacy/postgresql
+    # TODO(appsmith#35256): Temporary switch due to Bitnami image deprecation. Revert to bitnami/postgresql after upstream resolution/upgrade.
+    repository: bitnamilegacy/postgresql
     tag: 14.12.0

Script to verify the tag exists:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Checking bitnamilegacy/postgresql:14.12.0..."
curl -fsSL 'https://hub.docker.com/v2/repositories/bitnamilegacy/postgresql/tags?page_size=1&name=14.12.0' | jq '.count, .results[].name'

echo "Expected: count >= 1 and name == 14.12.0"

Length of output: 375


Fix image tag and add TODO

The tag 14.12.0 isn’t published under bitnamilegacy/postgresql (only 14.12.0-debian-12-r9 is available). Update the tag and document this as a temporary workaround.

File: deploy/helm/values.yaml (line ~58)

   image:
     registry: docker.io
-    repository: bitnamilegacy/postgresql
-    tag: 14.12.0
+    # TODO(appsmith#35256): Temporary switch due to Bitnami image deprecation.
+    # Revert to bitnami/postgresql and tag `14.12.0` once upstream is restored.
+    repository: bitnamilegacy/postgresql
+    tag: 14.12.0-debian-12-r9
  • Confirm availability of the selected tag to avoid deployment failures.
  • Remove the TODO and switch back to the official Bitnami image when possible.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
repository: bitnamilegacy/postgresql
image:
registry: docker.io
# TODO(appsmith#35256): Temporary switch due to Bitnami image deprecation.
# Revert to bitnami/postgresql and tag `14.12.0` once upstream is restored.
repository: bitnamilegacy/postgresql
tag: 14.12.0-debian-12-r9
🤖 Prompt for AI Agents
In deploy/helm/values.yaml around line 58, the image tag `14.12.0` under
repository bitnamilegacy/postgresql is not published; update the tag to the
available `14.12.0-debian-12-r9` and add a single-line TODO comment next to this
value indicating it's a temporary workaround and should be reverted to the
official Bitnami image when the canonical tag is published; after changing,
verify the tag exists in the registry to avoid deployment failures and ensure
the TODO is removed once you switch back.

@pratapaprasanna
pratapaprasanna merged commit 708c406 into release Aug 13, 2025
22 checks passed
@pratapaprasanna
pratapaprasanna deleted the ww-bitnami-deprecated-images-2 branch August 13, 2025 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants