Fix resources isues 29
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user