fix(just): cover MOKOSH_OIDC_CLIENT_ID in down defensive with-env #147

Closed
David wants to merge 0 commits from fix/mapps-159-down-missing-oidc-client-id into main
Owner

Docker Compose fully interpolates the merged config before running any subcommand, including down, and aborts on any unset ${VAR:?} required variable. The merged compose.yml + compose.dev-sso.yml declares three required vars (HOST_IP, USER, MOKOSH_OIDC_CLIENT_ID), but the down recipe's defensive with-env block only supplied HOST_IP and USER. On a fresh clone or before just register-client populates the SPA client id, just down / just restart aborted with required variable MOKOSH_OIDC_CLIENT_ID is missing a value, defeating the recipe's defensive intent.

Add a harmless teardown placeholder for MOKOSH_OIDC_CLIENT_ID alongside HOST_IP and USER. Teardown only identifies and removes resources, so the placeholder value is irrelevant to which containers/volumes get removed. restart inherits the fix via its down dependency. Audited the full :? set in both compose files: USER and MOKOSH_OIDC_CLIENT_ID are the only required vars not provided by the shell, and both are now covered.

#MAPPS-159

Docker Compose fully interpolates the merged config before running any subcommand, including `down`, and aborts on any unset `${VAR:?}` required variable. The merged compose.yml + compose.dev-sso.yml declares three required vars (HOST_IP, USER, MOKOSH_OIDC_CLIENT_ID), but the `down` recipe's defensive `with-env` block only supplied HOST_IP and USER. On a fresh clone or before `just register-client` populates the SPA client id, `just down` / `just restart` aborted with `required variable MOKOSH_OIDC_CLIENT_ID is missing a value`, defeating the recipe's defensive intent. Add a harmless teardown placeholder for MOKOSH_OIDC_CLIENT_ID alongside HOST_IP and USER. Teardown only identifies and removes resources, so the placeholder value is irrelevant to which containers/volumes get removed. `restart` inherits the fix via its `down` dependency. Audited the full `:?` set in both compose files: USER and MOKOSH_OIDC_CLIENT_ID are the only required vars not provided by the shell, and both are now covered. #MAPPS-159
fix(just): cover MOKOSH_OIDC_CLIENT_ID in down defensive with-env
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 51s
Create release / Create release from merged PR (pull_request) Has been skipped
687c43e97e
Docker Compose fully interpolates the merged config before running any subcommand, including `down`, and aborts on any unset `${VAR:?}` required variable. The merged compose.yml + compose.dev-sso.yml declares three required vars (HOST_IP, USER, MOKOSH_OIDC_CLIENT_ID), but the `down` recipe's defensive `with-env` block only supplied HOST_IP and USER. On a fresh clone or before `just register-client` populates the SPA client id, `just down` / `just restart` aborted with `required variable MOKOSH_OIDC_CLIENT_ID is missing a value`, defeating the recipe's defensive intent.

Add a harmless teardown placeholder for MOKOSH_OIDC_CLIENT_ID alongside HOST_IP and USER. Teardown only identifies and removes resources, so the placeholder value is irrelevant to which containers/volumes get removed. `restart` inherits the fix via its `down` dependency. Audited the full `:?` set in both compose files: USER and MOKOSH_OIDC_CLIENT_ID are the only required vars not provided by the shell, and both are now covered.

#MAPPS-159
Author
Owner

Closing as superseded by #146, which already merged the identical fix for MAPPS-159 into main. The defensive down recipe in main already supplies the MOKOSH_OIDC_CLIENT_ID teardown placeholder in its with-env block, so this branch carries no functional change (only comment wording differs on rebase).

Closing as superseded by #146, which already merged the identical fix for MAPPS-159 into main. The defensive `down` recipe in main already supplies the MOKOSH_OIDC_CLIENT_ID teardown placeholder in its with-env block, so this branch carries no functional change (only comment wording differs on rebase).
David closed this pull request 2026-06-16 12:05:55 +02:00
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 51s
Required
Details
Create release / Create release from merged PR (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!147
No description provided.