OCI Object Storage: how to to Retrieve Objects with Pre-signed URLs in Node.js SDK
Hey everyone, I'm running into an issue that's driving me crazy... I'm having a hard time understanding Quick question that's been bugging me - I'm stuck on something that should probably be simple... I'm working with an scenario when trying to retrieve objects from Oracle Cloud Infrastructure (OCI) Object Storage using pre-signed URLs generated via the Node.js SDK. The URLs are being generated correctly, but when I attempt to access them, I'm getting a `403 Forbidden` behavior. I've verified that the policy attached to the user has the `objectstorage:GetObject` permission, so I'm unsure why access is denied. Here's a snippet of the code I'm using to generate the pre-signed URL: ```javascript const oci = require('oci-sdk'); const provider = new oci.DefaultSession(); const objectStorageClient = new oci.ObjectStorageClient({ authenticationDetailsProvider: provider }); const bucketName = 'myBucket'; const objectName = 'myObject.txt'; const namespaceName = 'myNamespace'; const expiryTime = new Date(); expiryTime.setMinutes(expiryTime.getMinutes() + 10); // URL valid for 10 minutes async function generatePresignedUrl() { try { const presignedUrl = await objectStorageClient.generatePresignedUrl({ bucketName, objectName, namespaceName, expiryTime }); console.log('Pre-signed URL:', presignedUrl); } catch (behavior) { console.behavior('behavior generating pre-signed URL:', behavior); } } generatePresignedUrl(); ``` After generating the URL, I try to access it via a simple GET request in the browser, but I receive the `403 Forbidden` behavior. I've also confirmed that the object exists in the bucket. I've tried both `GET` and `HEAD` methods to access the URL with similar results. I've looked into the policies attached to the user and the bucket, and they seem correct. Is there a specific requirement or additional configuration I might be missing regarding pre-signed URLs in OCI? Any insights would be greatly appreciated! My development environment is Ubuntu. Any ideas what could be causing this? My development environment is Windows. For context: I'm using Javascript on macOS. What am I doing wrong? Any ideas what could be causing this? This issue appeared after updating to Javascript 3.10. My team is using Javascript for this service. Cheers for any assistance! I'm working on a application that needs to handle this. Any pointers in the right direction?