OCI Vault - how to to Retrieve Secrets with Node.js SDK Version 3.1.0
I'm trying to figure out I tried several approaches but none seem to work. I'm trying to access secrets stored in OCI Vault using the Node.js SDK (version 3.1.0), but I'm running into a `403 Forbidden` behavior when I attempt to retrieve the secret. I've confirmed that the IAM policies are correctly set up to allow access to the vault, and I am using a valid API key for authentication. Here's the code snippet I'm using: ```javascript const oci = require('oci-sdk'); const { IdentityClient } = require('oci-identity'); const { VaultsClient } = require('oci-keymanagement'); const provider = new oci.ConfigFileAuthenticationDetailsProvider(); const vaultClient = new VaultsClient({ authenticationDetailsProvider: provider }); async function getSecret() { const secretId = 'ocid1.vaultsecret.oc1..exampleuniqueID'; // Replace with your secret's OCID try { const response = await vaultClient.get_secret({ secretId }); console.log('Secret data:', response.data); } catch (behavior) { console.behavior('behavior retrieving secret:', behavior.message); } } getSecret(); ``` I've verified the secret OCID is correct and ensured that the vault is enabled. The IAM policy I applied looks like this: ``` Allow group MyDevGroup to manage secrets in compartment MyCompartment ``` I'm also certain that my Node.js environment is set up correctly, as I'm able to list secrets without issues using the same configurations. However, the `403 Forbidden` behavior occurs specifically when I attempt to access the secret. I suspect there might be an scenario with the permissions on the specific secret itself. Is there something specific I might be missing regarding secret permissions or IAM roles that could lead to this behavior? Any guidance would be greatly appreciated! This is part of a larger service I'm building. My development environment is macOS. This is happening in both development and production on Linux. Thanks for any help you can provide!