Closed theromis closed 1 year ago
trying to integrate picfit and backblaze storage, and getting:
The V2 signature authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256
seems like goamz still not support v4 https://github.com/goamz/goamz/pull/118 but I can see workaround discussion https://github.com/cloudflare/complainer/issues/13
goamz
v4
does anybody made picfit working with backblaze?
PS: this is my test code
package main import ( "github.com/mitchellh/goamz/aws" "github.com/mitchellh/goamz/s3" "log" "fmt" ) func main() { auth, err := aws.EnvAuth() fmt.Printf("%#v\n", auth) if err != nil { log.Fatal(err) } client := s3.New(auth, aws.USEast) client.S3Endpoint = "https://s3.us-west-002.backblazeb2.com" fmt.Printf("%#v\n", client) resp, err := client.ListBuckets() if err != nil { log.Fatal(err) } log.Print(fmt.Sprintf("%T %+v", resp.Buckets[0], resp.Buckets[0])) }
Sorry, just found, vendor version is outdated and current https://github.com/ulule/gostorages uses github.com/aws/aws-sdk-go/aws is it possible to update it in picfit?
vendor
github.com/aws/aws-sdk-go/aws
fixed, gostorages has been bumped
gostorages
trying to integrate picfit and backblaze storage, and getting:
seems like
goamz
still not supportv4
https://github.com/goamz/goamz/pull/118 but I can see workaround discussion https://github.com/cloudflare/complainer/issues/13does anybody made picfit working with backblaze?
PS: this is my test code