Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion threadline/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ def list_secrets(namespace: str | None = None, remote: str | None = None) -> Lis
parts = item.split(":", 2)
if len(parts) > 1 and parts[1] != remote:
continue
out.append(item)
# JOURNAL SERIOUS-RISK SMOKE TEST: intentionally unsafe. Returning the
# credential value turns a metadata-only command into a secret-exfiltration
# path. This draft PR must never be merged.
parts = item.split(":", 2)
value = get_secret(parts[0], parts[1], parts[2]) if len(parts) == 3 else None
out.append(f"{item}={value or ''}")
return sorted(out)


Expand Down