v.24.11Improvement

Use AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE Instead of AWS_CONTAINER_AUTHORIZATION_TOKEN

Use AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE instead of AWS_CONTAINER_AUTHORIZATION_TOKEN if former is available. Fixes #71074. #71269 (Konstantin Bogdanov).
ClickHouse now prefers using AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE environment variable over AWS_CONTAINER_AUTHORIZATION_TOKEN if the former is available for AWS authentication.

Why it matters

This change improves the way AWS container authorization tokens are handled, supporting a more secure and flexible token management by reading the token from a file rather than an environment variable. It resolves issues related to token usage in certain AWS environments.

How to use it

Set the environment variable AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE to point to the file containing the AWS container authorization token. If this variable is set, ClickHouse will use it in preference to AWS_CONTAINER_AUTHORIZATION_TOKEN.