Repository navigation
Description
Motivation
Several existing tasks require credential-safe output independently: verbose output (#62), resolver diagnostics (#94), metadata (#26), build messages (#61), and doctor (#53). Define a shared policy and rendering boundary now so current and future commands do not implement inconsistent source-URL handling.
This issue tracks a general hardening/design requirement. Sensitive vulnerability reports or reproduction details belong in the private reporting channel described by SECURITY.md, not in this public issue.
Scope
Establish a common distinction between source identity and human/machine-readable display values for Git sources. Apply it to existing progress, tree, resolver errors and Git subprocess failure diagnostics, and make it reusable by the planned tooling interfaces.
Acceptance criteria
- Define how URL user information, credential-bearing query fields and related subprocess diagnostics are displayed without exposing authentication material.
- Preserve useful package, host, source location and operation context in errors.
- Reuse one rendering/sanitization boundary across existing CLI output paths; avoid independent ad hoc replacements for each command.
- Do not alter the URL passed to Git, declared-origin comparison, insteadOf behavior, SSH configuration or credential-helper behavior merely to change display text.
- Keep exact source identity separate from display identity. Any policy for credential-bearing manifests/lockfiles, persistence or migration requires an explicit design decision rather than silently rewriting committed sources.
- Use only synthetic credential markers in tests; assert that they never appear in covered stdout/stderr, including simulated Git failures.
- Cover supported URL forms and normal URLs without credentials; avoid hiding unrelated actionable diagnostics.
- Document the display contract and reuse it in Add vex metadata with a stable JSON schema #26, Add vex doctor for environment and toolchain diagnostics #53, Add machine-readable build messages #61, Add quiet and verbose output modes #62 and Show dependency paths for resolver conflicts and cycles #94 as those features land.
No new authentication backend, registry, telemetry, or automatic manifest migration is implied.
Activity
LunaStev commentedon Oct 2, 2026
Verified completed against master
67797f6415f640e8c33f9a072879124b83934f84.Shared source identity/rendering preserves authenticated transport while sanitizing display and persistence according to the approved policy. Synthetic-marker tests cover CLI/JSONL/metadata, lockfiles, origins, and Git errors while retaining helper/insteadOf behavior.
Evidence: source/src/lib.rs, tests/git_lock_reproducibility.rs, tests/cli_contract.rs.
Master CI run 36963423149 passed all eight jobs, including native Windows, macOS, and Linux tests. Closing as completed.