fix(mosaic): serialize credential lifecycle mutations

This commit is contained in:
2026-08-05 13:32:57 -05:00
parent b309896067
commit 1391daae4c
10 changed files with 181 additions and 27 deletions
@@ -66,11 +66,12 @@ if [ -n "$ident" ]; then
echo "password=${token}"
exit 0
fi
if [ -r "$idtok" ]; then
if [ -e "$idtok" ] || [ -L "$idtok" ]; then
token=$(python3 "$script_dir/resolve-legacy-token.py" "$idtok") || exit 1
resolution_path=identity
trace_resolution credential-resolved "$ident" "$host" git-credential-mosaic
echo "username=${ident}"
echo "password=$(cat "$idtok")"
echo "password=${token}"
exit 0
fi
if [ -n "${MOSAIC_AGENT_NAME:-}" ]; then