-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[extensions/sigv4auth] sigv4auth requires AWS credentials to run 'validate' subcommand #32214
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I believe this is because we try to get the provider during config validation. I'm not sure if credentials validation should be part of validating the configuration. It may make more sense to do this when the extension is created and then return an error from newSigV4Extension. I believe this change would cause the validate to pass when no credentials exist, but fail on collector startup. This would preserve existing behavior. If someone decides to take this on I think another improvement to make would be removing the private credsProvider field out of the config struct and moving into the sigv4auth struct. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hi @tredman When I have to use osis and when I have to use aps? I haven't found any documentation about it... sigv4auth:
service: 'aps'
region: 'us-east-1' sigv4auth:
service: 'osis'
region: 'us-east-1' |
This seems unrelated to my issue but |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
extension/sigv4auth
Describe the issue you're reporting
Hello! I'm trying to invoke
validate
from a build pipeline so that we do basic validation of the OTEL configs we're pushing out to our users. Recently I added an exporter for Amazon Managed Prometheus, which requires thesigv4auth
extension in order to authenticate.After doing this,
validate
fails to run with the following error:Initially I resolved this by authenticating to one of my AWS accounts, but through experimentation I found I can fix this by supplying arbitrary/invalid values for the environment variables
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
. This seems like something that the validation command should just handle gracefully, perhaps by just initializing the AWS SDK with some kind of mock config.otelcol-contrib version 0.97.0
The text was updated successfully, but these errors were encountered: