Skip to content

vcell-rest/exporter image: start under bash, not sh (dotted secret env vars were dropped) - #2244

Merged
jcschaff merged 1 commit into
masterfrom
fix/rest-entrypoint-bash
Nov 25, 2026
Merged

jcschaff merged 1 commit into
masterfrom
fix/rest-entrypoint-bash

Conversation

@jcschaff

Copy link
Copy Markdown
Member

Fixes a regression from #2241 that broke rest and export on dev in 8.3.4.01.

What happened

  • Symptom: after 8.3.4.01 deployed to dev, rest and export crash-looped: ORA-01005: null password given; logon denied, then Failed to start quarkus.
  • Cause: vcell-rest/exporter images: Temurin 17 JRE (Java4Shell fix) instead of ubi8/openjdk-17:1.16 #2241's entrypoint was sh -c "exec java $JAVA_OPTS …". On the eclipse-temurin (Ubuntu) base, sh is dash, which silently drops environment variables whose names aren't valid shell identifiers.
  • Why that matters: the deployments load rest-secrets as environment variables, and its keys are dotted Quarkus property names: quarkus.datasource.oracle.password, quarkus.oidc.client-id, quarkus.oidc.credentials.secret, quarkus.swagger-ui.oauth-client-id/-secret. Under dash, Java started without any of them.
  • Why the old image worked: it started Java from Red Hat's run-java.sh, which is a bash script, and bash passes these variables through.
  • Why vcell-rest/exporter images: Temurin 17 JRE (Java4Shell fix) instead of ubi8/openjdk-17:1.16 #2241's testing missed it: I compared the old and new images' startup without passing any dotted variable.

Fix

Run the entrypoint with bash -c instead of sh -c. Nothing else changes.

Verified

Ran each image with quarkus.datasource.oracle.password, quarkus.oidc.credentials.secret and a plain PLAIN_VAR, then read PID 1's environment (/proc/1/environ):

Image Variables Java received PID 1
vcell-rest:8.3.4.01 (published) PLAIN_VAR only java
this branch PLAIN_VAR, quarkus.datasource.oracle.password, quarkus.oidc.credentials.secret java

sh vs bash in the stock eclipse-temurin:17-jre image gives the same split, with no VCell code involved.

Rollout

  • Dev's rest/export were pinned back to 8.3.3.05 in vcell-fluxcd (3ce24cd), because 8.3.3.06's CI-full failed and it has no images.
  • Next: release 8.3.4.02 from master with this fix, deploy it to alpha, and check that rest/export become Ready and log in to Oracle. The alpha deploy moves dev's tags back to the new release, replacing the pin.

🤖 Generated with Claude Code

… env vars reach Java

#2241's entrypoint ran `sh -c "exec java ..."`. On the eclipse-temurin (Ubuntu) base, sh is dash,
which silently drops environment variables whose names aren't shell identifiers. The deployments
pass rest-secrets as dotted Quarkus property names (quarkus.datasource.oracle.password,
quarkus.oidc.client-id, quarkus.oidc.credentials.secret, quarkus.swagger-ui.*), so Java started
without them: on dev, 8.3.4.01's rest and export crash-looped with ORA-01005 "null password
given". The ubi8 image started Java from run-java.sh, a bash script, and bash passes such
variables through.

Checked by reading PID 1's environment in a container given two dotted variables and a plain
one: 8.3.4.01's image keeps only the plain one; this image keeps all three, and PID 1 is still
java (receives SIGTERM directly).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jcschaff
jcschaff merged commit 2fb3360 into master Nov 25, 2026
8 checks passed
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