Skip to content

chore(core): neutralize our hosts out of the runnable Core defaults - #42

Draft
guycochran wants to merge 1 commit into
masterfrom
chore/neutralize-core-defaults
Draft

guycochran wants to merge 1 commit into
masterfrom
chore/neutralize-core-defaults

Conversation

@guycochran

Copy link
Copy Markdown
Owner

Guy's Core-vs-Skin call (Oct 9): the Core is for everyone; our deployment specifics belong in a Skin or stay private.

The runnable Core (backend/scripts/tools) defaulted its env vars to our hosts — MXL_BACKEND_URL=https://prodbots.com, MXL_FEED_URL=https://mxl-feed.cochran.cloud, plus comment/docstring references. Even as overridable defaults, a stranger cloning the Core shouldn't see our infrastructure.

This PR: defaults are now neutral (http://localhost:3013 / :8889, YOUR-*-HOST in prose), still overridable via the same MXL_* env vars — our box sets them, so nothing changes operationally for us. Shrank the test_no_hardcoded_hosts allowlist (ratchet) and updated test_env_config to pin the neutral defaults.

Deliberately NOT touched: docs/ (the mxlswitcher.com site) keeps its "Office Hours Global" bylines + our findings — that's our publication, correctly ours, not a leak.

Full suite green. Complements the #41 hostname-removal + mediamtx-API-localhost hardening.

Suggest merging early in the sequence (it's small, master-based, no conflicts).

🤖 Generated with Claude Code

…Core-vs-Skin discipline)

Guy's principle: the Core is for everyone; OUR deployment specifics belong in a Skin or stay
private. The runnable Core (backend/scripts/tools) defaulted its env vars to our hosts
(MXL_BACKEND_URL=https://prodbots.com, MXL_FEED_URL=https://mxl-feed.cochran.cloud, etc.).
Even as overridable defaults, a stranger cloning the Core shouldn't see our infrastructure.

Now the defaults are neutral (http://localhost:3013 / :8889, YOUR-*-HOST in comments),
still overridable via the same MXL_* env vars — our box sets them, so nothing changes for us.
Shrank the hardcoded-host tripwire allowlist accordingly (ratchet) and updated test_env_config
to pin the new neutral defaults.

NOTE: docs/ (the mxlswitcher.com site) KEEPS its 'Office Hours Global' bylines + our findings
— that's OUR publication, correctly ours, not a leak. This change is only the runnable Core.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GwSKEZZz4yEc2CGq5hcTmT
guycochran added a commit that referenced this pull request Oct 9, 2026
…Core-neutralization (PR #42)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GwSKEZZz4yEc2CGq5hcTmT
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