Skip to content

Privacy-strict installs: two outbound channels have no off switch, and the bug-report switch does not work on the published images #4499

Closed

Description

@dolho

Summary

An operator who must guarantee that nothing leaves the instance except the model calls they configured cannot do it with settings alone. .env.example offers DO_NOT_TRACK=1 and per-channel switches "for air-gapped / privacy-strict installs", but two outbound channels have no switch at all, one switch only works when the frontend is built locally, and DO_NOT_TRACK covers two channels out of five.

Found on v1.0.5-rc2 (af465288a) by reading every hardcoded outbound host in src/, docker/ and the compose files.

What leaves the box today

Channel What is sent Off switch Covered by DO_NOT_TRACK
Operator intake (operator_intake_service) email + company, once, on consent OPERATOR_INTAKE_ENABLED=false yes
Telemetry sharing (telemetry_sharing_service) aggregate counts, on consent TELEMETRY_SHARING_ENABLED=false yes
Help widget, Bug / Feature / Feedback tabs (HelpChatWidget.vue) title, description, optional email, route, URL, user agent, console lines VITE_BUG_REPORTING_ENABLED=false, build time only no
Help widget, Ask tab (HelpChatWidget.vue, ENDPOINT) whatever the person types, to the hosted docs Q&A endpoint none (the URL is a constant) no
ask_trinity MCP tool (mcp-server/src/tools/ask_trinity_client.ts, also helper-mcp) whatever the agent writes as its question none; .env.example suggests pointing ASK_TRINITY_ENDPOINT at an unreachable URL no

Not in scope, checked and already closed by default: the Claude Code and Gemini vendor-telemetry settings (managed-settings.d/70-vendor-telemetry.json, gemini_settings.py), and the OTel collector, which exports only to the local Prometheus endpoint. The remote template registry is a read with its own TEMPLATE_REGISTRY_ENABLED switch and sends nothing.

The three gaps

  1. The Ask tab cannot be turned off. The endpoint is a constant in the component and the tab is always shown. A person can paste anything into it.
  2. ask_trinity cannot be turned off. It is the one channel where an agent writes free text to a vendor-hosted service, and agents are what hold a customer's data. The documented workaround is an unreachable URL, which still registers the tool, still lets the agent try, and reads as a network fault rather than a policy.
  3. The bug-report switch is a build argument. docker-compose.prod.yml passes it to the frontend build; docker-compose.hosted.yml runs the published trinity-frontend image, where the value is already compiled in as true. An install on the published images cannot disable it. The production CSP (security-headers.conf) also allows both hosts in connect-src whatever the setting.

Reproduce

  1. Start an instance from docker-compose.hosted.yml with DO_NOT_TRACK=1, OPERATOR_INTAKE_ENABLED=false, TELEMETRY_SHARING_ENABLED=false, VITE_BUG_REPORTING_ENABLED=false in .env.
  2. Open the UI, open the help widget. Actual: the Ask tab answers (request to the hosted docs endpoint); the Bug, Feature and Feedback tabs are present and submit.
  3. From an agent, call ask_trinity. Actual: the question is sent and answered.

Expected

One operator setting, read at run time, after which the instance makes no request to a vendor-operated host: no help-widget tab that posts off the box, no ask_trinity tool, no intake, no telemetry sharing. DO_NOT_TRACK=1 should be that setting, since the docs already present it as the air-gapped opt-out. The per-channel switches stay for finer control.

Acceptance criteria

  • DO_NOT_TRACK=1 (or one named equivalent) disables all five channels in the table, on both the locally built and the published images, with no rebuild
  • The help widget reads its switches from the backend at run time; with reporting off the Bug / Feature / Feedback tabs are absent, with docs Q&A off the Ask tab is absent, and with both off the widget is not rendered
  • ask_trinity has a real off switch: with it off the tool is not listed for any scope (main MCP server; helper-mcp documents its own)
  • With everything off, the served CSP connect-src does not list the intake or docs Q&A hosts
  • A test enumerates the hardcoded vendor hosts in src/ and fails when a new one appears without a switch wired to the kill setting, so the next channel (for example the proposed install beacon) cannot ship outside it
  • .env.example and the user docs state, in one place, what the setting turns off and what it does not (the operator's own model provider, GitHub and email settings)

Activity

  1. added
    priority-p1
    type-bug
    theme-security
    complexity-medium
    on Nov 12, 2026
  2. dolho commented on Nov 12, 2026

    @dolho
    ContributorAuthor

    /claim

  3. added
    status-in-progress
    on Nov 12, 2026
  4. github-actions commented on Nov 12, 2026

    @github-actions

    Claimed by @dolho. Label status-in-progress added.

    Next steps:

    1. Create branch: feature/4499-<short-slug>
    2. Implement the feature
    3. Open a PR with Fixes #4499
  5. dolho commented on Nov 12, 2026

    @dolho
    ContributorAuthor

    Reproduced on a local v1.0.5-rc2 stack (docker-compose.yml, PostgreSQL) started with DO_NOT_TRACK=1, OPERATOR_INTAKE_ENABLED=false, TELEMETRY_SHARING_ENABLED=false, VITE_BUG_REPORTING_ENABLED=false, TEMPLATE_REGISTRY_ENABLED=false.

    The two documented switches hold. GET /api/settings/telemetry-sharing and /operator-intake both answer hard_disabled: true; PUT telemetry-sharing {enabled: true} is 409 ("disabled by configuration … consent cannot enable egress").

    The three gaps are live.

    • Compose recreated only the backend. The MCP server and the frontend were left as they were, because none of the five variables reaches either container.
    • ask_trinity is still in the tool list for an agent-scoped key, and a call is answered by the hosted docs service (full answer and a session_id returned).
    • The frontend serves the help widget with the docs endpoint and the intake URL in it. import.meta.env in the served module carries no VITE_BUG_REPORTING_ENABLED at all, so the widget's own check reads it as enabled. One more case than the issue lists: docker-compose.yml does not pass that variable to the frontend, so the switch is inert there too, not only on the published images.
    • The served Content-Security-Policy still allows both hosts in connect-src.
  6. added a commit that references this issue on Nov 13, 2026
  7. added
    status-in-dev
    and removed
    status-in-progress
    on Nov 13, 2026
  8. removed
    status-in-dev
    on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

complexity-mediumpriority-p1theme-securitytype-bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions