Fix resources isues 29

This commit is contained in:
2026-01-22 21:41:07 +01:00
parent a83e6691aa
commit ecdad596bf
5 changed files with 44 additions and 7 deletions

View File

@@ -110,6 +110,29 @@ class OTelConfig:
return endpoints
@staticmethod
def _contains_secret_reference(endpoint: str) -> bool:
"""
Check if endpoint contains secret references or placeholders.
Args:
endpoint: Endpoint string to check
Returns:
True if endpoint contains secret references, False otherwise
"""
# Check for common secret reference patterns
secret_patterns = [
'${', '{{', '}}', 'SECRET', 'PASSWORD', 'TOKEN', 'API_KEY'
]
endpoint_upper = endpoint.upper()
for pattern in secret_patterns:
if pattern in endpoint or pattern in endpoint_upper:
return True
return False
@staticmethod
def _clean_grpc_endpoint(endpoint: str) -> str:
"""