René's URL Explorer Experiment


Title: fix(docker): require auth secrets in prod and Ollama Compose files by waleedlatif1 · Pull Request #5806 · simstudioai/sim · GitHub

Open Graph Title: fix(docker): require auth secrets in prod and Ollama Compose files by waleedlatif1 · Pull Request #5806 · simstudioai/sim

X Title: fix(docker): require auth secrets in prod and Ollama Compose files by waleedlatif1 · Pull Request #5806 · simstudioai/sim

Description: Summary Builds on #5801 (included as the first commit) and closes the remaining gap in that fix: the same first-user-signup failure still exists in docker-compose.ollama.yml, which many self-hosters use because it's the "try Sim with local models" path. Root cause (the part #5801 didn't cover) docker-compose.ollama.yml fell back to broken secret defaults: BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET:-sim_auth_secret_$(openssl rand -hex 16)} and ENCRYPTION_KEY=${ENCRYPTION_KEY:-$(openssl rand -hex 32)} — Docker Compose does not perform $(...) command substitution, so these resolve to the literal strings, i.e. a fixed, shared, weak secret across every install. Worse, the ENCRYPTION_KEY literal ($(openssl rand -hex 32), 22 chars) is under the 32-char minimum the app enforces (z.string().min(32)), so it fails env validation. INTERNAL_API_SECRET — required (z.string().min(32)) by both the app (apps/sim/lib/core/config/env.ts) and realtime (apps/realtime/src/env.ts) — was not passed at all, so the Ollama quick start couldn't sign up the first admin, exactly like the prod bug in #5625. Changes Mirror the prod hardening in docker-compose.ollama.yml: require BETTER_AUTH_SECRET, ENCRYPTION_KEY, and INTERNAL_API_SECRET via mandatory ${VAR:?...} interpolation, and add INTERNAL_API_SECRET to both simstudio and realtime. Extend the regression test to assert the mandatory-secret interpolation for both docker-compose.prod.yml and docker-compose.ollama.yml. Note the .env prerequisite in the Ollama section of the docs (en/de/es/fr/ja/zh) and CONTRIBUTING. Validation vitest run lib/core/config/docker-compose-secrets.test.ts — 10 passed (5 prod + 5 ollama; the test parses the real Compose files). biome check on the test file — passed. Both Compose files parse as valid YAML (loaded by the test via js-yaml). Credit First commit is @brainx's original #5801. This PR supersedes it — merging this lands both fixes together. Fixes #5625

Open Graph Description: Summary Builds on #5801 (included as the first commit) and closes the remaining gap in that fix: the same first-user-signup failure still exists in docker-compose.ollama.yml, which many self-hoster...

X Description: Summary Builds on #5801 (included as the first commit) and closes the remaining gap in that fix: the same first-user-signup failure still exists in docker-compose.ollama.yml, which many self-hoster...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:fda41b5f-0b0c-2f5c-cafb-5ff159f6469a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEB52:15EB3D:51993:719E2:6A634E4A
html-safe-nonceaec9ca9ba1708c2690531f26ab05893fe530ee129f95e16b2aff6c0022006ea8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjUyOjE1RUIzRDo1MTk5Mzo3MTlFMjo2QTYzNEU0QSIsInZpc2l0b3JfaWQiOiI1Nzg1ODc3Nzc0ODI2OTUwMjE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf95bc8f98a6dcc1169d2b351558c2d950f184262796b66c3203ec68d0bdcc564
hovercard-subject-tagpull_request:4102191658
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/5806/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 Builds on #5801 (included as the first commit) and closes the remaining gap in that fix: the same first-user-signup failure still exists in docker-compose.ollama.yml, which many self-hoster...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
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
release990295d92a4cc7b63fbbd83a046217cd7d77d49c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5806/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5806%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5806%2Ffiles
Sign up https://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/5806/files
Reloadhttps://github.com/simstudioai/sim/pull/5806/files
Reloadhttps://github.com/simstudioai/sim/pull/5806/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5806/files
simstudioai https://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Notifications https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Fork 3.7k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Star 29.2k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Code https://github.com/simstudioai/sim
Issues 111 https://github.com/simstudioai/sim/issues
Pull requests 121 https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality 0 https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Code https://github.com/simstudioai/sim
Issues https://github.com/simstudioai/sim/issues
Pull requests https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality https://github.com/simstudioai/sim/security
Insights https://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
worktree-fix-ollama-compose-secretshttps://github.com/simstudioai/sim/tree/worktree-fix-ollama-compose-secrets
Conversation 9 https://github.com/simstudioai/sim/pull/5806
Commits 3 https://github.com/simstudioai/sim/pull/5806/commits
Checks 19 https://github.com/simstudioai/sim/pull/5806/checks
Files changed https://github.com/simstudioai/sim/pull/5806/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5806/files
fix(docker): require auth secrets in prod and Ollama Compose files https://github.com/simstudioai/sim/pull/5806/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/5806/files
7c24159 fix(docker): require persistent auth secrets brainx Jul 21, 2026 https://github.com/simstudioai/sim/pull/5806/commits/7c24159218f9aa75023f66152e57a93706cb6ca0
3d6cb87 fix(docker): require the same auth secrets in the Ollama Compose file waleedlatif1 Jul 21, 2026 https://github.com/simstudioai/sim/pull/5806/commits/3d6cb877f157c426e13bdd98c011a1e612e7ebe9
41f1fef docs(docker): add upgrade path for installs with an existing .env waleedlatif1 Jul 21, 2026 https://github.com/simstudioai/sim/pull/5806/commits/41f1fef742ce5b5b1ce1c5eb1d0dff733071a903
Clear filters https://github.com/simstudioai/sim/pull/5806/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5806/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5806/files
CONTRIBUTING.md https://github.com/simstudioai/sim/pull/5806/files#diff-98e64bc1cd2db9333c6effe87bbe0d6dfe8714aba4c6bde45aa037fe0796e44c
README.md https://github.com/simstudioai/sim/pull/5806/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docker.mdx https://github.com/simstudioai/sim/pull/5806/files#diff-2b12a5a775bb68bd0ae1d241157a3e505ced08075e3aae3ad4b65f923540f948
docker.mdx https://github.com/simstudioai/sim/pull/5806/files#diff-395e33e858c3785afbfcfe801744e43187f868f91b8898a08e8d989aa28fa9d4
docker.mdx https://github.com/simstudioai/sim/pull/5806/files#diff-cf3a274f1cd6a47a783726327d06bffa33f0492922cfba3f489dbb9e6928b770
docker.mdx https://github.com/simstudioai/sim/pull/5806/files#diff-23811f776e578c5fab403048dd8cb1b85ca08703c07fad42f3107c42a1535bc7
docker.mdx https://github.com/simstudioai/sim/pull/5806/files#diff-f7a4db7e218de5b1eddf8245e5c0f32a4907f1f03a2028b60a8e163656436039
docker.mdx https://github.com/simstudioai/sim/pull/5806/files#diff-7cea481d3c9e321eb5f9933c7ef51cf78eb5081cc1ecc1b8088511fd2f542420
docker-compose-secrets.test.ts https://github.com/simstudioai/sim/pull/5806/files#diff-31d3e744200ba023df3902b76d1903fd91a3291fceee3597747761409e203456
docker-compose.ollama.yml https://github.com/simstudioai/sim/pull/5806/files#diff-737a67a46dcbb3e3301376346ca7b65d3698414251cb7c36e507b3df85203144
docker-compose.prod.yml https://github.com/simstudioai/sim/pull/5806/files#diff-4563fbe997bbf18c3b38ad79c596c57c3ad88361f1dccb8c4f39b429382c06d3
.github/CONTRIBUTING.mdhttps://github.com/simstudioai/sim/pull/5806/files#diff-98e64bc1cd2db9333c6effe87bbe0d6dfe8714aba4c6bde45aa037fe0796e44c
View file https://github.com/simstudioai/sim/blob/41f1fef742ce5b5b1ce1c5eb1d0dff733071a903/.github/CONTRIBUTING.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5806/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5806/files#diff-98e64bc1cd2db9333c6effe87bbe0d6dfe8714aba4c6bde45aa037fe0796e44c
https://github.com/simstudioai/sim/pull/5806/files#diff-98e64bc1cd2db9333c6effe87bbe0d6dfe8714aba4c6bde45aa037fe0796e44c
https://github.com/simstudioai/sim/pull/5806/files#diff-98e64bc1cd2db9333c6effe87bbe0d6dfe8714aba4c6bde45aa037fe0796e44c
README.mdhttps://github.com/simstudioai/sim/pull/5806/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/simstudioai/sim/blob/41f1fef742ce5b5b1ce1c5eb1d0dff733071a903/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5806/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5806/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
Please reload this pagehttps://github.com/simstudioai/sim/pull/5806/files
https://github.com/simstudioai/sim/pull/5806/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
apps/docs/content/docs/de/self-hosting/docker.mdxhttps://github.com/simstudioai/sim/pull/5806/files#diff-2b12a5a775bb68bd0ae1d241157a3e505ced08075e3aae3ad4b65f923540f948
View file https://github.com/simstudioai/sim/blob/41f1fef742ce5b5b1ce1c5eb1d0dff733071a903/apps/docs/content/docs/de/self-hosting/docker.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5806/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5806/files#diff-2b12a5a775bb68bd0ae1d241157a3e505ced08075e3aae3ad4b65f923540f948
https://github.com/simstudioai/sim/pull/5806/files#diff-2b12a5a775bb68bd0ae1d241157a3e505ced08075e3aae3ad4b65f923540f948
https://github.com/simstudioai/sim/pull/5806/files#diff-2b12a5a775bb68bd0ae1d241157a3e505ced08075e3aae3ad4b65f923540f948
https://github.com/simstudioai/sim/pull/5806/files#diff-2b12a5a775bb68bd0ae1d241157a3e505ced08075e3aae3ad4b65f923540f948
https://github.com/simstudioai/sim/pull/5806/files#diff-2b12a5a775bb68bd0ae1d241157a3e505ced08075e3aae3ad4b65f923540f948
apps/docs/content/docs/en/platform/self-hosting/docker.mdxhttps://github.com/simstudioai/sim/pull/5806/files#diff-395e33e858c3785afbfcfe801744e43187f868f91b8898a08e8d989aa28fa9d4
View file https://github.com/simstudioai/sim/blob/41f1fef742ce5b5b1ce1c5eb1d0dff733071a903/apps/docs/content/docs/en/platform/self-hosting/docker.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5806/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5806/files#diff-395e33e858c3785afbfcfe801744e43187f868f91b8898a08e8d989aa28fa9d4
https://github.com/simstudioai/sim/pull/5806/files#diff-395e33e858c3785afbfcfe801744e43187f868f91b8898a08e8d989aa28fa9d4
https://github.com/simstudioai/sim/pull/5806/files#diff-395e33e858c3785afbfcfe801744e43187f868f91b8898a08e8d989aa28fa9d4
https://github.com/simstudioai/sim/pull/5806/files#diff-395e33e858c3785afbfcfe801744e43187f868f91b8898a08e8d989aa28fa9d4
https://github.com/simstudioai/sim/pull/5806/files#diff-395e33e858c3785afbfcfe801744e43187f868f91b8898a08e8d989aa28fa9d4
https://github.com/simstudioai/sim/pull/5806/files#diff-395e33e858c3785afbfcfe801744e43187f868f91b8898a08e8d989aa28fa9d4
apps/docs/content/docs/es/self-hosting/docker.mdxhttps://github.com/simstudioai/sim/pull/5806/files#diff-cf3a274f1cd6a47a783726327d06bffa33f0492922cfba3f489dbb9e6928b770
View file https://github.com/simstudioai/sim/blob/41f1fef742ce5b5b1ce1c5eb1d0dff733071a903/apps/docs/content/docs/es/self-hosting/docker.mdx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5806/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5806/files#diff-cf3a274f1cd6a47a783726327d06bffa33f0492922cfba3f489dbb9e6928b770
https://github.com/simstudioai/sim/pull/5806/files#diff-cf3a274f1cd6a47a783726327d06bffa33f0492922cfba3f489dbb9e6928b770
https://github.com/simstudioai/sim/pull/5806/files#diff-cf3a274f1cd6a47a783726327d06bffa33f0492922cfba3f489dbb9e6928b770
https://github.com/simstudioai/sim/pull/5806/files#diff-cf3a274f1cd6a47a783726327d06bffa33f0492922cfba3f489dbb9e6928b770
https://github.com/simstudioai/sim/pull/5806/files#diff-cf3a274f1cd6a47a783726327d06bffa33f0492922cfba3f489dbb9e6928b770
Please reload this pagehttps://github.com/simstudioai/sim/pull/5806/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5806/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.