mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-26 12:44:10 +00:00
Add query.remote_allowed_hosts and query.allow_server_credentials to frontend, datanode and standalone. - query.remote_allowed_hosts: when set, object stores built from SQL statements send every request, including credential requests, through an HTTP transport that only allows the listed hosts and does not follow redirects. Blocked requests are logged with their host and port. - query.allow_server_credentials = false: an object store without credentials in its connection options cannot use the server's own credentials. Independent of the options, explicit credentials are validated: incomplete S3/OSS key pairs, an S3 session token without keys, an Azure account key without a known account name, and a GCS credential that is not a service account key are rejected. Only the type, private key and client email of a GCS service account key are passed to the signer. Signed-off-by: Dennis Zhuang <killme2008@gmail.com>