You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.
Currently the s3sink interface panics if s3SinkAccessKeyID / s3SinkSecretAccessKey are not provided.
case "s3sink":
accessKeyID := viper.GetString("s3SinkAccessKeyID")
if accessKeyID == "" {
panic("s3 sink specified but s3SinkAccessKeyID not specified")
}
secretAccessKey := viper.GetString("s3SinkSecretAccessKey")
if secretAccessKey == "" {
panic("s3 sink specified but s3SinkSecretAccessKey not specified")
Ignoring the fact that this should probably use a secret vs. a configmap to store this secret, for my use-case I need to use an instance profile to access the bucket.
This will not work with current code as it simply panics.
Suggested change:
if key/secret not provided, check if instance-profile is attached
if instance-profile is attached and no creds provided, use the instance-profile to try and access the bucket
if both not provided (no instance-profile attached) - panic.
Happy to send a PR for this if you are open to having eventrouter support instance-profile for access.
Is this project still active? no release here for the last year+
The text was updated successfully, but these errors were encountered:
Currently the s3sink interface panics if s3SinkAccessKeyID / s3SinkSecretAccessKey are not provided.
Ignoring the fact that this should probably use a secret vs. a configmap to store this secret, for my use-case I need to use an instance profile to access the bucket.
This will not work with current code as it simply panics.
Suggested change:
Happy to send a PR for this if you are open to having eventrouter support instance-profile for access.
Is this project still active? no release here for the last year+
The text was updated successfully, but these errors were encountered: