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

Support JDBC to authenticate with azure identity token credentials #30740

Merged
merged 117 commits into from Sep 2, 2022
Merged

Support JDBC to authenticate with azure identity token credentials #30740

merged 117 commits into from Sep 2, 2022

Conversation

backwind1233
Copy link
Contributor

Description

Support Azure hosted PostgreSQL and MySQL services authenticating with Azure AD.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Feature Checklist

  • In JdbcPropertiesBeanPostProcessor, check if users use Azure managed MySql or PostgreSql with password, if so, add a log to remind users use credential-free features.
  • 5 new artifacts libraries
    • azure-identity-providers-core
    • azure-identity-providers-jdbc-mysql
    • azure-identity-providers-jdbc-postgresql
    • spring-cloud-azure-starter-jdbc-mysql
    • spring-cloud-azure-starter-jdbc-postgresql

Related issues:

backwind1233 and others added 30 commits June 30, 2022 17:05
AzureMySqlMSIAuthenticationPlugin to AzureIdentityMysqlAuthenticationPlugin
AzurePostgresqlMSIAuthenticationPlugin to AzureIdentityPostgresqlAuthenticationPlugin
add copyright
@saragluna
Copy link
Member

CI failed for The process '/opt/hostedtoolcache/Python/3.6.15/x64/bin/python' failed with exit code 1, but the code doesn't cause it. So skip the check and merge this PR now.

@backwind1233
Copy link
Contributor Author

CI failed for The process '/opt/hostedtoolcache/Python/3.6.15/x64/bin/python' failed with exit code 1, but the code doesn't cause it. So skip the check and merge this PR now.

@saragluna Fixed in this PR.

@backwind1233
Copy link
Contributor Author

Pull request follow-ups:

#30806
#30788
#30772

saragluna pushed a commit to saragluna/azure-sdk-for-java that referenced this pull request Sep 21, 2022
saragluna added a commit that referenced this pull request Sep 22, 2022
…ss branch (#31076)

* Support JDBC to authenticate with azure identity token credentials (#30740)
* fix pipeline error (#30806)
* Add UA for mysql and postgresql (#30772)
* add user agent for MySQL and PostgreSQL
* refactor test cases
* Update terminology from credentialfree to passwordless. (#30788)
* Change terminology from credentialfree to passwordless
Co-authored-by: Xiaolu Dai <xiada@microsoft.com>

* Update pom in spring-cloud-azure-starter-jdbc-* (#30993)
* update pom
* add prefix
* Add IT for passwordless feature with Azure MySQL (#30982)
* add some comments
* remove unnecessary changes and fix pipeline bug

Co-authored-by: zhihaoguo <zhihaoguo@microsoft.com>
saragluna added a commit that referenced this pull request Sep 23, 2022
…ss branch (#31076)

* Support JDBC to authenticate with azure identity token credentials (#30740)
* fix pipeline error (#30806)
* Add UA for mysql and postgresql (#30772)
* add user agent for MySQL and PostgreSQL
* refactor test cases
* Update terminology from credentialfree to passwordless. (#30788)
* Change terminology from credentialfree to passwordless
Co-authored-by: Xiaolu Dai <xiada@microsoft.com>

* Update pom in spring-cloud-azure-starter-jdbc-* (#30993)
* update pom
* add prefix
* Add IT for passwordless feature with Azure MySQL (#30982)
* add some comments
* remove unnecessary changes and fix pipeline bug

Co-authored-by: zhihaoguo <zhihaoguo@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants