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

[SQLServer, MS SQL Server] Use accessToken property in lieu of password in IAM Plugin for MS SQL Server connections #1159

Open
1 of 2 tasks
bgshacklett opened this issue Oct 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bgshacklett
Copy link

Describe the feature

Documentation states that the accessToken property must be specified instead of the password property when using IAM authentication for MS SQL Server:
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy-connecting.html#rds-proxy-connecting-sqlserver

At present, the plugin only supports using the password property. It would be very helpful to be able to connect to RDS-Proxy for MS SQL Server instances using IAM Authentication.

Use Case

I want to connect to an RDS Proxy endpoint for MS SQL Server, using IAM Authentication, without using custom code.

Proposed Solution

Update the IAM plugin with logic based on DB Engine to set the accessToken property instead of the password property:
https://github.com/bgshacklett/aws-advanced-jdbc-wrapper/blob/main/wrapper/src/main/java/software/amazon/jdbc/plugin/iam/IamAuthConnectionPlugin.java#L153

Perhaps it would make sense to split this logic out into multiple implementations of the IamAuthConnectionPlugin class, with the desired implementation being created in the IamAuthConnectionPluginFactory class

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

The AWS Advanced JDBC Driver version used

Latest

JDK version used

1.8

Operating System and version

Container image: tomcat:9

@bgshacklett bgshacklett added the enhancement New feature or request label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant