Skip to content

Fix wallet_location JSON Object handling #184

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

Merged
merged 2 commits into from
Jun 3, 2025

Conversation

MouhsinElmajdouby
Copy link
Member

This PR fixes issues with the wallet_location JSON object in Azure, HashiCorp (Vault Dedicated and Secrets), and AWS providers. It ensures cwallet.sso files are not encoded in Base64 twice and adds clear, comprehensive documentation for all providers (AWS, Azure, GCP, HashiCorp, OCI).

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 22, 2025
Copy link
Member

@fmeheust fmeheust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments

@@ -44,12 +44,15 @@
import oracle.jdbc.spi.OracleConfigurationSecretProvider;
import oracle.sql.json.OracleJsonObject;

import java.nio.charset.StandardCharsets;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this import needed?

import java.util.Base64;
import java.util.Map;

import static oracle.jdbc.provider.hashicorp.hcpvaultdedicated.authentication.DedicatedVaultParameters.FIELD_NAME;
import static oracle.jdbc.provider.hashicorp.hcpvaultdedicated.authentication.DedicatedVaultParameters.PARAMETER_SET_PARSER;
import static oracle.jdbc.provider.hashicorp.util.JsonUtil.extractSecret;
import static oracle.jdbc.provider.util.FileUtils.isBase64Encoded;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this import needed?

@@ -40,13 +40,16 @@

import oracle.jdbc.provider.hashicorp.hcpvaultsecret.secrets.HcpVaultSecretsManagerFactory;
import oracle.jdbc.provider.parameter.ParameterSet;
import oracle.jdbc.provider.util.FileUtils;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this import needed?

@jeandelavarene jeandelavarene merged commit b7f32a7 into main Jun 3, 2025
2 checks passed
@jeandelavarene jeandelavarene deleted the fix/centralized-config-wallet-location branch June 3, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants