Read endpoint_url from AWS config profile

When no endpoint environment variable is set, kio-s3 now reads endpoint_url from the active AWS config profile (~/.aws/config).

This completes the standard AWS SDK configuration precedence for endpoint resolution:

  1. AWS_ENDPOINT_URL_S3 (service-specific env var, !8 (merged))
  2. AWS_ENDPOINT_URL (global env var, !7 (merged))
  3. endpoint_url from config profile (this MR)
  4. Default AWS endpoint

Example ~/.aws/config:

[default]
endpoint_url = https://your-endpoint.example.com

How to test

# Set endpoint_url in ~/.aws/config, then:
kioclient ls s3://bucket/

# Env var still takes priority over config:
AWS_ENDPOINT_URL_S3=https://other.example.com kioclient ls s3://bucket/

# Remove endpoint_url from config — falls back to default AWS

Merge request reports

Loading