Skip to content

docs(auth): correct four claims the code no longer backs - #75

Merged
htcom-code merged 1 commit into
mainfrom
docs/auth-guide-stale-claims
Oct 12, 2026
Merged

htcom-code merged 1 commit into
mainfrom
docs/auth-guide-stale-claims

Conversation

@htcom-code

Copy link
Copy Markdown
Owner

Why

docs/authentication.md is the public guide an operator follows to wire auth into the console. Four of its statements describe code that is not there, or leave out a condition, so following them would not work.

What

# Guide said Code says Change
1 REST is a "fallback" through fetchSnapshot fetchSnapshot has no callers; the module-routes drawer is the only REST call Table row and diagram start from getModuleRoutes; a note says what fetchSnapshot is
2 "fetchSnapshot already classifies auth responses; the top bar reuses…" The top bar and banner render AUTH REQUIRED / AUTH REJECTED, but nothing produces the auth reason: the stream always reports unreachable, the drawer shows "Failed to load routes." States what exists (display) and what is missing (classification)
3 The Vite proxy forwards headers and cookies True, but only under npm run dev; vite build has no proxy Adds the dev-only scope and how to keep the same-origin cookie path in production
4 Session cookie recommended, cross-origin needs withCredentials + CORS credentials Also needs SameSite=None; Secure, so HTTPS Adds the condition

1 and 2 were false. 3 was incomplete in scope, and 4 left out a condition. Neither was wrong.

The guide stays in English. It is a public operator guide, like the README, and is kept as an exception to the repo's Korean docs/ default.

fetchSnapshot itself is not removed here. Its removal is tracked separately with the REST surface work.

docs/authentication.md is the public guide an operator follows to wire
auth into the console. Four of its statements describe code that is not
there, or leave out a condition, so following them would not work.

- REST is not a fallback. The guide named fetchSnapshot as the REST
  fallback that shares getJson with the module-routes drawer, but
  nothing calls fetchSnapshot (its only reference is its declaration).
  The drawer is the only REST call; the diagram now starts there and a
  note says what fetchSnapshot is
- The 401/403 surface is not already half wired. The guide said
  fetchSnapshot classifies auth responses for the top bar to reuse. The
  top bar and banner do render AUTH REQUIRED / AUTH REJECTED, but no
  path produces the auth reason: the stream reports every failure as
  unreachable and the drawer shows "Failed to load routes."
- The dev proxy note is true but dev-only. vite build has no proxy, so a
  production bundle sends /platform to its own origin; the guide now
  says so and how to keep the same-origin cookie path
- Cross-origin cookies need SameSite=None; Secure, so they require the
  platform over HTTPS. The recommended cookie scheme did not say that

The guide stays in English: it is a public operator guide, like the
README, and is kept as an exception to the Korean docs/ default.

Tags: #docs #auth

Co-Authored-By: htjulia <htjulia1@gmail.com>
@htcom-code
htcom-code merged commit 5d90810 into main Oct 12, 2026
4 checks passed
@htcom-code
htcom-code deleted the docs/auth-guide-stale-claims branch October 12, 2026 02:14
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.

1 participant