René's URL Explorer Experiment


Title: fix(cli): bind sim-setup's containers to loopback, fix reset and env quoting, retire the legacy simstudio CLI by waleedlatif1 · Pull Request #9830 · simstudioai/sim · GitHub

Open Graph Title: fix(cli): bind sim-setup's containers to loopback, fix reset and env quoting, retire the legacy simstudio CLI by waleedlatif1 · Pull Request #9830 · simstudioai/sim

X Title: fix(cli): bind sim-setup's containers to loopback, fix reset and env quoting, retire the legacy simstudio CLI by waleedlatif1 · Pull Request #9830 · simstudioai/sim

Description: Summary sim-setup binds its managed Redis and Postgres to 127.0.0.1 and writes 127.0.0.1 URLs. Docker's default -p port:port listens on every interface and bypasses host firewalls, and the official Redis image ships with protected mode off and no password, so dev-mode Redis was reachable from the network. Containers an earlier release published on every interface are flagged at the start of dev setup, with the steps to recreate them on loopback (sim-setup down, then re-run; data is kept). They are not replaced automatically: Redis holds live realtime sessions, and a DATABASE_URL may name its own database. sim-setup reset tears down before archiving .env. Compose interpolates the required ${VAR:?} secrets even for down -v, so archiving first made a Compose reset fail with the stack still running and the config moved aside. A failed teardown now leaves the env files in place, for dev and Kubernetes too. Env values that need it are quoted on write. dotenv (Next's loader) cuts an unquoted value at any # (a#b read as a), and every reader trims edge whitespace and strips a leading quote. Those values are single-quoted, which dotenv, Bun, Compose and our own parser all read literally. Ordinary values (hex secrets, URLs, DSNs) are written byte-for-byte as before. A value with a line break is refused instead of spilling into a second line. sim-setup's THIRD_PARTY_LICENSES adds the five bundled MIT packages it was missing: fast-string-truncated-width, fast-string-width, fast-wrap-ansi, ipaddr.js and sisteransi. The published sim manifest drops the source-only ./embed export and the #sim-cli/* imports. They point at src/*.ts, which the tarball doesn't ship, so import 'sim/embed' from npm failed. The repo manifest is unchanged because apps/sim consumes sim/embed from source through the workspace. The smoke test now fails if any export target is missing from the tarball. Remove the legacy packages/cli (simstudio) and its publish workflow. It hasn't published since 0.1.19. That release starts Postgres as postgres/postgres on all interfaces with a placeholder auth secret, and current realtime images refuse to start with that secret. Nothing in the repo or docs points at it, and sim-setup replaces it. The npm package will be deprecated separately. Kept out of scope: moving sim's bundled runtime deps to devDependencies. apps/sim imports the CLI source through sim/embed, so its Docker build resolves them through those dependencies. Type of Change Bug fix Testing New env-files.test.ts cases: round-trips for #, edge whitespace and quotes, and line-break refusal. All 5 fail against the staging source and pass with the fix. Plain values are checked to stay unquoted. Wrote the new lines and read them back through @next/env, Bun's loader and docker compose config: every value came back identical. Docker Compose 2.39: down -v without .env fails on the required variables, and with it present succeeds. Docker: an old-style -p binding was reachable on the LAN address, the new loopback binding was not, and docker port still parses. Docker: exposure detection flags legacy containers (including stopped ones) and stays quiet for loopback-bound containers and when no containers exist. Ran the new workflow steps against the published sim@2.2.23 tarball: the export check fails on the current manifest and passes after the strip, and sim/runtime still imports. sim-setup suite (79 tests), test:scripts (739 tests), sim-setup type-check, check:utils, check:file-names, check:comment-hygiene, check:boundaries, bun run lint, actionlint. bun install --frozen-lockfile --lockfile-only confirms the lockfile edit. Full type-check, check:audits and the full test suite run in CI. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing (new tests pass the test-audit authoring gate) No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary sim-setup binds its managed Redis and Postgres to 127.0.0.1 and writes 127.0.0.1 URLs. Docker's default -p port:port listens on every interface and bypasses host firewalls, and the off...

X Description: Summary sim-setup binds its managed Redis and Postgres to 127.0.0.1 and writes 127.0.0.1 URLs. Docker's default -p port:port listens on every interface and bypasses host firewalls, and the...

Opengraph URL: https://github.com/simstudioai/sim/pull/9830

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5d4ed071-d7e3-b176-b126-604ed675581d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C2C:71DFA:D937EA:132A8E3:6AFB63E4
html-safe-nonce2bef9caa92f5cebac3f9f92f56a28f6c8c96fe555d42ddfe9c97b4adaab5204d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzJDOjcxREZBOkQ5MzdFQToxMzJBOEUzOjZBRkI2M0U0IiwidmlzaXRvcl9pZCI6Ijg4NTM2MjA4MTk5NjE3MDIxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca44909f2f00665f4d6d20afc434d0b3e521df7e04f98c66d13d6ea304733864c
hovercard-subject-tagpull_request:5237065442
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9830/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary sim-setup binds its managed Redis and Postgres to 127.0.0.1 and writes 127.0.0.1 URLs. Docker's default -p port:port listens on every interface and bypasses host firewalls, and the off...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9830/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9830%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9830%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/9830/files
Reloadhttps://github.com/simstudioai/sim/pull/9830/files
Reloadhttps://github.com/simstudioai/sim/pull/9830/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
fix/cli-setup-hygienehttps://github.com/simstudioai/sim/tree/fix/cli-setup-hygiene
Conversation 28 https://github.com/simstudioai/sim/pull/9830
Commits 3 https://github.com/simstudioai/sim/pull/9830/commits
Checks 92 https://github.com/simstudioai/sim/pull/9830/checks
Files changed https://github.com/simstudioai/sim/pull/9830/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9830/files
fix(cli): bind sim-setup's containers to loopback, fix reset and env quoting, retire the legacy simstudio CLI https://github.com/simstudioai/sim/pull/9830/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/9830/files
529d1a2 fix(cli): bind sim-setup's containers to loopback, fix reset and env … waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9830/commits/529d1a2f40b59a58b61554aa2a8cbc7b37dd52f2
41abe4a fix(setup): rebind containers an earlier sim-setup published on every… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9830/commits/41abe4a5648a913aecbfe71614d660b03b9e7b51
1625172 fix(setup): warn about containers an earlier sim-setup exposed instea… waleedlatif1 Nov 10, 2026 https://github.com/simstudioai/sim/pull/9830/commits/1625172e2a0f6b84a3320ac450217fb5330f6ad3
Clear filters https://github.com/simstudioai/sim/pull/9830/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9830/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9830/files
publish-cli.yml https://github.com/simstudioai/sim/pull/9830/files#diff-2710cb58a3ba7ed6e1ebae0fcfd9f667494e2953cb3a69512776cb13ad7e2e96
publish-sim-cli.yml https://github.com/simstudioai/sim/pull/9830/files#diff-fbcf47b42bc89dfa2036913f1527d4a5c64109223ce9a9e62f049b925203c430
biome.json https://github.com/simstudioai/sim/pull/9830/files#diff-2bc8a1f5e9380d5a187a4e90f11b4dd36c3abad6aea44c84be354a4f44cdec55
bun.lock https://github.com/simstudioai/sim/pull/9830/files#diff-bfd0ef82a01108fa1e836c2500b98b7de8a92bb1ae352a8efcbd9d6ffcaabd60
knip.jsonc https://github.com/simstudioai/sim/pull/9830/files#diff-48d5ba4681726b42e98dae10c08bd94f7f9836644c8f183c6475d10dcf67ebf1
README.md https://github.com/simstudioai/sim/pull/9830/files#diff-15986190ef9581ab59bcd5483b2c09e7fd0bd439d6f6cddbc94b0b1de094ee51
package.json https://github.com/simstudioai/sim/pull/9830/files#diff-6e2e2a1851648938b325ba84de634407a4e69a644ea61102df15ca4a8a7a9758
index.ts https://github.com/simstudioai/sim/pull/9830/files#diff-2fb448d11702324cc59d657d5945d59cd325540eb87b71f2e66a5bc01ada834c
tsconfig.json https://github.com/simstudioai/sim/pull/9830/files#diff-e22aa51eb6958a226e8ab3fe57f572e6ca93c2fc23a27d9e03f2a193a5f71d3b
THIRD_PARTY_LICENSES https://github.com/simstudioai/sim/pull/9830/files#diff-d1737bf48b2771049cf45e13b1d2cfa05dce4a6f3e31bdbcdae2e759d472c117
db.ts https://github.com/simstudioai/sim/pull/9830/files#diff-7c006f9aa879fda1b3418357ffd8c970e51306687db7abe14b51f9dca1536da7
detect.ts https://github.com/simstudioai/sim/pull/9830/files#diff-82c89ab84c15204c8e1895c45cdc05bf15ccb41d16fb6c55437c476446fe653b
env-files.test.ts https://github.com/simstudioai/sim/pull/9830/files#diff-42319bcf6571d307188c4fb9a86cdc47231d142c4d54f9f16ec729612ca32f65
env-files.ts https://github.com/simstudioai/sim/pull/9830/files#diff-0ba42f1b90e31b90010f56c986d0a13d14deecfdbd0c9efa51359d2293662988
lifecycle.ts https://github.com/simstudioai/sim/pull/9830/files#diff-6897f7c4ffb93578c61e9c4deb76836f0b218284665f6cfeab88d0f6f01a901f
dev.ts https://github.com/simstudioai/sim/pull/9830/files#diff-795c97a1d16bee71d049e163b2b9bab7de8cc656cfb3f1dd61daf9720fe8a774
redis.ts https://github.com/simstudioai/sim/pull/9830/files#diff-c549a53c143c24392966a5e2b7a3d97500222266161b0b2b3eeb332c6fb97bb5
check-utils-enforcement.test.ts https://github.com/simstudioai/sim/pull/9830/files#diff-b86c7b18b7d20e73d3ad777dfc25f30887aec4c954c84da5168a60e3c90ab6e3
check-utils-enforcement.ts https://github.com/simstudioai/sim/pull/9830/files#diff-67edd4aff6ce422e5be5d09dd1a9fb0fa9aa03edb24c685d99f3ec557b05f0b4
.github/workflows/publish-cli.ymlhttps://github.com/simstudioai/sim/pull/9830/files#diff-2710cb58a3ba7ed6e1ebae0fcfd9f667494e2953cb3a69512776cb13ad7e2e96
View file https://github.com/simstudioai/sim/blob/20a924c912a76d01b7bcbb2800200a3d8d56aab5/.github/workflows/publish-cli.yml
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/9830/files
.github/workflows/publish-sim-cli.ymlhttps://github.com/simstudioai/sim/pull/9830/files#diff-fbcf47b42bc89dfa2036913f1527d4a5c64109223ce9a9e62f049b925203c430
View file https://github.com/simstudioai/sim/blob/1625172e2a0f6b84a3320ac450217fb5330f6ad3/.github/workflows/publish-sim-cli.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9830/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9830/files#diff-fbcf47b42bc89dfa2036913f1527d4a5c64109223ce9a9e62f049b925203c430
https://github.com/simstudioai/sim/pull/9830/files#diff-fbcf47b42bc89dfa2036913f1527d4a5c64109223ce9a9e62f049b925203c430
https://github.com/simstudioai/sim/pull/9830/files#diff-fbcf47b42bc89dfa2036913f1527d4a5c64109223ce9a9e62f049b925203c430
biome.jsonhttps://github.com/simstudioai/sim/pull/9830/files#diff-2bc8a1f5e9380d5a187a4e90f11b4dd36c3abad6aea44c84be354a4f44cdec55
View file https://github.com/simstudioai/sim/blob/1625172e2a0f6b84a3320ac450217fb5330f6ad3/biome.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9830/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9830/files#diff-2bc8a1f5e9380d5a187a4e90f11b4dd36c3abad6aea44c84be354a4f44cdec55
https://github.com/simstudioai/sim/pull/9830/files#diff-2bc8a1f5e9380d5a187a4e90f11b4dd36c3abad6aea44c84be354a4f44cdec55
https://github.com/simstudioai/sim/blob/staging/.github/CODEOWNERS#L38
bun.lockhttps://github.com/simstudioai/sim/pull/9830/files#diff-bfd0ef82a01108fa1e836c2500b98b7de8a92bb1ae352a8efcbd9d6ffcaabd60
View file https://github.com/simstudioai/sim/blob/1625172e2a0f6b84a3320ac450217fb5330f6ad3/bun.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/simstudioai/sim/pull/9830/files
knip.jsonchttps://github.com/simstudioai/sim/pull/9830/files#diff-48d5ba4681726b42e98dae10c08bd94f7f9836644c8f183c6475d10dcf67ebf1
View file https://github.com/simstudioai/sim/blob/1625172e2a0f6b84a3320ac450217fb5330f6ad3/knip.jsonc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/9830/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/9830/files#diff-48d5ba4681726b42e98dae10c08bd94f7f9836644c8f183c6475d10dcf67ebf1
https://github.com/simstudioai/sim/pull/9830/files#diff-48d5ba4681726b42e98dae10c08bd94f7f9836644c8f183c6475d10dcf67ebf1
packages/cli/README.mdhttps://github.com/simstudioai/sim/pull/9830/files#diff-15986190ef9581ab59bcd5483b2c09e7fd0bd439d6f6cddbc94b0b1de094ee51
View file https://github.com/simstudioai/sim/blob/20a924c912a76d01b7bcbb2800200a3d8d56aab5/packages/cli/README.md
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/9830/files
https://github.com/simstudioai/sim/blob/staging/.github/CODEOWNERS#L36
packages/cli/package.jsonhttps://github.com/simstudioai/sim/pull/9830/files#diff-6e2e2a1851648938b325ba84de634407a4e69a644ea61102df15ca4a8a7a9758
View file https://github.com/simstudioai/sim/blob/20a924c912a76d01b7bcbb2800200a3d8d56aab5/packages/cli/package.json
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/simstudioai/sim/pull/9830/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9830/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/9830/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.