diff --git a/inference/core/workflows/core_steps/common/serializers.py b/inference/core/workflows/core_steps/common/serializers.py index 6395e9cd2b..679e565f7a 100644 --- a/inference/core/workflows/core_steps/common/serializers.py +++ b/inference/core/workflows/core_steps/common/serializers.py @@ -342,9 +342,9 @@ def serialize_secret(secret: str) -> str: if len(secret) < MIN_SECRET_LENGTH_TO_REVEAL_PREFIX: return "*" * MIN_SECRET_LENGTH_TO_REVEAL_PREFIX prefix = secret[:2] - infix = "*" * MIN_SECRET_LENGTH_TO_REVEAL_PREFIX + infix = "********" suffix = secret[-2:] - return f"{prefix}{infix}{suffix}" + return prefix + infix + suffix def serialize_timestamp(timestamp: datetime) -> str: