Skip to content

[Bug]: Appsmith-EE version v1.63 crash with former APPSMITH_KEYCLOAK_DB_URL format #39677

Description

@ssichynskyi

Is there an existing issue for this?

  • I have searched the existing issues

Description

Setup

  1. Appsmith-ee, self-hosted, deployed in k8s cluster using helm chart. Chart version 3.6.2. Appsmith image version v1.62
  2. SaaS Postgress DB is used
  3. APPSMITH_KEYCLOAK_DB_URL format used: <user>:<password>@<host>:<port> (which worked fine for ~ 9 months with constant updates)

Misbehavior

  1. After update Appsmith container is in a crashloopbackoff state. Completely inoperable. Following logs observed: Invalid DB connection string, error: Connection String: <contents of APPSMITH_KEYCLOAK_DB_URL envvar>}
  2. Connection string (contents of APPSMITH_KEYCLOAK_DB_URL) is shown unmasked in logs, revealing user credentials historically stored there.

Expected behavior

  1. No crash, old format of APPSMITH_KEYCLOAK_DB_URL envvar is handled without errors
  2. The content of APPSMITH_KEYCLOAK_DB_URL is not displayed in logs in a plain text. Because of historical reasons it contains DB username and password: [Bug]: appsmith-ee helm v3.1.0 - Temporal relies on keycloak postgres database url having all information and does not allow @ symbol in password #34153
  3. Error message shall explain which format of connection string is expected and how it is related to existing envvars.
  4. Documentation mentioning APPSMITH_KEYCLOAK_DB_URL format shall be correct. It was wrong for versions <= v1.62 and it seems it is still wrong now. jdbc:postgresql://<hostname>:<port>/<database_name> doesn't seem to be the right format.
  5. Helm chart shall refer to a specific version of the appsmith-ee image, not latest. Otherwise such disruptive update can happen unexpectedly.

Recovery method

Forcibly downgrade the appsmith-ee image version back to v1.62

Steps To Reproduce

  1. Update appsmith image version from v1.62 to v1.63

Public Sample App

No response

Environment

Production

Severity

Critical (Broken Production apps)

Issue video log

No response

Version

Self Hosted v1.63 (Enterprise Edition)

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingCommunity Reportedissues reported by community membersMediumIssues that frustrate users due to poor UXNeeds TriagingNeeds attention from maintainers to triageProductionStale

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions