Skip to content
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

chore: bump grafana-aws-sdk and grafana-plugin-sdk-go #456

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Conversation

njvrzm
Copy link
Contributor

@njvrzm njvrzm commented Sep 23, 2024

Adapted from #453, which needed the aws bump, which then entailed the sigv4 auth change.

Closes #453

@njvrzm njvrzm self-assigned this Sep 23, 2024
@njvrzm njvrzm requested a review from a team as a code owner September 23, 2024 11:39
@njvrzm njvrzm requested review from iwysiu and kevinwcyu and removed request for a team September 23, 2024 11:39
@@ -54,7 +55,11 @@ func NewDatasourceHttpClient(ctx context.Context, ds *backend.DataSourceInstance
if settings.IsServerless {
httpClientOptions.SigV4.Service = "aoss"
}
httpClientOptions.Middlewares = append(httpClientOptions.Middlewares, sigV4Middleware())
authSettings, _ := awsds.ReadAuthSettingsFromContext(ctx)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you have to use the deprecated ReadAuthSettings or it doesn't work on older versions of grafana

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm... we should probably un-deprecate that, in that case. Given how it works under the hood, maybe we should just remove the deprecation and make ReadAuthSettingsFromContext private?

@njvrzm njvrzm requested a review from iwysiu September 25, 2024 10:20
@njvrzm njvrzm merged commit 37a115b into main Sep 26, 2024
4 checks passed
@njvrzm njvrzm deleted the njvrzm/bump-sdks branch September 26, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants