You can connect an application to Secrets Manager by using multiple methods. Then, the application can use dynamic secrets.
Methods
The following table describes the methods that you can use to connect an application to Secrets Manager.
Method | Description | Scenario |
---|---|---|
KMS SDK | KMS SDKs allow you to construct HTTPS requests to make better use of the KMS API. |
|
Secrets Manager Client | Secrets Manager Client allows you to configure the frequency at which Secrets Manager Client obtains secrets from Secrets Manager and refreshes the cache. |
|
Secrets Manager JDBC | Secrets Manager JDBC allows you to use secrets that are managed in Secrets Manager by establishing Java Database Connectivity (JDBC) connections. | Use dynamic ApsaraDB RDS secrets and Java programs to access databases. For more information, see Overview. |
Managed secret plug-ins for Alibaba Cloud SDKs | Managed secret plug-ins for Alibaba Cloud SDKs allow you to use dynamic Resource Access Management (RAM) secrets to access Alibaba Cloud services in a more efficient manner. | Use dynamic RAM secrets to access Alibaba Cloud services. For more information, see Overview. |
Secrets Manager Kubernetes plug-in | The Secrets Manager Kubernetes plug-in allows you to integrate Secrets Manager with your system in a quick and codeless manner. | Update configurations in a codeless manner at regular intervals. |
Use KMS SDKs
The following example shows how to use KMS SDK for Java and use dynamic ApsaraDB RDS secrets in an application. If you use other types of secrets instead of dynamic ApsaraDB RDS secrets, you can also use this method.