Repository navigation
vcell-rest/exporter image: start under bash, not sh (dotted secret env vars were dropped) - #2244
Merged
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes a regression from #2241 that broke
restandexporton dev in 8.3.4.01.What happened
restandexportcrash-looped:ORA-01005: null password given; logon denied, thenFailed to start quarkus.sh -c "exec java $JAVA_OPTS …". On theeclipse-temurin(Ubuntu) base,shis dash, which silently drops environment variables whose names aren't valid shell identifiers.rest-secretsas 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.run-java.sh, which is a bash script, and bash passes these variables through.Fix
Run the entrypoint with
bash -cinstead ofsh -c. Nothing else changes.Verified
Ran each image with
quarkus.datasource.oracle.password,quarkus.oidc.credentials.secretand a plainPLAIN_VAR, then read PID 1's environment (/proc/1/environ):vcell-rest:8.3.4.01(published)PLAIN_VARonlyPLAIN_VAR,quarkus.datasource.oracle.password,quarkus.oidc.credentials.secretshvsbashin the stockeclipse-temurin:17-jreimage gives the same split, with no VCell code involved.Rollout
rest/exportwere 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.rest/exportbecome 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