Skip to content

Chore: replace GetSession with GetSessionWithAuthSettings #284

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

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

kevinwcyu
Copy link
Contributor

Updates grafana-aws-sdk to make use of grafana/grafana-aws-sdk#144

I checked for usages of os.LookupEnv, os.Getenv, os.Expand to check for usages for environment variables

  • Redshift: none found
  • grafana-aws-sdk: in the auth/session code/tests, but these were expected. This PR updates grafana-aws-sdk to use GetSessionWithAuthSettings in place of GetSession which would read environment variables if there were no AuthSettings
  • sqlds: only in tests

I checked for fs imports to check for usages of the file system

  • Redshift: none found
  • grafana-aws-sdk: none found
  • sqlds: only in test mocks

I checked for shared state by looking for global variables and found 2 things that might be relevant and asked about it here.

Fixes: #278

@kevinwcyu kevinwcyu requested a review from a team as a code owner June 7, 2024 20:01
@kevinwcyu kevinwcyu requested review from iwysiu and idastambuk June 7, 2024 20:01
"strings"

"github.com/grafana/sqlds/v3"
Copy link
Contributor

Choose a reason for hiding this comment

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

tiny nit: i think this should be part of the lower block of imports

@kevinwcyu kevinwcyu merged commit 2ab6e6d into main Jun 10, 2024
4 checks passed
@kevinwcyu kevinwcyu deleted the kevinwcyu/update-for-mt branch June 10, 2024 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants