Skip to content

integration-proxy 0.2.1: configurable operator name, and show the proxy host on consent (#132) - #150

Merged
michielbdejong merged 1 commit into
mainfrom
claude/issue-132-operator-name
Sep 24, 2026
Merged

michielbdejong merged 1 commit into
mainfrom
claude/issue-132-operator-name

Conversation

@michielbdejong

Copy link
Copy Markdown
Contributor

Closes #132.

  • New settings: OPERATOR_NAME (default "this integration proxy") and OPERATOR_URL (absolute http(s) URL; anything else refuses to start).
  • Consent page: shows "Integration proxy host, run by operator", with the BASE_URL host and its port when non-default. The host is also in the title, and the button reads "Use operator to sync …".
  • Landing page: now a template. The LocalThought header, link and tagline are gone.
  • Escaping: all HTML is escaped, now including ', and placeholders are filled in a single pass.
  • Tests: 11 new ones, covering both pages, escaping, URL validation and routing. cargo fmt, clippy -D warnings, cargo test --include-ignored (Postgres 16) and cargo package pass, and the Heroku wrapper builds.
  • Version: crate 0.2.1. Config gains two public fields; callers of Config::from_env() are unaffected.
  • Still LocalThought-branded: /logo.png and the provider User-Agent. SELF_HOSTING's Limits section says so.
  • To keep the old name on localthought.io: set OPERATOR_NAME=LocalThought and OPERATOR_URL=https://localthought.io.

🤖 Generated with Claude Code

The landing and consent pages hard-coded "LocalThought", which is wrong
for integrations.atomic.place and for anyone self-hosting the crate.

- New optional env vars: OPERATOR_NAME (default "this integration proxy",
  in which case the pages name no one) and OPERATOR_URL (an absolute
  http(s) URL without credentials, refused at startup otherwise), read
  into Config.operator_name / Config.operator_url.
- The consent page shows the BASE_URL host (host[:port]) and who runs it
  ("Integration proxy <host>, run by <operator>"), in the title too, and
  the button says "Use <operator> to sync <platform> ...".
- The landing page (static/index.html) is now a template with the
  operator name, link and host; the LocalThought header, GitHub link,
  tagline and logo alt text are gone. The logo image itself is unchanged.
- Every value is HTML-escaped, now including single quotes; placeholders
  are filled in one pass so a value cannot inject another placeholder.
- Tests: rendering with and without an operator, escaping of the name,
  URL and host, OPERATOR_URL validation, and a router-level test of / and
  /connect.
- SELF_HOSTING.md and README.md document both variables; README tells
  the localthought.io deployment how to keep its name.
- Crate version 0.2.1 (no CHANGELOG exists). Config gains two pub fields,
  so code that builds Config with a struct literal must add them;
  Config::from_env callers are unaffected.

Refs #132

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michielbdejong
michielbdejong merged commit 109776c into main Sep 24, 2026
18 checks passed
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.

integration-proxy: landing and consent pages say "LocalThought" whoever runs the proxy

1 participant