Supported providers
If you self-host Infisical, you can also store recordings on your own S3-compatible server, such as MinIO, after a server admin adds its hostname under Allowed storage hostnames.
Prerequisites
- A bucket from one of the supported providers
- The Product Admin role in PAM, to edit templates
Step 1: Prepare the bucket
Connection
Infisical writes to the bucket with the credentials of an app connection in your organization. For AWS S3, you can use an AWS connection whose credentials have the permissions on the bucket. For any supported provider, including AWS S3, you can create an S3-Compatible Storage connection instead:1
Go to Integrations > App Connections, select Add Connection, and select S3-Compatible Storage.
2
Enter the endpoint and access key for your provider from Supported providers.
Bucket permissions
For AWS S3, give the connection’s credentials these permissions, replacing<bucket-name> with the name of your bucket:
CORS policy
Your browser downloads recordings directly from the bucket when you view a session, so the bucket needs a CORS policy that allows requests from Infisical:https://eu.infisical.com or your own domain, replace https://app.infisical.com with that URL.
Where you add the policy depends on the provider:
- AWS S3: Open the bucket in the AWS console, go to Permissions > Cross-origin resource sharing (CORS), select Edit, and paste the policy
- Cloudflare R2: Paste the same policy under the bucket’s Settings > CORS Policy
- Google Cloud Storage: Configure CORS with the same origin and the
GETmethod - OCI Object Storage: No policy needed, because OCI allows requests from any origin
Step 2: Configure the template
Each template sets the storage for every account that uses it, so you can use different buckets for different templates.1
Go to Privileged Access Management > Account Templates and select the template.
2
On the General tab, under Session Recording, set Storage backend to S3 Bucket.
3
Fill in the bucket details:
- Connection: The AWS or S3-Compatible Storage connection with access to the bucket
- S3 Bucket: The name of the bucket
- Region: The bucket’s AWS region, such as
us-east-1(only for an AWS connection) - Key prefix (optional): A folder in the bucket to store recordings in, such as
pam-recordings/
4
Select Save Changes.