Follow these security guidelines for every change to the pyatlan SDK.
- Security Team: #bu-security-and-it on Slack
pyatlan is Atlan's Python SDK. It wraps the Atlan REST API using httpx, handles API key auth, and provides typed models for all Atlan entities. Review every change for:
- API key logging β the
api_key(and impersonation tokens fromImpersonationClient) must never appear in log output or error messages; log only thebase_urland response status codes. verify=Falsein httpx transport β TLS certificate verification must not be disabled;trust_env=Trueis correct for proxy support.- Proxy credential leakage β if proxy credentials are configured via environment variables (
HTTPS_PROXY), they must not be echoed in log output. - User-supplied URL validation β
base_urlmust be validated as HTTPS before constructing the client.
- [MUST]
api_keyand impersonation tokens must never appear in log output. - [MUST] TLS certificate verification must not be disabled (
verify=Falseis forbidden). - [MUST]
base_urlmust be validated as HTTPS.
-
api_keyand impersonation tokens absent from all log output and error messages -
verify=Falsenot used in any httpx transport or session -
base_urlvalidated as HTTPS before client construction - All direct dependencies in
pyproject.tomlpinned exactly