Fix: always load flat secret as primary regardless of labeled secrets
This commit is contained in:
@@ -98,8 +98,8 @@ def _load_all_creds(actor_id: str) -> dict[str, Credentials]:
|
||||
except Exception as e:
|
||||
print(f'[google] list_secrets failed: {e}')
|
||||
|
||||
# Backward compat: flat secret path
|
||||
if not result:
|
||||
# Always include flat secret as 'primary' if not already in result
|
||||
if 'primary' not in result:
|
||||
flat = f'agent-claw/google-credentials/{safe}'
|
||||
try:
|
||||
result['primary'] = _load_creds_from_secret(flat)
|
||||
|
||||
Reference in New Issue
Block a user