(no commit message)
authorjpds <jpds@web>
Wed, 18 Jan 2023 22:45:06 +0000 (22:45 +0000)
committeradmin <admin@branchable.com>
Wed, 18 Jan 2023 22:45:06 +0000 (22:45 +0000)
doc/bugs/S3_remote_errors_with_garage_endpoint.mdwn [new file with mode: 0644]

diff --git a/doc/bugs/S3_remote_errors_with_garage_endpoint.mdwn b/doc/bugs/S3_remote_errors_with_garage_endpoint.mdwn
new file mode 100644 (file)
index 0000000..1bb1f33
--- /dev/null
@@ -0,0 +1,30 @@
+### Please describe the problem.
+
+When I attempt to create a S3 remote against my garage[1] cluster, it errors with the following:
+
+```
+$ git annex initremote garage type=S3 encryption=none host=my-s3-endpoint.domain.com protocol=https bucket=git-annex requeststyle=path datacenter=garage signature=v4
+initremote garage (checking bucket...) (creating bucket in garage...)
+git-annex: S3Error {s3StatusCode = Status {statusCode = 400, statusMessage = "Bad Request"}, s3ErrorCode = "AuthorizationHeaderMalformed", s3ErrorMessage = "Authorization header malformed, expected scope: 20230118/my-s3-endpoint.domain.com/s3/aws4_request", s3ErrorResource = Just "/git-annex/", s3ErrorHostId = Nothing, s3ErrorAccessKeyId = Nothing, s3ErrorStringToSign = Nothing, s3ErrorBucket = Nothing, s3ErrorEndpointRaw = Nothing, s3ErrorEndpoint = Nothing}
+failed
+initremote: 1 failed
+
+$ git annex initremote garage type=S3 encryption=none host=my-s3-endpoint.domain.com protocol=https bucket=git-annex requeststyle=path datacenter=garage
+initremote garage (checking bucket...) (creating bucket in garage...)
+git-annex: S3Error {s3StatusCode = Status {statusCode = 400, statusMessage = "Bad Request"}, s3ErrorCode = "InvalidRequest", s3ErrorMessage = "Bad request: Unsupported authorization method", s3ErrorResource = Just "/git-annex/", s3ErrorHostId = Nothing, s3ErrorAccessKeyId = Nothing, s3ErrorStringToSign = Nothing, s3ErrorBucket = Nothing, s3ErrorEndpointRaw = Nothing, s3ErrorEndpoint = Nothing}
+failed
+initremote: 1 failed
+```
+
+Garage appears to support v4 signatures: https://garagehq.deuxfleurs.fr/documentation/reference-manual/s3-compatibility/#high-level-features - and other S3 tooling works against the endpoint.
+
+
+### What version of git-annex are you using? On what operating system?
+
+Fedora Silverblue 37 / git-annex-10.20221212-1.fc37.x86_64
+
+### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
+
+Yes, many years ago - now trying to get it up and running with my self-hosted S3 endpoint.
+
+[1]: https://garagehq.deuxfleurs.fr/