Wait until release is uploaded to Maven Central (#331)
Description
Why is this change being made?
- Waiting for publication from Maven Central can take a long time (sometimes 20+min). Wait until the artifacts are uploaded, we will check that the release is published async. We have no straightforward course of action for delayed publication anyways.
What is changing?
- Changing the configuration of the sonatype release plugin to succeed after upload.
Related Links
https://central.sonatype.org/publish/publish-portal-maven/#waituntil
- Issue #, if available:
Testing
How was this tested?
- Identical to aws-secretsmanager-caching-java configuration.
When testing locally, provide testing artifact(s):
1.
Reviewee Checklist
Update the checklist after submitting the PR
- I have reviewed, tested and understand all changes If not, why:
- I have filled out the Description and Testing sections above If not, why:
- Build and Unit tests are passing If not, why:
- Unit test coverage check is passing If not, why:
- I have ensured no sensitive information is leaking (i.e., no logging of sensitive fields, or otherwise) If not, why:
- I have added explanatory comments for complex logic, new classes/methods and new tests If not, why:
- I have updated README/documentation (if needed) If not, why:
- I have clearly called out breaking changes (if any) If not, why:
Reviewer Checklist
All reviewers please ensure the following are true before reviewing:
- Reviewee checklist has been accurately filled out
- Code changes align with stated purpose in description
- Test coverage adequately validates the changes
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Signed-off-by: Simon Marty martysi@amazon.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
AWS Secrets Manager JDBC Library
The AWS Secrets Manager JDBC Library enables Java developers to easily connect to SQL databases using secrets stored in AWS Secrets Manager.
License
This library is licensed under the Apache 2.0 License.
Features
Building from Source
After you’ve downloaded the code from GitHub, you can build it using Maven.
mvn clean install -Dgpg.skip=truemvn clean installmvn clean install -PshadeThe shaded JAR will be generated in thetarget/directory with the-shadedclassifier, e.g.:target/aws-secretsmanager-jdbc-2.0.3-shaded.jarUsage
The recommended way to use the SQL Connection Library is to consume it from Maven. The latest released version can be found at: https://mvnrepository.com/artifact/com.amazonaws.secretsmanager/aws-secretsmanager-jdbc
To use the latest build (pre-release), don’t forget to enable the download of snapshot jars from Maven.
Usage Example
We provide database drivers that intercept calls to real database drivers and replace secret IDs with actual login credentials. This prevents hard-coding database credentials into your application code.
The following is an example which uses the secret to resolve both the endpoint and the login credentials.
To specify a custom endpoint and port instead of resolving from the secret, use the jdbc-secretsmanager prefix with your database information.
The secret should be in the correct JSON format. For more information, see the AWS Secrets Manager documentation. For example:
We support a variety of drivers. For more information, see the AWS Secrets Manager JDBC documentation.
Credentials
This library uses the Default Credential Provider Chain. The following options exist to override some of the defaults:
For more information about Post-Quantum TLS in the AWS SDK, see the AWS SDK for Java documentation.
NOTE: PQ-TLS uses the AWS Common Runtime (CRT) which relies on system libraries and may not work as expected on macOS or Windows at this time (ref).
If this driver is running on EKS, the library could pick up the credentials of the node it is running on instead of the service account role (issue). To address this, add version
2ofsoftware.amazon.awssdk:ststo your Gradle/Maven project file as a dependency.