Repository navigation
fix(docker): give the postgres consumers MAE service the auth env - #21839
devashish2203 wants to merge 7 commits into
Conversation
datahub-mae-consumer-quickstart-postgres-consumers omitted the token authentication anchor and DATAHUB_SYSTEM_CLIENT_SECRET that every other MAE consumer service gets. Add both, matching the postgres-cdc service. The container gains DATAHUB_SYSTEM_CLIENT_SECRET, DATAHUB_TOKEN_SERVICE_SALT and DATAHUB_TOKEN_SERVICE_SIGNING_KEY; no other service changes. Also reword the stale comment on the shared MAE anchor. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
PR SummaryOverview That aligns this variant with other MAE consumer services (including Only this one service definition changes; no other compose services are touched. Reviewed by Cursor Bugbot for commit 1483972. Bugbot is set up for automated code reviews on this repo. Configure here. |
Smart test selectionpytest smoke testsMode: active. Only the selection below runs for the pytest smoke tests on this PR (applied:
Selected scopes (11 files or classes, 105 tests)
Add the Playwright E2E testsThis run:
Specs selected because of this PR (5)
Add the commit |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
# Conflicts: # docker/profiles/docker-compose.gms.yml
Stacked on #21833.
datahub-mae-consumer-quickstart-postgres-consumersomitted the token authentication anchor andDATAHUB_SYSTEM_CLIENT_SECRETthat every other MAE consumer service gets. It looks like an oversight from when the env was split per service, not a choice: nothing says it was intentional. This adds the token authentication anchor, which carriesDATAHUB_SYSTEM_CLIENT_SECRETtoo, matchingdatahub-mae-consumer-quickstart-postgres-cdc, and drops the comment that flagged the gap.This changes rendered env on purpose. The container gains three keys (snapshot diff,
bareandshellscenarios):No other container changes, and no generated quickstart file changes.
Verification:
Snapshot diff base vs head: 6 differences, one service, three added keys.
docker compose --profile quickstart-postgres-consumers configrenders../gradlew :docker:generateQuickstartComposeConfigleavesdocker/quickstart/unchanged.The PR conforms to DataHub's Contributing Guideline (PR title format)
Tests/docs: not applicable (compose env change)
No breaking change
🤖 Generated with Claude Code
Summary by cubic
Fixes the
datahub-mae-consumer-quickstart-postgres-consumersservice in the Docker compose profile so it receives the same token authentication environment andDATAHUB_SYSTEM_CLIENT_SECRETas every other MAE consumer service. It was the only one missing these, an oversight from when the env was split per service.The container gains
DATAHUB_SYSTEM_CLIENT_SECRET,DATAHUB_TOKEN_SERVICE_SALT, andDATAHUB_TOKEN_SERVICE_SIGNING_KEY; no other service changes. Also drops the stale comment that flagged the gap.Written for commit 9e24d5b. Summary will update on new commits.