Skip to content

Automate browser based workflows with AI

Remove x-api-key from logs (#2802)

Shuchang Zheng17886fc3845a
diff --git a/skyvern/forge/request_logging.py b/skyvern/forge/request_logging.py
index c8d259fd8..0295148de 100644
--- a/skyvern/forge/request_logging.py
+++ b/skyvern/forge/request_logging.py
@@ -14,7 +14,7 @@ if typing.TYPE_CHECKING: # pragma: no cover - import only for type hints
LOG = structlog.get_logger()
-_SENSITIVE_HEADERS = {"authorization", "cookie"}
+_SENSITIVE_HEADERS = {"authorization", "cookie", "x-api-key"}
_MAX_BODY_LENGTH = 1000
_BINARY_PLACEHOLDER = "<binary>"