Repository navigation
docs(start-os): note that services at shared addresses share browser cookies - #4957
Conversation
…cookies Browsers scope cookies by hostname, not port, so services opened at the server's .local address or its IP addresses share cookies. Say so on the interfaces page, and point to private domains for keeping them apart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
helix-white
left a comment
There was a problem hiding this comment.
Approved at fc316ab.
The Interfaces page now explains that different ports on the same hostname do not isolate service cookies, distinguishes HttpOnly cookies from script-readable cookies, and points readers to the existing address toggles and private-domain setup. It also records the parent-domain cookie caveat. This documents existing behavior without changing networking, authentication, or defaults; targeting live-docs publishes the correction without waiting for an OS release.
Implementation diff: +0 / −0 lines in 0 files (excludes lockfiles, tests, docs, release notes, and changelog).
Checked the surrounding book guidance, domain uniqueness enforcement, and the released 0.4.2.1 sources for browser-cookie use. The new relative links resolve to existing pages and headings. Both the merge into live-docs and the simulated backport onto current master are conflict-free.
CI's Prettier, Conflict Markers, and Docs-only checks passed; code checks were skipped for this documentation-only change. No local builds or tests were run, and browser behavior was not exercised end to end.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
…kies Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
helix-white
left a comment
There was a problem hiding this comment.
The original StartOS-book change still looks good. The added packaging guidance needs a scoped correction before it becomes always-on workspace instruction.
In projects/start-sdk/docs/src/interfaces.md, “never configure it to treat another interface on the server as cross-site” conflates browser site classification with application trust. Interfaces reached through unrelated private/public domains really can be cross-site, even on one server; packagers must still be able to configure legitimate cross-site clients. Conversely, two ports at the same hostname are different origins even when they are same-site, and co-location must not put the other service on a trusted-origin or CSRF-exemption list. The proposal replaces that prohibition with the explicit origin-trust rule and explains why SameSite cookies alone cannot stop same-site CSRF.
The proposal also scopes the shared-cookie/same-site claim in both the reference page and agent-context.md to services opened at the same shared hostname, with the same scheme for same-site classification. Physical co-location alone does not establish either property; the user-facing section already scopes its warning to the addresses actually opened.
The PR merges cleanly into live-docs, and its simulated backport onto current master is clean. No builds or tests were run on this review proposal; the author verifies any adopted changes.
Proposed changes: 69e8822...proposal/4957
To adopt the proposal, cherry-pick it onto your branch rather than merging or pulling it, so the PR's head stays your own commit:
git fetch https://github.com/Start9Labs/start-technologies.git proposal/4957
git cherry-pick 69e8822a631772097bf28636566e78a29dabaa0d..FETCH_HEADIf your branch has moved since 69e8822, resolve any conflicts the cherry-pick reports, or apply the changes your own way. Then push and say so in a comment.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
…d origin trust Co-Authored-By: helix-white <267227783+helix-a@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@helix-white adopted |
helix-white
left a comment
There was a problem hiding this comment.
Approved at f02d111. Both earlier findings are addressed; the adopted tree matches the review proposal.
The StartOS book explains shared-address cookie exposure and links to existing private-domain and address-toggle controls. The packaging guide and workspace agent context preserve application CSRF/Origin checks and HttpOnly session cookies, explain why SameSite alone does not isolate services at one hostname and scheme, and forbid trusting another service's origin merely because it is co-located. The user-facing text retains the parent-domain cookie caveat. This changes documentation and packager instructions, not runtime behavior or defaults, and belongs on live-docs for immediate publication.
Implementation diff: +0 / −0 lines in 0 files (excludes lockfiles, tests, docs, release notes, and changelog).
The PR merges cleanly into current live-docs; the simulated automatic backport onto current master is also clean. The head's push-triggered Docs-only and Conflict Markers checks passed. Prettier and the metadata-triggered checks were still pending when inspected; runtime checks are skipped for the docs-only change. No local builds or tests were run, and browser behavior was not exercised end to end.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Browsers keep cookies per hostname, not per port. Every service is reachable at the server's shared addresses — its
.localaddress and its IP addresses, each on the service's own port — so services opened there share cookies: each service's cookies are sent to the others, and a page from one can read or change another's non-HttpOnly cookies.This adds a short Shared Addresses and Browser Cookies section to the StartOS book's Interfaces page. It says:
Set-Cookieis issued anywhere instart-coreor the UI atstart-os/v0.4.2.1..localand IP rows off in the gateway tables. Every row has its own toggle in 0.4.2.1 (addresses/gateway/item.component.ts).handle_duplicatesinnet/host/address.rsrejects a domain already in use by another host. Public domains and onion addresses are already one per service. Sibling subdomains of one parent domain are separate too, except that one of them can set a cookie for the parent domain.This targets
live-docsbecause it describes what 0.4.2.1 already does. It doesn't mention the private-HTTP opt-ins from #4680, which ship in 0.4.3 and aren't in the published book. The packaging guide gains the packager's side ininterfaces.md§ Network Reachability: services opened at the same shared hostname share cookies and, with the same scheme, count as same-site, soSameSitealone doesn't stop CSRF from another service; keep an application's CSRF andOriginchecks and HttpOnly session cookies on, and don't trust another service's origin because it runs on the same server. The same rule is one clause inagent-context.md's Interfaces bullet, so every packaging workspace and Helix carry it. This is docs-only, so there is no changelog entry.review effort: 'high'
🤖 Generated with Claude Code