Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backblaze s3 v4 signing option #142

Closed
theromis opened this issue Feb 26, 2021 · 2 comments
Closed

backblaze s3 v4 signing option #142

theromis opened this issue Feb 26, 2021 · 2 comments

Comments

@theromis
Copy link
Contributor

theromis commented Feb 26, 2021

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 goamz/goamz#118
but I can see workaround discussion cloudflare/complainer#13

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]))
}
@theromis theromis changed the title s3 v4 signing option backblaze s3 v4 signing option Feb 27, 2021
@theromis
Copy link
Contributor Author

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?

@thoas
Copy link
Owner

thoas commented Jul 4, 2023

fixed, gostorages has been bumped

@thoas thoas closed this as completed Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants