Skip to content

viewer: startup warning when OPENCODE_VIEWER_ALLOWED_HOSTS exposes the store beyond loopback #13

Closed

Description

@abogartz

Rescoped 2026-10-26: the documentation half of this issue shipped; the startup warning did not.

Shipped: README now warns loudly — "Listing a non-loopback host serves the store over plain HTTP with no authentication — only do it on a network you control" (Surfaces section), and OPENCODE_VIEWER_ALLOWED_HOSTS is documented in the options table.

Remaining: when the viewer starts with OPENCODE_VIEWER_ALLOWED_HOSTS containing a non-loopback host, emit a visible startup warning (stderr line, same fail-visible convention as the capture-model warning). Today the operator configures exposure with no runtime signal that the store is being served unauthenticated.

Original finding (2026-10-21 security review): the viewer's Host/Origin guards are the only auth boundary; beyond loopback the store becomes readable/writable over plain HTTP by anyone who can reach the port.

Activity

  1. added
    documentation
    store-security
    on Oct 21, 2026
  2. changed the title [-]viewer: OPENCODE_VIEWER_ALLOWED_HOSTS beyond loopback is unauthenticated exposure — document loudly[/-] [+]viewer: startup warning when OPENCODE_VIEWER_ALLOWED_HOSTS exposes the store beyond loopback[/+] on Oct 27, 2026
  3. added
    severity:medium
    on Oct 30, 2026
  4. WhollyMindless commented on Oct 30, 2026

    @WhollyMindless
    Contributor

    Claiming the remaining startup-warning work. I will add a visible stderr warning for non-loopback OPENCODE_VIEWER_ALLOWED_HOSTS entries, with focused coverage of loopback-only and exposed configurations. No access-policy change intended. Please redirect if this overlaps work in progress.

  5. abogartz-opencode-self-improvement commented on Oct 31, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.14.28 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleasedseverity:mediumstore-security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions