Give the Cloudflare grant a CLI surface, because L1 shipped it with none - #175
Open
wms2537 wants to merge 1 commit into
Open
Give the Cloudflare grant a CLI surface, because L1 shipped it with none#175wms2537 wants to merge 1 commit into
wms2537 wants to merge 1 commit into
Conversation
#162 L1 shipped five routes and two `doctor` findings and **no way to reach them** — no screen, no verb. So the one step in the whole ceremony that needs a human, pasting a client id and a secret Cloudflare shows once, had no surface but raw curl with a hand-extracted session cookie. Found by trying to do it. `mailda provider` reads the state and prints the ceremony; `--client-id` registers; `--scopes` begins a consent and prints the URL. Reuses `sessionCookie`, which already existed for `doctor`. **The secret is read from stdin, never an argument.** An argv is in `ps` and in the shell's history file, and Cloudflare shows the secret exactly once — so the one value that cannot be re-read is the one that must not be left lying in a history file. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019nasxsGa8Zb1kdvUu7iUZe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#162 L1 shipped five routes and two
doctorfindings and no way to reach them — no screen, no verb.So the one step in the ceremony that needs a human — pasting a client id and a secret Cloudflare shows once — had no surface but raw curl with a hand-extracted session cookie. Found by trying to actually do it.
Reuses
sessionCookie, which already existed fordoctor.The secret is read from stdin, never an argument. An argv is in
psand in the shell's history file, and Cloudflare shows the secret exactly once — so the one value that cannot be re-read is the one that must not be left lying in a history file.typecheck, lint, 490 node tests.
🤖 Generated with Claude Code
https://claude.ai/code/session_019nasxsGa8Zb1kdvUu7iUZe