[DRAFT RFC] Browser-based auth & one-command client provisioning#55
Draft
saadqbal wants to merge 2 commits into
Draft
[DRAFT RFC] Browser-based auth & one-command client provisioning#55saadqbal wants to merge 2 commits into
saadqbal wants to merge 2 commits into
Conversation
Design epic for replacing copy-pasted Client ID + password onboarding with a device-flow (RFC 8628) browser sign-in + auto-provisioning. Refs #54. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
👋 Heads-up — Code review queue is at 16 / 8 Above the WIP limit. The team convention is to review existing PRs before opening new work. Open PRs currently in Code review (oldest first):
Pull from review before opening new work. (This is a nudge from the kanban WIP check, not a block.) |
- §6.6: derive namespace slug from display name ONCE then freeze (k8s namespaces are immutable); collision-suffix + empty-slug guard + --namespace override; backfill leaves existing slugs untouched. - §6.7: location is soft-required (required but pre-filled); never accept a silent empty (reads as carbon-free); explicit "set later" path; keep DB blank=True for back-compat, enforce at UX layer. - Appendix B: name→slug reference algorithm + prototype validation table + manage.py query to validate against production namespaces. Refs #54. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Draft for discussion — not for merge yet. Inline comments welcome on
docs/rfcs/0001-cli-auth-and-client-provisioning.md.Tracking epic: #54
What this is
Design RFC for replacing the current onboarding (sign up on web → hand-create a client at
/clients→ copy Client ID + password → paste into installer) with:Why it's mostly additive, not a rewrite
Grounded survey of
backend/client-runtime/clifound that most of the model already exists:EdgeDevice; human-readable name (first_name) and structured location (location→ Electricity MapsZONE_CHOICES) already exist and feed a working carbon pipeline.POST /edge-device/already exists.login+client create.Please weigh in on (RFC §11)
Not in scope yet
Sub-tickets across
backend/cli/client(§12) come after the design firms up.🤖 Generated with Claude Code