Earl Warren earl-warren
  • Joined on 2023-08-28
earl-warren commented on issue Deuxfleurs/garage#624 2023-08-31 20:13:28 +00:00
Payload on 400 error for HEAD requests

https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html

This action is useful to determine if a bucket exists and you have permission to access it. The action returns a 200 OK if…

earl-warren closed issue Deuxfleurs/garage#624 2023-08-31 20:13:28 +00:00
Payload on 400 error for HEAD requests
earl-warren commented on issue Deuxfleurs/garage#624 2023-08-31 20:08:02 +00:00
Payload on 400 error for HEAD requests

I'm not sure which way to go to resolve this. I think I'll use a GET request to indirectly assert the region is valid and display a meaningful error message if it does not, using the 400…

earl-warren commented on issue Deuxfleurs/garage#624 2023-08-31 19:43:33 +00:00
Payload on 400 error for HEAD requests

Using GET the 400 payload is present, you are correct: HEAD hides it somewhere in the codepath.

GET / HTTP/1.1
Host: minio:9000
User-Agent: MinIO (linux; amd64) minio-go/v7.0.61
Author…
earl-warren commented on issue Deuxfleurs/garage#624 2023-08-31 19:31:53 +00:00
Payload on 400 error for HEAD requests

@gusted looked at it and found some information. I'll try using GET instead see where that gets me.

earl-warren opened issue Deuxfleurs/garage#624 2023-08-31 17:02:09 +00:00
Payload on 400 error
earl-warren opened issue Deuxfleurs/garage#623 2023-08-31 15:32:11 +00:00
Garage support in Forgejo
earl-warren commented on issue Deuxfleurs/garage#618 2023-08-31 10:32:31 +00:00
Implement HeadBucket

If you have set s3_region = "us-east-1" in your config file then it is a valid scope, otherwise it is not

That fixed the problem.

(but there is a redirection mechanism in the error…

earl-warren commented on issue Deuxfleurs/garage#618 2023-08-28 15:20:34 +00:00
Implement HeadBucket

But MD5 is only relevant when content is PUT/GET, my bad.

earl-warren commented on issue Deuxfleurs/garage#618 2023-08-28 15:13:49 +00:00
Implement HeadBucket

I'll try to switch to MD5

earl-warren commented on issue Deuxfleurs/garage#618 2023-08-28 15:13:16 +00:00
Implement HeadBucket

The logs with debug:

2023-08-28T15:12:50.827687Z  INFO garage_api::generic_server: 127.0.0.1:40918 HEAD /forgejo/
2023-08-28T15:12:50.827700Z DEBUG garage_api::generic_server: Request {…
earl-warren commented on issue Deuxfleurs/garage#618 2023-08-28 15:10:51 +00:00
Implement HeadBucket

I would like to let garage know that 20230828/us-east-1/s3/aws4_request is a valid scope. A pointer on how to do that would be much appreciated.

earl-warren commented on issue Deuxfleurs/garage#618 2023-08-28 13:56:04 +00:00
Implement HeadBucket

Here is a reproducer for this issue. It may simply be a misconfiguration but it not trivial to figure out for me because I do not have any experience (yet) with garage.

  • Launch garage [from…