feat(ssh): protocol mode - per-forge/per-repo git-protocol choice, set at auth login or by flag #292
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#292
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?
Part of #187 (SSH-only mode epic). First slice: the mode itself.
A persisted protocol setting decides how madtea builds git URLs:
token + https git(today's default),token + ssh git, orssh only, no token. Set duringauth login(offered as a choice) or directly via config/flag; readable by every code path that constructs a git URL. This slice adds the setting, its resolution (repo > global, consistent with the existing config precedence), and the auth-login prompt - it does NOT yet change clone/push behavior (later slices consume the mode).Acceptance:
protocol) with the three values, resolved repo-then-global, exposed to later slices through one accessorauth loginoffers the choice (default unchanged: token + https) and persists it; a non-interactive path exists (flag or pre-set config)auth whoami(or status) reports the active protocol mode so a misconfigured repo is diagnosablessh onlymode, login does not require or store a token