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.
9 lines
422 B
Python
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 |