MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / checksumVerificationEnabled

Method checksumVerificationEnabled

pkg/blobmanager/s3/backend.go:104–111  ·  view source on GitHub ↗

For now we are aware that the checksum verification is not supported by cloudflare r2 https://developers.cloudflare.com/r2/api/s3/api/

()

Source from the content-addressed store, hash-verified

102// For now we are aware that the checksum verification is not supported by cloudflare r2
103// https://developers.cloudflare.com/r2/api/s3/api/
104func (b *Backend) checksumVerificationEnabled() bool {
105 var enabled = true
106 if b.customEndpoint != "" && strings.Contains(b.customEndpoint, "r2.cloudflarestorage.com") {
107 enabled = false
108 }
109
110 return enabled
111}
112
113// Extract the custom endpoint and the bucket name from the location string
114// The location string can be either a bucket name or a URL

Callers 2

DescribeMethod · 0.95

Calls

no outgoing calls

Tested by 1