Repository navigation
Pass the per-datasource external ID through to Assume Role - #766
Merged
Merged
Conversation
adamyeats
requested changes
Nov 16, 2026
adamyeats
left a comment
Contributor
There was a problem hiding this comment.
@iwysiu Please ensure an E2E spec covers the changed surface. tests/configEditor.spec.ts already covers the config editor, so a check there that the minted external ID still shows after save would cover it. Happy to review once that's done!
Copy GrafanaExternalID and UsePerDatasourceExternalID into awsauth.Settings and merge the save response so the minted ID stays in the form.
iwysiu
force-pushed
the
isiu/wire-assume-role-external-id
branch
from
November 18, 2026 16:55
c3e0c41 to
90f4e44
Compare
adamyeats
previously requested changes
Nov 19, 2026
dgiagio
reviewed
Nov 24, 2026
iwysiu
commented
Nov 24, 2026
iwysiu
left a comment
Contributor
Author
There was a problem hiding this comment.
Added requested tests! And updated it to bump the release
dgiagio
approved these changes
Nov 24, 2026
iwysiu
dismissed
adamyeats’s stale review
November 24, 2026 21:34
trying to get this in before code freeze, it was checked and approved by a different team member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Feature
What is this feature?
Grafana Assume Role on Timestream uses the server-minted per-datasource external ID, and that ID stays on the form after save.
NewDatasourcecopiesGrafanaExternalIDandUsePerDatasourceExternalIDintoawsauth.Settings.saveOptionsmerges the save response, includingjsonData, instead of keeping onlyversion.Based on grafana/athena-datasource#880 and grafana/grafana-cloudwatch-datasource#582 for the field copy, and grafana/athena-datasource#895 for the save merge.
Why is this feature needed?
Timestream built
awsauth.SettingswithExternalIDonly, so a newer SDK never saw the minted ID. The custom save handler also kept onlyversion, so the minted ID disappeared from the form until reload.@grafana/aws-sdkwas 0.12.1.Who is this feature for?
Operators who use Grafana Assume Role and want each Timestream datasource to present its own external ID.
How to test this feature
TestNewDatasource_passesGrafanaExternalIDFieldsand the config editor save test cover this.Leaves #729 open. That draft fixes the save merge and not the Go copy.
Please check that:
Special notes for your reviewer
@grafana/aws-sdkis 0.12.2. The Go SDK is already v1.5.7.