The Digital
11/25/2023, 12:24 AMcharilaos_tilaveridis
11/30/2023, 3:13 PMermiya
12/10/2023, 1:43 PMCopyObject
S3 compatibility
S3 clients will send the x-amz-tagging-directive
which is unsupported as per https://developers.cloudflare.com/r2/api/s3/api/.
Has anyone actually been able to use CopyObject with R2 in that case? The S3 API will either use a value of REPLACE
or COPY
and defaults to COPY
and I can definitely see that COPY
is unsupported at the very least.
Can someone confirm that R2 works without this header being passed through, and that internally instead of defaulting to COPY
it's then no-op? If so, it shouldn’t take too long to just at least not throw an error to allow the clients to copy objects. Otherwise, I will have to go extremely low level and send an API request manually to bypass client behaviour of sending this header.
It's not really dev friendly for CloudFlare to not adhere to default client implementation when trying to provide S3 compatibility...csehrafin
12/10/2023, 4:19 PMjoe80813
12/11/2023, 10:29 AMfailra
12/13/2023, 4:22 AMLeo
12/13/2023, 12:06 PMchickahoona
12/14/2023, 9:46 AMkc1nn4y
12/15/2023, 10:35 PMgo
func main() {
certs, _ := tls.LoadX509KeyPair("certificate.pem", "key.pem")
rcert, _ := os.ReadFile("rootcert.pem")
rpool := x509.NewCertPool()
rpool.AppendCertsFromPEM(rcert)
tlsConfig := &tls.Config{
Certificates: []tls.Certificate{certs},
RootCAs: rpool,
InsecureSkipVerify: true,
}
tr := &http.Transport{
TLSClientConfig: tlsConfig,
}
client := &http.Client{
Transport: tr,
}
request, _ := http.NewRequest("GET", "https://api.mydomain.com/", nil)
response, err := client.Do(request)
if err != nil {
log.Println(err)
}
fmt.Println("status code:", response.StatusCode)
// code to handle the response removed from code snippet
}
Ciotti
12/16/2023, 10:42 AMSKRRRTT
12/16/2023, 12:02 PMmirandaniel
12/16/2023, 12:47 PMdzoomnewm86
12/16/2023, 5:49 PMmarhadan
12/16/2023, 11:33 PMjafaralshamma
12/17/2023, 6:36 PMankarte
12/18/2023, 12:57 PMdawson.gg
12/18/2023, 9:43 PMeephillip
12/19/2023, 12:20 AMemptyd23
12/19/2023, 12:40 AMemptyd23
12/19/2023, 1:58 AMwolnemedia_11068
12/19/2023, 5:58 AMstreamcentral
12/19/2023, 10:44 AMcsehrafin
12/19/2023, 11:50 AMpatrik
12/19/2023, 1:16 PM*.example.com CNAME *.example.com.cdn.cloudflare.net
?
And would certificates work out of the box with advanced certificates enabled?simon2741
12/19/2023, 4:16 PMcurtismachek
12/20/2023, 12:02 AMsenojsitruc
12/20/2023, 2:28 PMcsehrafin
12/20/2023, 5:27 PMmattyboioi
12/20/2023, 9:26 PMsmiletoworld_43256
12/21/2023, 7:31 AM