ADR 0025 T6: auth login — origin-aware, prompt-minimal, forge-wide #32
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rework
internal/cmd/setup/per ADR 0025 §2:config.OriginForgeURL("")), print "Authenticating to ", skip the URL prompt; outside a repo: prompt as today.resolveConfigScope); a login is forge-wide.--globalon login → deprecated no-op with notice (MarkDeprecated); logout--globalstays functional.madtea.credential-backendmarker only); prompted-URL login writes global madtea.url as the no-remote fallback. Git identity (user.name/email): local scope in a repo, global outside.GET /user(config.FetchUser) — already present, keep.Also (T2/T4 review follow-ups):
SystemdCredsCiphertextInScope(logout_helpers.go:154) still probes the baremadtea.token-enc— teach it the per-hostmadtea.token-enc-<sanitized-host>keys;DetectURL(git.go) config-first default is fine for the prompt default but document why.Acceptance:
go test ./internal/cmd/setup/ ./internal/config/green; no scope prompt in any login path.Part of #30.