-
Notifications
You must be signed in to change notification settings - Fork 1
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
User can get prompt when there is error about passwordless dependency or property. #58
Conversation
} | ||
|
||
func detectPropertySpringDatasourcePassword(azdProject *Project, springBootProject *SpringBootProject) { | ||
var targetProperty = "spring.datasource.password" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @saragluna , @moarychan
Whether spring.datasource.password
should be deleted in customer's application.yml when using passwordless connection?
-
Not need to delete. I tested deploy by mi, keeping this property will not cause problem.
-
Not need to delete. I checked the source code: is empty will continue the logic of passwordless.
-
It's necessary to delete. According to this doc: https://learn.microsoft.com/en-us/azure/developer/java/spring-framework/migrate-postgresql-to-passwordless-connection?tabs=sign-in-azure-cli%2Cspring%2Capp-service%2Cassign-role-service-connector
- I remember it's necessary to delete it because empty string is also a valid password for DB.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We provide a property isPasswordlessEnabled, it should be met first. If use uses an empty password to connection db, then the isPasswordlessEnabled should be set to false, is this OK?
detect.Services[i] = prj | ||
// delete database | ||
delete(detect.Databases, database) | ||
return false, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems there is some problem about related code in AzureDepEventHubs, could you please fix it in another RP?
Here is the link to related PR: https://github.com/azure-javaee/azure-dev/pull/27/files
…ror-about-passwordless-dependency-or-property
User can get prompt when there is error about passwordless dependency or property.