-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS IRSA requires delicate dance #3069
Comments
I'm using IRSA just fine, all you have to to is specify the S3 URL like so:
For
Depending on what your using to deploy Loki, you may need to also set the |
yes. if you specify e.g. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This comment has been minimized.
This comment has been minimized.
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
I wonder if this was fixed with #3267 |
???? this was commented on. why did stale bot close it? |
This comment has been minimized.
This comment has been minimized.
@james-callahan Can you verify if this is still an issue now that we've updated our Cortex dependency and reopen this? I believe this should be fixed. |
This is still a problem. Starting up without However, it's not quite as bad as it was: --- a/applications/loki/files/config.yaml
+++ b/applications/loki/files/config.yaml
@@ -108,7 +108,8 @@ server:
http_server_write_timeout: 1m
storage_config:
aws:
- s3: s3:///${LOKI_STORAGE_CONFIG_AWS_BUCKETNAMES}
+ s3: s3:///
+ bucketnames: ${LOKI_STORAGE_CONFIG_AWS_BUCKETNAMES}
sse_encryption: true
boltdb_shipper:
shared_store: aws |
grafana/loki#3069 is partially addressed; however an empty S3 url is still required to avoid loki reaching out to sts.dummy.amazonaws.com
This issue still applies to the s3 config of the loki ruler, using bucketnames + endpoint doesn't work with IRSA while specifying the exact s3 url works fine. Part of the error message is (for making it easier to find this issue and solution when encountering the problem):
|
I'm getting same error in me-central-1. |
Describe the bug
For AWS IAM roles for service accounts (IRSA) to work, it's important that the
.WithCredentials
method is never calledloki/vendor/github.com/cortexproject/cortex/pkg/chunk/aws/s3_storage_client.go
Line 140 in 8c1fe88
This appears to have been fixed in master of cortex https://github.com/cortexproject/cortex/blob/d775e195f186fe4e2407ca2c643bf7f2350bd6cd/pkg/chunk/aws/s3_storage_client.go#L190. So fix should be to simply update the dependency.
The text was updated successfully, but these errors were encountered: