You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: ojdbc-provider-azure/src/test/java/oracle/jdbc/provider/azure/resource/KeyVaultConnectionStringProviderTest.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -94,8 +94,8 @@ public void testGetParameters() {
<dd>Provides connection strings for secure database connectivity based on aliases, retrieved from the `tnsnames.ora`
32
+
file stored in GCP Secret Manager.</dd>
30
33
</dl>
31
34
32
35
Visit any of the links above to find information and usage examples for a
@@ -329,3 +332,40 @@ An example of a [connection properties file](https://docs.oracle.com/en/database
329
332
330
333
This provider supports wallets stored in GCP Secret Manager as both base64-encoded strings and imported files. It automatically detects the storage format and processes the wallet accordingly, ensuring flexibility in managing your SEPS credentials.
331
334
335
+
## Secret Manager Connection String Provider
336
+
337
+
The Connection String Provider provides Oracle JDBC with a connection string managed by the GCP Secret Manager service.
338
+
This is a Resource Provider identified by the name `ojdbc-provider-gcp-secretmanager-tnsnames`.
339
+
340
+
This provider retrieves a `tnsnames.ora` file stored in GCP Secret Manager, allowing selection of connection strings
341
+
based on specified aliases. The `tnsnames.ora` file can be stored as a base64-encoded string or as a raw file,
342
+
and the provider automatically detects the format.
343
+
344
+
This enables flexible configuration for secure database connections using the alias names defined in your `tnsnames.ora` file.
345
+
346
+
<table>
347
+
<thead>
348
+
<tr>
349
+
<th>Parameter Name</th>
350
+
<th>Description</th>
351
+
<th>Accepted Values</th>
352
+
<th>Default Value</th>
353
+
</tr>
354
+
</thead>
355
+
<tbody>
356
+
<tr>
357
+
<td><code>secretVersionName</code></td>
358
+
<td>The version name of the secret in GCP Secret Manager that contains the <code>tnsnames.ora</code> file.</td>
359
+
<td>The <a href="https://cloud.google.com/secret-manager/docs/creating-and-accessing-secrets">GCP Secret Manager Secret Version</a>, typically in the form:<br><pre>projects/{project-id}/secrets/{secret-id}/versions/{version-id}</pre></td>
360
+
<td><i>No default value. A value must be configured for this parameter.</i></td>
361
+
</tr>
362
+
<tr>
363
+
<td><code>tnsAlias</code></td>
364
+
<td>Specifies the alias to retrieve the appropriate connection string from the <code>tnsnames.ora</code> file.</td>
365
+
<td>Any valid alias present in your <code>tnsnames.ora</code> file.</td>
366
+
<td><i>No default value. A value must be configured for this parameter.</i></td>
367
+
</tr>
368
+
</tbody>
369
+
</table>
370
+
371
+
An example of a [connection properties file](https://docs.oracle.com/en/database/oracle/oracle-database/23/jajdb/oracle/jdbc/OracleConnection.html#CONNECTION_PROPERTY_CONFIG_FILE) that configures this provider can be found in [example-vault.properties](example-vault.properties).
0 commit comments