docs/src/main/sphinx/admin/properties-http-client.md
HTTP client properties allow you to configure the connection from Trino to external services using HTTP.
The following properties can be used after adding the specific prefix to the
property. For example, for , you can enable HTTP for
interactions with the external OAuth 2.0 provider by adding the prefix
oauth2-jwk to the http-client.connect-timeout property, and increasing
the connection timeout to ten seconds by setting the value to 10:
oauth2-jwk.http-client.connect-timeout=10s
The following prefixes are supported:
http-client.connect-timeoutTimeout value for establishing the connection to the external service.
max-content-lengthMaximum content size for each HTTP request and response.
http-client.request-timeoutTimeout value for the overall request.
http-client.https.excluded-cipherA comma-separated list of regexes for the names of cipher algorithms to exclude.
http-client.https.included-cipherA comma-separated list of regexes for the names of the cipher algorithms to use.
http-client.https.hostname-verificationVerify that the server hostname matches the server DNS name in the SubjectAlternativeName (SAN) field of the certificate.
http-client.key-store-passwordPassword for the keystore.
http-client.key-store-pathFile path on the server to the keystore file.
http-client.secure-random-algorithmSet the secure random algorithm for the connection. The default varies by operating system. Algorithms are specified according to standard algorithm name documentation.
Possible types include NativePRNG, NativePRNGBlocking,
NativePRNGNonBlocking, PKCS11, and SHA1PRNG.
http-client.trust-store-passwordPassword for the truststore.
http-client.trust-store-pathFile path on the server to the truststore file.
http-client.http-proxyHost and port for an HTTP proxy with the format example.net:8080.
http-client.http-proxy.userUsername for basic authentication with the HTTP proxy.
http-client.http-proxy.passwordPassword for basic authentication with the HTTP proxy.
http-client.http-proxy.secureEnable HTTPS for the proxy.
http-client.socks-proxyHost and port for a SOCKS proxy.
http-client.log.compression.enabledEnable log file compression. The client uses the .gz format for log files.
http-client.log.enabledEnable logging of HTTP requests.
http-client.log.flush-intervalFrequency of flushing the log data to disk.
http-client.log.max-historyRetention limit of log files in days. Files older than the max-history are
deleted when the HTTP client creates files for new logging periods.
http-client.log.max-sizeMaximum total size of all log files on disk.
http-client.log.pathSets the path of the log files. All log files are named http-client.log, and
have the prefix of the specific HTTP client added. For example,
jwk-http-client.log.
http-client.log.queue-sizeSize of the HTTP client logging queue.