v1.0.4 — Ceph reader creds (hardcode), S3_USE_SSL ENV

This commit is contained in:
“Naeel”
2026-08-08 22:47:39 +04:00
parent 13f8ce8be6
commit 86c4a1f25c
2 changed files with 10 additions and 6 deletions
+3 -2
View File
@@ -27,7 +27,7 @@ var (
s3Prefix = os.Getenv("S3_PREFIX") // S3 key prefix (may differ from hostname)
)
const VERSION = "1.0.3"
const VERSION = "1.0.4"
// Terraform Registry Protocol Structs
type Discovery struct {
@@ -91,9 +91,10 @@ func main() {
}
var err error
useSSL := os.Getenv("S3_USE_SSL") != "false"
s3Client, err = s3.New(endpoint, &s3.Options{
Creds: credentials.NewStaticV4(accessKeyID, secretAccessKey, ""),
Secure: true, // Force secure for cloud S3
Secure: useSSL,
})
if err != nil {
log.Fatalln(err)