- host id taken from "x-amz-id-2" (or dash if empty)
- signature version (or dash if empty)
- cipher suite (or dash if empty)
- - authentication type (or dash if empty)
+ - authentication type ("AuthHeader" for regular auth, "QueryString" for presigned URL or dash if unauthenticated)
- host header (or dash if empty)
- TLS version (or dash if empty)
- access point ARN (not supported, always a dash)
aws_version = "SigV2";
}
} else {
- auth_type = "QueryString";
- if (s->info.args.get("x-amz-algorithm") == AWS4_HMAC_SHA256_STR) {
+ if (!s->info.args.get("x-amz-credential").empty()) {
+ auth_type = "QueryString";
+ if (s->info.args.get("x-amz-algorithm") == AWS4_HMAC_SHA256_STR) {
/* AWS v4 */
- aws_version = "SigV4";
- } else if (!s->info.args.get("AWSAccessKeyId").empty()) {
+ aws_version = "SigV4";
+ } else if (!s->info.args.get("AWSAccessKeyId").empty()) {
/* AWS v2 */
- aws_version = "SigV2";
+ aws_version = "SigV2";
+ }
+ } else {
+ // Unauthenticated
+ auth_type.clear();
}
}
}
s->info.x_meta_map.contains("x-amz-id-2") ? s->info.x_meta_map.at("x-amz-id-2") : "-",
aws_version,
s->info.env->get("SSL_CIPHER", "-"),
- auth_type,
+ dash_if_empty(auth_type),
dash_if_empty(fqdn),
s->info.env->get("TLS_VERSION", "-"),
"-", // no access point ARN