feat(autoconfigure): config-sync fail-fast in production (ADR 0003, PR 3)#54
Merged
Conversation
…R 3) Config sync is a dev/staging-only tool — production config is promoted via the git-committed bundle applied on deploy, not an ad-hoc push. ConfigSyncProductionGuard refuses to start, with a clear message, if devslab.kit.config-sync.enabled=true while a `prod`/`production` profile is active, rather than silently disabling (which would hide the misconfiguration). The whole surface stays off by default; this hardens the "never in prod" guarantee. Unit-tested (prod -> fail, local/none -> ok).
jlc488
added a commit
that referenced
this pull request
Jun 3, 2026
All implementation PRs have merged: export/import (#53), prod fail-fast gating (#54), mirror mode + opt-in user sync (#55), and the admin-ui "Config Sync" page (devslab-kit-admin-ui #20). Flip the status to Accepted (item 6 of the plan) and record the PRs; the standalone how-to guide is the remaining piece. Both language files.
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.
Summary
ADR 0003 config-sync — PR 3: fail-fast in production.
Config sync is a dev/staging-only tool (production config is promoted via the
git-committed bundle applied on deploy, not an ad-hoc push).
ConfigSyncProductionGuardrefuses to start, with a clear message, if
devslab.kit.config-sync.enabled=truewhile a
prod/productionprofile is active — rather than silently disabling, which wouldhide the misconfiguration (ADR 0003 §5). The whole surface stays off by default; this
hardens the "never in prod" guarantee.
Verification
./gradlew buildgreen.ConfigSyncProductionGuardTest3/3 (prod → fail-fast; local /no-profile → ok); existing
ConfigSyncTests2/2 still green.Next on this track
PR 4:
mirrormode + optional user sync (guarded). PR 5: admin-ui Config Sync page.요약 (한국어)
ADR 0003 config-sync PR 3: 운영 fail-fast. config-sync는 dev/staging 전용 —
prod/production프로필에서
config-sync.enabled=true면 명확한 메시지와 함께 기동 거부(조용히 끄지 않음, ADR §5).전체 surface는 기본 off 유지.
ConfigSyncProductionGuardTest3/3 + 기존ConfigSyncTests2/2 green.다음: mirror/사용자동기화 → admin-ui 페이지.