Skip to content

WIP Add support for DSQL iam authentication #919

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

leszek-bq
Copy link

Summary

Add support for DSQL iam authentication

Description

  • Created token_utils base class and specific implementation of token generation code for DSQL
  • Moved the token generation code from the /utils/iam_utils.py to rds specific token_utils implementation
  • Added a parameter to IamAuthPlugin constructor for the new token_utils and updated the corresponding IamAuthPluginFactory
  • Created a new DsqlIamAuthPluginFactory
  • Added example docs/examples/DSQLIamAuthentication.py

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

user="admin",
plugins="iam_dsql",
iam_region="us-east-1",
wrapper_dialect="aurora-pg",

Choose a reason for hiding this comment

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

Should we use the pg dialect here?

Choose a reason for hiding this comment

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

+1

Copy link
Author

Choose a reason for hiding this comment

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

I've tested without the wrapper_dialect="aurora-pg" property and it seemed to work.
I'll follow up more on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants