Skip to content

Commit 3b57e44

Browse files
author
Simon Emms
committed
[installer]: allow the s3 connection to be insecure
1 parent 1b5e71c commit 3b57e44

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

install/installer/cmd/testdata/render/aws-setup/output.golden

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

install/installer/pkg/common/storage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func StorageConfig(context *RenderContext) storageconfig.StorageConfig {
5151
Endpoint: context.Config.ObjectStorage.S3.Endpoint,
5252
AccessKeyIdFile: filepath.Join(storageMount, "accessKeyId"),
5353
SecretAccessKeyFile: filepath.Join(storageMount, "secretAccessKey"),
54-
Secure: true,
54+
Secure: !context.Config.ObjectStorage.S3.AllowInsecureConnection,
5555
Region: context.Config.Metadata.Region,
5656
ParallelUpload: 100,
5757

install/installer/pkg/config/v1/config.go

+2
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ type ObjectStorageS3 struct {
255255
// BucketName sets the name of an existing bucket to enable the "single bucket mode"
256256
// If no name is configured, the old "one bucket per user" behaviour kicks in.
257257
BucketName string `json:"bucket"`
258+
259+
AllowInsecureConnection bool `json:"allowInsecureConnection"`
258260
}
259261

260262
type ObjectStorageCloudStorage struct {

0 commit comments

Comments
 (0)