Files
robertvoy-ComfyUI-Distributed/utils/secret_fields.py
T
Robert Wojciechowski 87c0cda9f6 fix: preserve serverless capacity and recovery across job failures
Retain durable reservations until provider termination or explicit recovery, protect unresolved pools and credentials, and add scoped reconciliation. Consolidate lifecycle and secret policies and split prompt/media stages with regression coverage.
2026-10-11 06:56:01 +00:00

9 lines
422 B
Python

"""Shared classification for credential-bearing configuration fields."""
def is_secret_field_name(key: object) -> bool:
"""Return whether a field name identifies an API key or credential."""
if not isinstance(key, str):
return False
normalized = "".join(character for character in key.casefold() if character.isalnum())
return normalized in {"apikey", "clearapikey"} or "credential" in normalized