Repository navigation
build(compose): stop publishing host ports and take the Basic Auth value from the environment [10m] - #76
Draft
Gl4dr3x wants to merge 1 commit into
Draft
build(compose): stop publishing host ports and take the Basic Auth value from the environment [10m]#76Gl4dr3x wants to merge 1 commit into
Gl4dr3x wants to merge 1 commit into
Conversation
…lue from the environment Replace ports with expose on rsshub and real-browser so only the stack's network and Traefik reach them. The Traefik basicauth users label now takes its value from RSSHUB_BASIC_AUTH, which Coolify supplies; the file no longer carries a credential, and a deploy is blocked while the variable is empty. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Oct 26, 2026
Collaborator
Author
|
Before the test deploy: the same approach was tried on 2026-04-01 ( An AI agent wrote this text in my name, on my instructions. |
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.
Gap:
docker-compose.custom.ymlpublishesrsshubon host port 1200 andreal-browseron host port 3001, and carries the Basic Auth credential for RSSHub as a literal Traefik label value in a public repository. Nothing needs the host ports; the credential should not be in the file.Change:
rsshubandreal-browseruseexpose(1200,3000) instead ofports. Thebasicauth.userslabel keeps its middleware, so RSSHub stays protected, and takes its value from${RSSHUB_BASIC_AUTH:?}, a Coolify environment variable. A deploy is blocked while the variable is empty, so the file cannot go out unprotected by omission.Before merge, in Coolify:
RSSHUB_BASIC_AUTHon the RSSHub app to theuser:hashline fromhtpasswd -nbB <user> '<password>'. Do not reuse the previous password.$signs of the hash; enter the hash with every$doubled and redeploy.browserless, and one usingreal-browser) to confirm the services still reach each other.:1200or:3001on the host.Unverified: The behavior of
${VAR:?}inside a label and the$handling in Coolify's generated env file come from Coolify's documentation, not from a run. Nothing was run on a Docker host.Out of scope: Git history still holds the old value; rotating the password in step 1 is what closes that.
Closes workoho/hostwarden-workspace#70. Refs workoho/hostwarden-workspace#28.
Verified:
git diffreviewed;oxfmtnot applied (config excludes*.ymlfrom the hook). Pre-commit hook could not run on Windows here (no shebang, nonode_modules), so the commit skipped it.🤖 Generated with Claude Code