Skip to content

Commit 5a80753

Browse files
committed
remove strict atuhentication checkin
1 parent c13ecc5 commit 5a80753

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

pkg/sdk/model/output/s3.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,5 @@ func (c *S3OutputConfig) validateAndSetCredentials(s3 *types.OutputPlugin, secre
257257
s3.SubDirectives = append(s3.SubDirectives, directive)
258258
}
259259
}
260-
if c.AssumeRoleCredentials == nil &&
261-
c.InstanceProfileCredentials == nil &&
262-
c.SharedCredentials == nil &&
263-
(c.AwsAccessKey == nil || c.AwsSecretKey == nil) {
264-
return errors.New("One of AssumeRoleCredentials or SharedCredentials or InstanceProfileCredentials must be configured")
265-
}
266260
return nil
267261
}

pkg/sdk/model/render/fluent_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -498,14 +498,6 @@ func TestRenderS3(t *testing.T) {
498498
profile_name f
499499
</shared_credentials>`,
500500
},
501-
{
502-
name: "missing auth",
503-
s3Config: output.S3OutputConfig{
504-
Path: "/var/buffer",
505-
S3Bucket: "test_bucket",
506-
},
507-
err: "One of AssumeRoleCredentials or SharedCredentials or InstanceProfileCredentials must be configured",
508-
},
509501
}
510502
for _, item := range table {
511503
t.Logf("> %s\n", item.name)

0 commit comments

Comments
 (0)