fix(deploy): write WEBCLAW_API_KEY in generated .env#68
Merged
Conversation
…H_KEY setup.sh and deploy/hetzner.sh emitted WEBCLAW_AUTH_KEY into the server's .env, but webclaw-server reads WEBCLAW_API_KEY (env = "WEBCLAW_API_KEY"). The generated key was silently ignored — and since hetzner.sh binds 0.0.0.0, the server refused to start at all (it rejects a public bind without WEBCLAW_API_KEY). Fix both .env writers, plus the hetzner help line that told users to grep the wrong name and the env.example sample. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- LLM provider chain is Ollama -> OpenAI -> Gemini -> Anthropic; Gemini was added ahead of Anthropic (Google Cloud credits preferred) but the docs still listed Ollama -> OpenAI -> Anthropic. - Document the top-level webclaw-fetch verticals reddit.rs / linkedin.rs (distinct from extractors/ and webclaw-core parsers) and progress.rs. - Bump extractor count ~28 -> ~30 and call out the shared helpers (og.rs, github_common.rs, jsonld_product.rs, ecommerce_product.rs). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Two independent fixes split off from the e-commerce refactor branch.
1. Deploy bug — wrong env-var name in generated
.env(a8eb6b3)setup.shanddeploy/hetzner.shwroteWEBCLAW_AUTH_KEYinto the server's.env, butwebclaw-serverreadsWEBCLAW_API_KEY(#[arg(long, env = "WEBCLAW_API_KEY")]incrates/webclaw-server/src/main.rs).Impact:
hetzner.sh: it binds0.0.0.0, and the server refuses to bind a public interface withoutWEBCLAW_API_KEY(main.rs:83) → the deploy failed to start.Fixed all four occurrences of the typo:
setup.sh— generated.envwriterdeploy/hetzner.sh— cloud-init.envwriterdeploy/hetzner.sh— help line that told users togrep WEBCLAW_AUTH_KEYenv.example— commented sampleShell-local variable names (
$auth_key/$AUTH_KEY) are unchanged — only the written env-var name was wrong.2. Docs refresh —
core/CLAUDE.md(e9abc8f)Caught while verifying the above against the source tree:
webclaw-fetchverticalsreddit.rs/linkedin.rsand theprogress.rsslow-fetch emitter.~28 → ~30, and called out the shared helpers (og.rs,github_common.rs,jsonld_product.rs,ecommerce_product.rs).Verification
grep -rn WEBCLAW_AUTH_KEY→ no remaining references in the repo.bash -n setup.shandbash -n deploy/hetzner.shboth pass.#[tool]inwebclaw-mcp/src/server.rs.🤖 Generated with Claude Code