-
Notifications
You must be signed in to change notification settings - Fork 1
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
Temporary Credentials: Add Grafana Assume role authentication option #49
Temporary Credentials: Add Grafana Assume role authentication option #49
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few more minor suggestions!
src/ConnectionConfig.tsx
Outdated
AwsAuthType.Default, | ||
AwsAuthType.Keys, | ||
AwsAuthType.Credentials, | ||
AwsAuthType.GrafanaAssumeRole, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imo this line is not necessary because we don't want this setting in oss/on prem only in cloud, and in cloud I think we define it in awsAllowedAuthProviders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on that note, do either of you think it needs to be made more obvious that this option is meant only for cloud? (since this would be the first time an AWS auth option is meant just for cloud, right?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im ok with not putting it in the config for now, since we will probably add it in the docs under AWS authentication once it goes GA. @sarahzinger what do you think?
3bc45da
to
30c516c
Compare
src/SIGV4ConnectionConfig.test.tsx
Outdated
@@ -8,15 +8,19 @@ import {config} from '@grafana/runtime' | |||
jest.mock('@grafana/runtime', () => ({ | |||
...jest.requireActual('@grafana/runtime'), | |||
config: { | |||
awsAllowedAuthProviders: [AwsAuthType.Credentials, AwsAuthType.Keys], | |||
awsAllowedAuthProviders: [AwsAuthType.Credentials, AwsAuthType.Keys, AwsAuthType.Credentials], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is AwsAuthType.Credentials
meant to be included twice? Same question for line 21 below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, good catch!
Implements https://github.com/grafana/oss-plugin-partnerships/issues/205