NIFI-16260 - Add a Database Password Provider for GCP CloudSQL - #11604
Conversation
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for putting together this new feature @pvillard31.
The basic implementation looks good, but I noted a few questions and concerns around the validation and testing.
Although the detailed introspection of the Connection URL can certainly help catch issues, it adds quite a bit of implementation and test code. I'm particularly concerned about the weight of the "legacy" parameters, which seem unnecessary to check. I recommend scoping down some of the verification steps as one way forward.
|
Thanks for the review. I simplified the implementation substantially and removed the database-specific validation from the password provider. The provider now focuses only on obtaining, scoping, caching, refreshing, and returning the Cloud SQL IAM token. JDBC URL, driver, username, and TLS configuration remain the responsibility of the DBCP service and JDBC driver. I also removed the exception stack-trace introspection and reduced the tests to the essential credential lifecycle, refresh, verification, and failure-handling behavior. The focused tests, complete GCP processor module suite, Checkstyle, RAT, and PMD all pass. I also completed final live validation with both PostgreSQL and MySQL. |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for making the adjustments @pvillard31, this looks close to completion. I highlighted a few remaining recommendations.
|
Thanks for the review @exceptionfactory - I pushed a commit to address your feedback |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks for the update @pvillard31, this looks better, I noted a few additional recommendations.
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks @pvillard31, the latest version looks good.
Summary
NIFI-16260 - Add a Database Password Provider for GCP CloudSQL
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000VerifiedstatusPull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation