fix(mosaic): serialize credential lifecycle mutations

This commit is contained in:
2026-08-05 18:01:41 -05:00
parent 9512adcec2
commit b3d84662f9
10 changed files with 181 additions and 27 deletions
@@ -548,10 +548,12 @@ get_gitea_token() {
printf '%s\n' "$_resolved_token"
return 0
fi
if [[ -r "$_idtok" ]]; then
if [[ -e "$_idtok" || -L "$_idtok" ]]; then
local _resolved_token
_resolved_token=$(python3 "$script_dir/resolve-legacy-token.py" "$_idtok") || return 1
_resolution_path=identity
_trace_credential_resolution credential-resolved "$_ident" "$host" "$_ident_src"
cat "$_idtok"
printf '%s\n' "$_resolved_token"
return 0
fi
# FAIL LOUD: an explicit git identity was requested for a recognized Gitea host,