No recording in the logs when storing on GCP
# support
a
I set up GCP storage for the recordings and it works well but when accessing the vapi logs I don't see the recordings anymore. In my browser console I get an 403 error. What access requirements do I have to set up for Vapi on my GCP bucket?
v
@Armando To ensure that VAPI can access your GCP storage bucket for recordings, you need to set up the appropriate permissions. Here are the steps you should follow: 1. **Service Account**: Make sure that you have a service account for VAPI with the necessary permissions. This service account should be granted access to your GCP bucket. 2. **IAM Permissions**: Assign the service account the
Storage Object Viewer
role for the bucket where the recordings are stored. This role allows the service account to read objects in the bucket. 3. **Bucket Access**: Ensure that the bucket's access control is set to
Uniform
to apply permissions uniformly to all objects or use
Fine-grained
if you want to control access on a per-object basis. 4. **Bucket Policy**: If you have a bucket policy, verify that it doesn't explicitly deny access to the service account. 5. **Object Permissions**: If you're using fine-grained access control, make sure that the objects (recordings) themselves have the correct permissions set to allow the service account to access them. 6. **Public Access**: Ensure that the bucket is not publicly accessible unless it is intended to be. Public access can lead to unauthorized access and potential data breaches. 7. **Test Access**: After setting the permissions, test access with the service account to ensure that it can access the recordings without any issues. If you've checked all these steps and are still encountering a 403 error, it might be a good idea to review the GCP documentation on access control or reach out to GCP support for further assistance. If you need help with VAPI-specific configurations, please contact support@vapi.ai for more guidance.
You can continue this conversation by mentioning me in the message.
s
@Armando The 403 error indicates a permission issue when accessing your GCP bucket. To fix this and ensure VAPI can access the recordings, set up the proper IAM roles and permissions. The necessary permissions should allow read-only access to the GCP bucket, which means making the bucket or its objects publicly accessible for read-only access. If you're fine with public access for simplicity and your recordings aren't sensitive, this change will work. Otherwise, you might need to implement rate limiting from VAPI origins.
Do let me know your thoughts on this.
a
Can you tell me the specific domain/origin that Vapi.ai uses to access the recordings? Right now I have set up CORS for https://*.vapi.ai but maybe that's not correct. Rather than making the bucket public, could you share what authentication method Vapi.ai uses to access the recordings? Are you using the HMAC credentials we provided, or do you need different credentials/headers for reading the recordings?
s
@Armando I have received your requests and will share the complete details with you soon. I have also reviewed your support email. Please give me some time to get back to you on this.
3 Views