Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs(app-connections): add integration picker and revamp aws connection (#8379)
Adrian Kahali54a2b29e4f0f
diff --git a/.agents/skills/docs-style/templates/README.md b/.agents/skills/docs-style/templates/README.mdindex e08dec0252..5c96f73046 100644--- a/.agents/skills/docs-style/templates/README.md+++ b/.agents/skills/docs-style/templates/README.md@@ -65,6 +65,33 @@ step title doesn't work, because steps don't have a `title` prop.Links from a sync or rotation page to the organization-level connection steps use`/integrations/app-connections/{product}#step-2-create-the-app-connection`.+## Steps that depend on the integration++When a connection needs different setup for each integration that uses it, such as a separate+permission policy per integration, put a use case picker at the top of the page instead of a tab+per integration. `snippets/UseCasePicker.jsx` exports two components:++- `<UseCasePicker prefix="I want my {Product} connection to work for" groups={...} />`: a+ sentence ending in a dropdown where the reader picks one or more integrations+- `<UseCase use="{id}">`: shows its children only when the reader picked that id, or when they+ picked nothing, so the page reads as the complete guide by default. `use` takes a+ comma-separated list for content that several integrations share. Add `hideWhenEmpty` for+ content that only makes sense next to a filtered result, such as setup notes that follow a+ combined policy, so it stays hidden until the reader picks something++A `<UseCase>` can hold its own `###` heading. Mintlify builds the "On this page" list at build+time, so it would still list hidden headings; the picker hides those entries at runtime, so the+list matches what's on the page++Put the options in `snippets/app-connections/{product}/use-cases.jsx` as an exported array of+`{ label, options: [{ id, label }] }` groups, import it on the page next to the component, and+pass it as `groups`. A snippet can't import another snippet, so the page does both imports. The+picker writes the selection to the URL (`?use=id-1,id-2`), so a reader can share a link to a+filtered page.++Wrap each integration's content in its own `<UseCase>`, including its card in the+"Configure integrations" step. `integrations/app-connections/aws.mdx` is the example.+## Where the example pages differ from the templatesThe example pages each template names predate some of the style guide's rules. When you readdiff --git a/.agents/skills/docs-style/templates/app-connection.mdx b/.agents/skills/docs-style/templates/app-connection.mdxindex 1a739a9f08..728417ed71 100644--- a/.agents/skills/docs-style/templates/app-connection.mdx+++ b/.agents/skills/docs-style/templates/app-connection.mdx@@ -47,12 +47,13 @@ Next, create the app connection in Infisical.<View title="Organization-level"><Steps><Step>- In the sidebar, select **Organization Settings**, then open the **App Connections** tab.+ In the sidebar, select **Integrations**, then open the **App Connections** tab.</Step><Step>- Select **+ Add Connection** and choose **{Product} Connection**.+ {/* NOTE: The app picker labels each card with the product's name alone, from APP_CONNECTION_MAP in frontend/src/helpers/appConnections.ts. */}+ Select **Add Connection** and choose **{Product}**.</Step>@@ -79,7 +80,7 @@ Next, create the app connection in Infisical.In your Secrets Manager project, select **Integrations** from the sidebar, then open the **App Connections** tab.</Step><Step>- Select **Add Connection** and choose **{Product} Connection**.+ Select **Add Connection** and choose **{Product}**.</Step>diff --git a/docs/documentation/platform/pki/applications/certificate-syncs/aws-secrets-manager.mdx b/docs/documentation/platform/pki/applications/certificate-syncs/aws-secrets-manager.mdxindex 6511b3c5cc..6761b29086 100644--- a/docs/documentation/platform/pki/applications/certificate-syncs/aws-secrets-manager.mdx+++ b/docs/documentation/platform/pki/applications/certificate-syncs/aws-secrets-manager.mdx@@ -15,7 +15,6 @@ Store certificates in AWS Secrets Manager as JSON secrets for application retrie- An [AWS Connection](/integrations/app-connections/aws) with the following permissions:- `secretsmanager:CreateSecret`- `secretsmanager:UpdateSecret`- - `secretsmanager:GetSecretValue`- `secretsmanager:DeleteSecret`- `secretsmanager:ListSecrets`diff --git a/docs/integrations/app-connections/aws.mdx b/docs/integrations/app-connections/aws.mdxindex c4a44838e8..ab6a89d646 100644--- a/docs/integrations/app-connections/aws.mdx+++ b/docs/integrations/app-connections/aws.mdx@@ -1,1056 +1,336 @@---title: "AWS connection"sidebarTitle: "AWS"-description: "Learn how to configure an AWS Connection for Infisical."+description: "Learn how to configure an AWS connection for Infisical."----Infisical supports two methods for connecting to AWS.+import { UseCasePicker, UseCase } from "/snippets/UseCasePicker.jsx";+import { awsUseCaseGroups } from "/snippets/app-connections/aws/use-cases.jsx";+import { CombinedIamPolicy } from "/snippets/AwsIamPolicy.jsx";+import SelfHostedInstance from "/snippets/app-connections/aws/self-hosted-instance.mdx";+import CreateIamRole from "/snippets/app-connections/aws/create-iam-role.mdx";+import CreateIamUser from "/snippets/app-connections/aws/create-iam-user.mdx";+import ConnectionFormFields from "/snippets/app-connections/aws/form-fields.mdx";-<Tabs>- <Tab title="Assume Role (Recommended)">- Infisical will assume the provided role in your AWS account securely, without the need to share any credentials.-- <Accordion title="Self-Hosted Instance">- To connect your self-hosted Infisical instance with AWS, you need to set up an AWS IAM User account that can assume the configured AWS IAM Role.-- <Note>- If your Infisical instance is deployed on AWS (e.g. EC2, ECS, or EKS), you do not need to provide static credentials. When the `INF_APP_CONNECTION_AWS_ACCESS_KEY_ID` and `INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY` environment variables are not set, Infisical will automatically retrieve credentials from your instance's environment (instance profile, task role, or IRSA). Simply ensure that the IAM role attached to your compute has the permission policy below to assume your target roles.- </Note>-- The following steps are for instances **not** deployed on AWS:- <Steps>- <Step title="Create an IAM User">- Navigate to [Create IAM User](https://console.aws.amazon.com/iamv2/home#/users/create) in your AWS Console.- </Step>- <Step title="Create an Inline Policy">- Attach the following inline permission policy to the IAM User to allow it to assume any IAM Roles:- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowAssumeAnyRole",- "Effect": "Allow",- "Action": "sts:AssumeRole",- "Resource": "arn:aws:iam::*:role/*"- }- ]- }- ```- </Step>- <Step title="Obtain the IAM User Credentials">- Obtain the AWS access key ID and secret access key for your IAM User by navigating to **IAM > Users > [Your User] > Security credentials > Access keys**.-- - - - </Step>- <Step title="Set Up Connection Keys">- 1. Set the access key as **INF_APP_CONNECTION_AWS_ACCESS_KEY_ID**.- 2. Set the secret key as **INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY**.- </Step>- </Steps>- </Accordion>-- <Steps>- <Step title="Create the Managing User IAM Role for Infisical">- 1. Navigate to the [Create IAM Role](https://console.aws.amazon.com/iamv2/home#/roles/create?step=selectEntities) page in your AWS Console.- -- 2. Select **AWS Account** as the **Trusted Entity Type**.- 3. Select **Another AWS Account** and provide the appropriate Infisical AWS Account ID: use **381492033652** for the **US region**, and **345594589636** for the **EU region**. This restricts the role to be assumed only by Infisical. If self-hosting, provide your AWS account number instead.- <Note>- **For Dedicated Instances**: Your AWS account ID differs from the one provided above. Please reach out to Infisical support to obtain your AWS account ID.- </Note>- 4. (Recommended) <strong>Enable "Require external ID"</strong> and input the appropriate ID to strengthen security and mitigate the [confused deputy problem](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html):- - **Project-scoped connections** — use your **Project ID** as the External ID.- - **Organization-scoped connections** — use your **Organization ID** as the External ID.-- <Warning type="warning" title="Security Best Practice: Use External ID to Prevent Confused Deputy Attacks">- When configuring an IAM Role that Infisical will assume, it’s highly recommended to enable the **"Require external ID"** option.-- This precaution helps protect your AWS account against the [confused deputy problem](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html), a potential security vulnerability where Infisical could be tricked into performing actions on your behalf by an unauthorized actor.-- Infisical automatically sends the correct External ID based on the connection’s scope:- - **Project-scoped connections** use the **Project ID** as the External ID, restricting role access to a single project. **Certificate Manager** connections use the **Organization ID** as the External ID.- - **Organization-scoped connections** use the **Organization ID** as the External ID.-- <strong>Always enable "Require external ID" when setting up the IAM Role, and use the ID that matches your connection’s scope.</strong>-- <Note>- **Upgrading existing project-scoped connections:** Connections created before **May 26, 2026** (cloud) or release **v0.160.7** (self-hosted) use the Organization ID as the External ID (legacy behavior). To adopt the stronger project-scoped External ID, delete and recreate the connection, then update your IAM role’s trust policy to use your Project ID instead.- </Note>- </Warning>- </Step>-- <Step title="Add Required Permissions to the IAM Role">- Navigate to your IAM role permissions and click **Create Inline Policy**.-- -- Depending on your use case, add one or more of the following policies to your IAM Role:-- <Tabs>- <Tab title="Secret Sync">- <AccordionGroup>- <Accordion title="AWS Secrets Manager">- Use the following custom policy to grant the minimum permissions required by Infisical to sync secrets to AWS Secrets Manager:-- -- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowSecretsManagerAccess",- "Effect": "Allow",- "Action": [- "secretsmanager:ListSecrets",- "secretsmanager:GetSecretValue",- "secretsmanager:BatchGetSecretValue",- "secretsmanager:CreateSecret",- "secretsmanager:UpdateSecret",- "secretsmanager:DeleteSecret",- "secretsmanager:DescribeSecret",- "secretsmanager:TagResource",- "secretsmanager:UntagResource",- "kms:ListAliases", // if you need to specify the KMS key- "kms:Encrypt", // if you need to specify the KMS key- "kms:Decrypt", // if you need to specify the KMS key- "kms:DescribeKey" // if you need to specify the KMS key- ],- "Resource": "*"- }- ]- }- ```- <Note>If using a custom KMS key, be sure to add the IAM user or role as a key user. </Note>- </Accordion>- <Accordion title="AWS Parameter Store">- Use the following custom policy to grant the minimum permissions required by Infisical to sync secrets to AWS Parameter Store:-- -- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowSSMAccess",- "Effect": "Allow",- "Action": [- "ssm:PutParameter",- "ssm:GetParameters",- "ssm:GetParametersByPath",- "ssm:DescribeParameters",- "ssm:DeleteParameters",- "ssm:ListTagsForResource", // if you need to add tags to secrets- "ssm:AddTagsToResource", // if you need to add tags to secrets- "ssm:RemoveTagsFromResource", // if you need to add tags to secrets- "kms:ListAliases", // if you need to specify the KMS key- "kms:Encrypt", // if you need to specify the KMS key- "kms:Decrypt", // if you need to specify the KMS key- "kms:DescribeKey" // if you need to specify the KMS key- ],- "Resource": "*"- }- ]- }- ```- <Note>If using a custom KMS key, be sure to add the IAM user or role as a key user. </Note>- </Accordion>- </AccordionGroup>- </Tab>- <Tab title="Secret Rotation">- <AccordionGroup>- <Accordion title="AWS IAM">- Use the following custom policy to grant the minimum permissions required by Infisical to rotate secrets to AWS Access Keys:-- -- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Effect": "Allow",- "Action": [- "iam:ListAccessKeys",- "iam:CreateAccessKey",- "iam:UpdateAccessKey",- "iam:DeleteAccessKey",- "iam:ListUsers"- ],- "Resource": "*"- }- ]- }- ```- </Accordion>- </AccordionGroup>- </Tab>- <Tab title="PKI Sync">- <AccordionGroup>- <Accordion title="AWS Certificate Manager">- Use the following custom policy to grant the minimum permissions required by Infisical to sync certificates to AWS Certificate Manager:-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowCertificateManagerAccess",- "Effect": "Allow",- "Action": [- "acm:ListCertificates",- "acm:DescribeCertificate",- "acm:GetCertificate",- "acm:ImportCertificate",- "acm:ExportCertificate",- "acm:DeleteCertificate",- "acm:AddTagsToCertificate",- "acm:RemoveTagsFromCertificate",- "acm:ListTagsForCertificate"- ],- "Resource": "*"- }- ]- }- ```- <Note>- - **ListCertificates**: Lists all certificates in the account- - **ImportCertificate**: Imports certificates from Infisical into AWS Certificate Manager- - **ExportCertificate**: Exports certificates for synchronization- - **DeleteCertificate**: Removes certificates that are no longer managed by Infisical- - **DescribeCertificate** and **GetCertificate**: Retrieves certificate details for comparison during sync- - Tag-related permissions: Manages certificate tags for identification and organization- </Note>- </Accordion>- <Accordion title="AWS Elastic Load Balancer">- Use the following custom policy to grant the minimum permissions required by Infisical to sync certificates to AWS Elastic Load Balancers:+<UseCasePicker prefix="I want the connection to work with" groups={awsUseCaseGroups} />- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowCertificateManagerAccess",- "Effect": "Allow",- "Action": [- "acm:ListCertificates",- "acm:DescribeCertificate",- "acm:ImportCertificate",- "acm:DeleteCertificate",- "acm:ListTagsForCertificate"- ],- "Resource": "*"- },- {- "Sid": "AllowElasticLoadBalancerAccess",- "Effect": "Allow",- "Action": [- "elasticloadbalancing:DescribeLoadBalancers",- "elasticloadbalancing:DescribeListeners",- "elasticloadbalancing:DescribeListenerCertificates",- "elasticloadbalancing:AddListenerCertificates",- "elasticloadbalancing:RemoveListenerCertificates",- "elasticloadbalancing:ModifyListener"- ],- "Resource": "*"- }- ]- }- ```- <Note>- **ACM Permissions:**- - **ListCertificates**: Lists all certificates in the account- - **ImportCertificate**: Imports certificates from Infisical into AWS Certificate Manager- - **DeleteCertificate**: Removes certificates that are no longer managed by Infisical- - **DescribeCertificate**: Retrieves certificate details for comparison during sync- - **ListTagsForCertificate**: Retrieves certificate tags for identification+An AWS connection authenticates Infisical to your AWS account, either by assuming an [IAM role](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html) or with an [IAM user's access keys](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html).- **ELB Permissions:**- - **DescribeLoadBalancers**: Lists available load balancers for selection- - **DescribeListeners**: Lists HTTPS/TLS listeners on load balancers- - **DescribeListenerCertificates**: Lists certificates attached to listeners- - **AddListenerCertificates**: Attaches certificates to listeners- - **RemoveListenerCertificates**: Removes certificates from listeners- - **ModifyListener**: Sets the default certificate on listeners- </Note>- </Accordion>- </AccordionGroup>- </Tab>- <Tab title="External Certificate Authority">- <AccordionGroup>- <Accordion title="AWS Private CA">- Use the following custom policy to grant the minimum permissions required by Infisical to issue certificates via AWS Private CA.+<Note>+ This guide doesn’t configure any behavior—it just authenticates Infisical with AWS. Once the app connection is ready, you can [use it to set up integrations](#step-4-configure-integrations).+</Note>- For a **single CA**, scope the `Resource` to that CA's ARN:+## Prerequisites- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowAwsPrivateCAAccess",- "Effect": "Allow",- "Action": [- "acm-pca:DescribeCertificateAuthority",- "acm-pca:GetCertificateAuthorityCertificate",- "acm-pca:IssueCertificate",- "acm-pca:GetCertificate",- "acm-pca:RevokeCertificate"- ],- "Resource": "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/your-ca-id"- }- ]- }- ```+- An AWS account where you can create IAM roles or users and attach policies to them- For **multiple CAs**, list each ARN in the `Resource` array:+<UseCase use="pam-recording" hideWhenEmpty>+ - An [Amazon S3 bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html) for PAM session recordings+</UseCase>- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowAwsPrivateCAAccess",- "Effect": "Allow",- "Action": [- "acm-pca:DescribeCertificateAuthority",- "acm-pca:GetCertificateAuthorityCertificate",- "acm-pca:IssueCertificate",- "acm-pca:GetCertificate",- "acm-pca:RevokeCertificate"- ],- "Resource": [- "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/ca-id-1",- "arn:aws:acm-pca:us-west-2:123456789012:certificate-authority/ca-id-2"- ]- }- ]- }- ```- <Note>- - **DescribeCertificateAuthority**: Validates the CA status and configuration- - **GetCertificateAuthorityCertificate**: Retrieves the CA certificate and chain- - **IssueCertificate**: Issues certificates from the private CA- - **GetCertificate**: Retrieves issued certificates- - **RevokeCertificate**: Revokes previously issued certificates+<UseCase use="agent-vault-session-logs" hideWhenEmpty>+ - An [Amazon S3 bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html) for Agent Vault session logs+</UseCase>- Using a specific CA ARN in `Resource` is recommended over `"*"` to follow the principle of least privilege.- </Note>- <Note>- If you further restrict `IssueCertificate` with an `acm-pca:TemplateArn` condition, include every template Infisical uses, or issuance fails with a permission error:+<UseCase use="private-ca" hideWhenEmpty>+ - An [AWS Private CA](https://docs.aws.amazon.com/privateca/latest/userguide/create-CA.html) for Infisical to issue certificates from+</UseCase>- - `arn:aws:acm-pca:::template/BlankEndEntityCertificate_APICSRPassthrough/V1` for end-entity certificates- - `arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen{0,1,2,3}_APICSRPassthrough/V1` for [CA certificates](/documentation/platform/pki/ca/aws-pca#issuing-ca-certificates)- </Note>- </Accordion>- <Accordion title="AWS ACM Public CA">- Use the following custom policy to grant the minimum permissions required by Infisical to issue publicly-trusted certificates via AWS Certificate Manager and perform DNS validation through Route 53.+<UseCase use="acm-public-ca,acme-route53" hideWhenEmpty>+ - A [Route 53 hosted zone](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingHostedZone.html) for the domain you'll issue certificates for+</UseCase>- **ACM permissions** — `RequestCertificate` cannot be scoped below `"*"` because the certificate ARN does not exist until after the call succeeds:+## Step 1: Create an IAM role or IAM user- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowAcmPublicCaAccess",- "Effect": "Allow",- "Action": [- "acm:RequestCertificate",- "acm:DescribeCertificate",- "acm:ExportCertificate",- "acm:RenewCertificate",- "acm:RevokeCertificate",- "acm:ListCertificates"- ],- "Resource": "*"- }- ]- }- ```+Infisical can either assume an IAM role in your account or sign in as an IAM user with an access key. We recommend using an IAM role, since Infisical never holds a long-lived credential for it.- **Route 53 permissions** — scope to the hosted zone(s) used for DNS validation:-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowRoute53ForAcmValidation",- "Effect": "Allow",- "Action": [- "route53:GetHostedZone",- "route53:ChangeResourceRecordSets"- ],- "Resource": "arn:aws:route53:::hostedzone/YOUR_HOSTED_ZONE_ID"- }- ]- }- ```-- ACM and Route 53 permissions can live on the same IAM principal, or be split across two separate connections in Infisical.-- <Note>- **ACM Permissions:**- - **RequestCertificate**: Requests a new public certificate from ACM- - **DescribeCertificate**: Retrieves certificate status and DNS validation records- - **ExportCertificate**: Exports the issued certificate and private key to Infisical- - **RenewCertificate**: Triggers renewal of an existing certificate- - **RevokeCertificate**: Revokes a previously issued certificate- - **ListCertificates**: Used during connection validation-- **Route 53 Permissions:**- - **GetHostedZone**: Validates the hosted zone during CA setup- - **ChangeResourceRecordSets**: Writes the ACM DNS validation CNAME records- </Note>- </Accordion>- </AccordionGroup>- </Tab>- <Tab title="PAM Session Recording">- <AccordionGroup>- <Accordion title="AWS S3 Bucket">- Use the following custom policy to grant the minimum permissions required by Infisical to store and play back PAM session recordings in your S3 bucket. Replace `your-pam-recordings-bucket` with the bucket name you configure in **Project Settings → Session Recording**.-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowPamRecordingBucketAccess",- "Effect": "Allow",- "Action": [- "s3:PutObject",- "s3:GetObject"- ],- "Resource": "arn:aws:s3:::your-pam-recordings-bucket/*"- },- {- "Sid": "AllowPamRecordingBucketTest",- "Effect": "Allow",- "Action": [- "s3:ListBucket"- ],- "Resource": "arn:aws:s3:::your-pam-recordings-bucket"- },- {- "Sid": "AllowPamRecordingConnectionTestCleanup",- "Effect": "Allow",- "Action": [- "s3:DeleteObject"- ],- "Resource": "arn:aws:s3:::your-pam-recordings-bucket/.test/*"- }- ]- }- ```-- If you scoped the recording config to a key prefix (for example `pam/prod`), update all three `Resource` ARNs to include the prefix:-- ```json- "Resource": "arn:aws:s3:::your-pam-recordings-bucket/pam/prod/*"- ```-- ```json- "Resource": "arn:aws:s3:::your-pam-recordings-bucket/pam/prod/.test/*"- ```-- <Note>- **S3 Permissions:**- - **PutObject**: Lets the gateway upload encrypted recording chunks via presigned PUT URLs. Also used by the connection test to write a probe object under `{prefix}/.test/{uuid}`.- - **GetObject**: Lets the browser fetch encrypted chunks during playback via presigned GET URLs. Decryption happens locally in the browser; Infisical only ever sees ciphertext.- - **ListBucket**: Required by `HeadBucket`, which Infisical calls during the connection test to confirm the bucket exists and the credentials can reach it.- - **DeleteObject** (scoped to `.test/*`): Used **only** to clean up the probe object after the connection test. Infisical never deletes recording chunks. Your bucket lifecycle policy owns retention. When using a key prefix, the test object is written under `{prefix}/.test/`, so the `DeleteObject` resource must include the prefix.- </Note>-- <Note>- Recording chunks are encrypted with a per-session AES-256-GCM key on the gateway before they leave your network, and the session key is wrapped with Infisical's KMS using session-bound AAD. Even if the bucket policy is wider than the principle of least privilege suggests, the ciphertext is not readable without an authenticated session-key unwrap.- </Note>-- #### Bucket CORS configuration-- During playback the browser fetches encrypted chunks directly from S3 using presigned GET URLs. For this to work the bucket needs a CORS policy that allows requests from your Infisical domain.-- Open the bucket in the AWS console, go to **Permissions → Cross-origin resource sharing (CORS)**, and add:-- ```json- [- {- "AllowedHeaders": ["*"],- "AllowedMethods": ["GET"],- "AllowedOrigins": ["https://app.infisical.com"],- "ExposeHeaders": [],- "MaxAgeSeconds": 3600- }- ]- ```-- Replace `https://app.infisical.com` with the origin where your Infisical dashboard is served (for example `https://eu.infisical.com` or `http://localhost:8080` during development). You can list multiple origins if needed.- </Accordion>- </AccordionGroup>- </Tab>- </Tabs>- </Step>-- <Step title="Copy the AWS IAM Role ARN">- - </Step>-- <Step title="Setup AWS Connection in Infisical">- <Tabs>- <Tab title="Infisical UI">- 1. Navigate to the **Integrations** tab in the desired project, then select **App Connections**.- -- 2. Select the **AWS Connection** option.- -- 3. Select the **Assume Role** method option and provide the **AWS IAM Role ARN** obtained from the previous step and press **Connect to AWS**.- -- <Note>- The optional **STS Endpoint URL** field lets you override the default AWS STS endpoint that Infisical- calls to assume the role. Provide an HTTPS URL (for example a VPC PrivateLink, GovCloud, China, FIPS,- or region-pinned STS endpoint) when the default `https://sts.amazonaws.com` is not reachable or desired.- Leave it blank to use AWS's default endpoint resolution.- </Note>-- 4. Your **AWS Connection** is now available for use.- - </Tab>- <Tab title="API">- To create an AWS Connection, make an API request to the [Create AWS- Connection](/api-reference/endpoints/app-connections/aws/create) API endpoint.-- ### Sample request-- ```bash Request- curl --request POST \- --url https://app.infisical.com/api/v1/app-connections/aws \- --header 'Content-Type: application/json' \- --data '{- "name": "my-aws-connection",- "method": "assume-role",- "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",- "credentials": {- "roleArn": "...",- "stsEndpoint": "https://sts.amazonaws.com"- }- }'- ```-- ### Sample response+<Tabs>+ <Tab title="Assume Role (Recommended)">+ <SelfHostedInstance />- ```bash Response- {- "appConnection": {- "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",- "name": "my-aws-connection",- "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",- "version": 123,- "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",- "createdAt": "2023-11-07T05:31:56Z",- "updatedAt": "2023-11-07T05:31:56Z",- "app": "aws",- "method": "assume-role",- "credentials": {}- }- }- ```- </Tab>- </Tabs>- </Step>+ <Steps>+ <CreateIamRole externalId="required" /></Steps>-</Tab><Tab title="Access Key">- Infisical will use the provided **Access Key ID** and **Secret Key** to connect to your AWS instance.-<Steps>- <Step title="Add Required Permissions to the IAM User">- Navigate to your IAM user permissions and click **Create Inline Policy**.-- -- Depending on your use case, add one or more of the following policies to your user:-- <Tabs>- <Tab title="Secret Sync">- <AccordionGroup>- <Accordion title="AWS Secrets Manager">- Use the following custom policy to grant the minimum permissions required by Infisical to sync secrets to AWS Secrets Manager:-- -- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowSecretsManagerAccess",- "Effect": "Allow",- "Action": [- "secretsmanager:ListSecrets",- "secretsmanager:GetSecretValue",- "secretsmanager:BatchGetSecretValue",- "secretsmanager:CreateSecret",- "secretsmanager:UpdateSecret",- "secretsmanager:DeleteSecret",- "secretsmanager:DescribeSecret",- "secretsmanager:TagResource",- "secretsmanager:UntagResource",- "kms:ListAliases", // if you need to specify the KMS key- "kms:Encrypt", // if you need to specify the KMS key- "kms:Decrypt", // if you need to specify the KMS key- "kms:DescribeKey" // if you need to specify the KMS key- ],- "Resource": "*"- }- ]- }- ```- <Note>If using a custom KMS key, be sure to add the IAM user or role as a key user. </Note>- </Accordion>- <Accordion title="AWS Parameter Store">- Use the following custom policy to grant the minimum permissions required by Infisical to sync secrets to AWS Parameter Store:-- -- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowSSMAccess",- "Effect": "Allow",- "Action": [- "ssm:PutParameter",- "ssm:GetParameters",- "ssm:GetParametersByPath",- "ssm:DescribeParameters",- "ssm:DeleteParameters",- "ssm:ListTagsForResource", // if you need to add tags to secrets- "ssm:AddTagsToResource", // if you need to add tags to secrets- "ssm:RemoveTagsFromResource", // if you need to add tags to secrets- "kms:ListAliases", // if you need to specify the KMS key- "kms:Encrypt", // if you need to specify the KMS key- "kms:Decrypt", // if you need to specify the KMS key- "kms:DescribeKey" // if you need to specify the KMS key- ],- "Resource": "*"- }- ]- }- ```- <Note>If using a custom KMS key, be sure to add the IAM user or role as a key user. </Note>- </Accordion>- </AccordionGroup>- </Tab>- <Tab title="Secret Rotation">- <AccordionGroup>- <Accordion title="AWS IAM">- Use the following custom policy to grant the minimum permissions required by Infisical to rotate secrets to AWS Access Keys:-- -- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Effect": "Allow",- "Action": [- "iam:ListAccessKeys",- "iam:CreateAccessKey",- "iam:UpdateAccessKey",- "iam:DeleteAccessKey",- "iam:ListUsers"- ],- "Resource": "*"- }- ]- }- ```- </Accordion>- </AccordionGroup>- </Tab>- <Tab title="PKI Sync">- <AccordionGroup>- <Accordion title="AWS Certificate Manager">- Use the following custom policy to grant the minimum permissions required by Infisical to sync certificates to AWS Certificate Manager:-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowCertificateManagerAccess",- "Effect": "Allow",- "Action": [- "acm:ListCertificates",- "acm:DescribeCertificate",- "acm:GetCertificate",- "acm:ImportCertificate",- "acm:ExportCertificate",- "acm:DeleteCertificate",- "acm:AddTagsToCertificate",- "acm:RemoveTagsFromCertificate",- "acm:ListTagsForCertificate"- ],- "Resource": "*"- }- ]- }- ```- <Note>- - **ListCertificates**: Lists all certificates in the account- - **ImportCertificate**: Imports certificates from Infisical into AWS Certificate Manager- - **ExportCertificate**: Exports certificates for synchronization- - **DeleteCertificate**: Removes certificates that are no longer managed by Infisical- - **DescribeCertificate** and **GetCertificate**: Retrieves certificate details for comparison during sync- - Tag-related permissions: Manages certificate tags for identification and organization- </Note>- </Accordion>- <Accordion title="AWS Elastic Load Balancer">- Use the following custom policy to grant the minimum permissions required by Infisical to sync certificates to AWS Elastic Load Balancers:-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowCertificateManagerAccess",- "Effect": "Allow",- "Action": [- "acm:ListCertificates",- "acm:DescribeCertificate",- "acm:ImportCertificate",- "acm:DeleteCertificate",- "acm:ListTagsForCertificate"- ],- "Resource": "*"- },- {- "Sid": "AllowElasticLoadBalancerAccess",- "Effect": "Allow",- "Action": [- "elasticloadbalancing:DescribeLoadBalancers",- "elasticloadbalancing:DescribeListeners",- "elasticloadbalancing:DescribeListenerCertificates",- "elasticloadbalancing:AddListenerCertificates",- "elasticloadbalancing:RemoveListenerCertificates",- "elasticloadbalancing:ModifyListener"- ],- "Resource": "*"- }- ]- }- ```- <Note>- **ACM Permissions:**- - **ListCertificates**: Lists all certificates in the account- - **ImportCertificate**: Imports certificates from Infisical into AWS Certificate Manager- - **DeleteCertificate**: Removes certificates that are no longer managed by Infisical- - **DescribeCertificate**: Retrieves certificate details for comparison during sync- - **ListTagsForCertificate**: Retrieves certificate tags for identification-- **ELB Permissions:**- - **DescribeLoadBalancers**: Lists available load balancers for selection- - **DescribeListeners**: Lists HTTPS/TLS listeners on load balancers- - **DescribeListenerCertificates**: Lists certificates attached to listeners- - **AddListenerCertificates**: Attaches certificates to listeners- - **RemoveListenerCertificates**: Removes certificates from listeners- - **ModifyListener**: Sets the default certificate on listeners- </Note>- </Accordion>- </AccordionGroup>- </Tab>- <Tab title="External CA">- <AccordionGroup>- <Accordion title="AWS Private CA">- Use the following custom policy to grant the minimum permissions required by Infisical to issue certificates via AWS Private CA.-- For a **single CA**, scope the `Resource` to that CA's ARN:-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowAwsPrivateCAAccess",- "Effect": "Allow",- "Action": [- "acm-pca:DescribeCertificateAuthority",- "acm-pca:GetCertificateAuthorityCertificate",- "acm-pca:IssueCertificate",- "acm-pca:GetCertificate",- "acm-pca:RevokeCertificate"- ],- "Resource": "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/your-ca-id"- }- ]- }- ```-- For **multiple CAs**, list each ARN in the `Resource` array:-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowAwsPrivateCAAccess",- "Effect": "Allow",- "Action": [- "acm-pca:DescribeCertificateAuthority",- "acm-pca:GetCertificateAuthorityCertificate",- "acm-pca:IssueCertificate",- "acm-pca:GetCertificate",- "acm-pca:RevokeCertificate"- ],- "Resource": [- "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/ca-id-1",- "arn:aws:acm-pca:us-west-2:123456789012:certificate-authority/ca-id-2"- ]- }- ]- }- ```- <Note>- - **DescribeCertificateAuthority**: Validates the CA status and configuration- - **GetCertificateAuthorityCertificate**: Retrieves the CA certificate and chain- - **IssueCertificate**: Issues certificates from the private CA- - **GetCertificate**: Retrieves issued certificates- - **RevokeCertificate**: Revokes previously issued certificates-- Using a specific CA ARN in `Resource` is recommended over `"*"` to follow the principle of least privilege.- </Note>- <Note>- If you further restrict `IssueCertificate` with an `acm-pca:TemplateArn` condition, include every template Infisical uses, or issuance fails with a permission error:-- - `arn:aws:acm-pca:::template/BlankEndEntityCertificate_APICSRPassthrough/V1` for end-entity certificates- - `arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen{0,1,2,3}_APICSRPassthrough/V1` for [CA certificates](/documentation/platform/pki/ca/aws-pca#issuing-ca-certificates)- </Note>- </Accordion>- <Accordion title="AWS ACM Public CA">- Use the following custom policy to grant the minimum permissions required by Infisical to issue publicly-trusted certificates via AWS Certificate Manager and perform DNS validation through Route 53.-- **ACM permissions** — `RequestCertificate` cannot be scoped below `"*"` because the certificate ARN does not exist until after the call succeeds:-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowAcmPublicCaAccess",- "Effect": "Allow",- "Action": [- "acm:RequestCertificate",- "acm:DescribeCertificate",- "acm:ExportCertificate",- "acm:RenewCertificate",- "acm:RevokeCertificate",- "acm:ListCertificates"- ],- "Resource": "*"- }- ]- }- ```-- **Route 53 permissions** — scope to the hosted zone(s) used for DNS validation:-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowRoute53ForAcmValidation",- "Effect": "Allow",- "Action": [- "route53:GetHostedZone",- "route53:ChangeResourceRecordSets"- ],- "Resource": "arn:aws:route53:::hostedzone/YOUR_HOSTED_ZONE_ID"- }- ]- }- ```-- ACM and Route 53 permissions can live on the same IAM principal, or be split across two separate connections in Infisical.-- <Note>- **ACM Permissions:**- - **RequestCertificate**: Requests a new public certificate from ACM- - **DescribeCertificate**: Retrieves certificate status and DNS validation records- - **ExportCertificate**: Exports the issued certificate and private key to Infisical- - **RenewCertificate**: Triggers renewal of an existing certificate- - **RevokeCertificate**: Revokes a previously issued certificate- - **ListCertificates**: Used during connection validation-- **Route 53 Permissions:**- - **GetHostedZone**: Validates the hosted zone during CA setup- - **ChangeResourceRecordSets**: Writes the ACM DNS validation CNAME records- </Note>- </Accordion>- </AccordionGroup>- </Tab>- <Tab title="PAM Session Recording">- <AccordionGroup>- <Accordion title="AWS S3 Bucket">- Use the following custom policy to grant the minimum permissions required by Infisical to store and play back PAM session recordings in your S3 bucket. Replace `your-pam-recordings-bucket` with the bucket name you configure in **Project Settings → Session Recording**.-- ```json- {- "Version": "2012-10-17",- "Statement": [- {- "Sid": "AllowPamRecordingBucketAccess",- "Effect": "Allow",- "Action": [- "s3:PutObject",- "s3:GetObject"- ],- "Resource": "arn:aws:s3:::your-pam-recordings-bucket/*"- },- {- "Sid": "AllowPamRecordingBucketTest",- "Effect": "Allow",- "Action": [- "s3:ListBucket"- ],- "Resource": "arn:aws:s3:::your-pam-recordings-bucket"- },- {- "Sid": "AllowPamRecordingConnectionTestCleanup",- "Effect": "Allow",- "Action": [- "s3:DeleteObject"- ],- "Resource": "arn:aws:s3:::your-pam-recordings-bucket/.test/*"- }- ]- }- ```-- If you scoped the recording config to a key prefix (for example `pam/prod`), update all three `Resource` ARNs to include the prefix:-- ```json- "Resource": "arn:aws:s3:::your-pam-recordings-bucket/pam/prod/*"- ```-- ```json- "Resource": "arn:aws:s3:::your-pam-recordings-bucket/pam/prod/.test/*"- ```-- <Note>- **S3 Permissions:**- - **PutObject**: Lets the gateway upload encrypted recording chunks via presigned PUT URLs. Also used by the connection test to write a probe object under `{prefix}/.test/{uuid}`.- - **GetObject**: Lets the browser fetch encrypted chunks during playback via presigned GET URLs. Decryption happens locally in the browser; Infisical only ever sees ciphertext.- - **ListBucket**: Required by `HeadBucket`, which Infisical calls during the connection test to confirm the bucket exists and the credentials can reach it.- - **DeleteObject** (scoped to `.test/*`): Used **only** to clean up the probe object after the connection test. Infisical never deletes recording chunks. Your bucket lifecycle policy owns retention. When using a key prefix, the test object is written under `{prefix}/.test/`, so the `DeleteObject` resource must include the prefix.- </Note>-- <Note>- Recording chunks are encrypted with a per-session AES-256-GCM key on the gateway before they leave your network, and the session key is wrapped with Infisical's KMS using session-bound AAD. Even if the bucket policy is wider than the principle of least privilege suggests, the ciphertext is not readable without an authenticated session-key unwrap.- </Note>-- #### Bucket CORS configuration-- During playback the browser fetches encrypted chunks directly from S3 using presigned GET URLs. For this to work the bucket needs a CORS policy that allows requests from your Infisical domain.-- Open the bucket in the AWS console, go to **Permissions → Cross-origin resource sharing (CORS)**, and add:-- ```json- [- {- "AllowedHeaders": ["*"],- "AllowedMethods": ["GET"],- "AllowedOrigins": ["https://app.infisical.com"],- "ExposeHeaders": [],- "MaxAgeSeconds": 3600- }- ]- ```-- Replace `https://app.infisical.com` with the origin where your Infisical dashboard is served (for example `https://eu.infisical.com` or `http://localhost:8080` during development). You can list multiple origins if needed.- </Accordion>- </AccordionGroup>- </Tab>- </Tabs>- </Step>- <Step title="Obtain Access Key ID and Secret Access Key">- Retrieve an AWS **Access Key ID** and a **Secret Key** for your IAM user in **IAM > Users > User > Security credentials > Access keys**.-- - - - </Step>- <Step title="Setup AWS Connection in Infisical">- <Tabs>- <Tab title="Infisical UI">- 1. Navigate to the **Integrations** tab in the desired project, then select **App Connections**.- -- 2. Select the **AWS Connection** option.- -- 3. Select the **Access Key** method option and provide the **Access Key ID** and **Secret Key** obtained from the previous step and press **Connect to AWS**.- -- 4. Your **AWS Connection** is now available for use.- - </Tab>- <Tab title="API">- To create an AWS Connection, make an API request to the [Create AWS- Connection](/api-reference/endpoints/app-connections/aws/create) API endpoint.-- ### Sample request-- ```bash Request- curl --request POST \- --url https://app.infisical.com/api/v1/app-connections/aws \- --header 'Content-Type: application/json' \- --data '{- "name": "my-aws-connection",- "method": "access-key",- "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",- "credentials": {- "accessKeyId": "...",- "secretKey": "..."- }- }'- ```-- ### Sample response-- ```bash Response- {- "appConnection": {- "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",- "name": "my-aws-connection",- "projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",- "version": 123,- "orgId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",- "createdAt": "2023-11-07T05:31:56Z",- "updatedAt": "2023-11-07T05:31:56Z",- "app": "aws",- "method": "access-key",- "credentials": {- "accessKeyId": "..."- }- }- }- ```- </Tab>- </Tabs>- </Step>+ <CreateIamUser /></Steps>-</Tab>-</Tabs>++## Step 2: Add permissions++Next, add the required policies to the IAM role or user from [Step 1](#step-1-create-an-iam-role-or-iam-user):++<Steps>+ <Step>+ In the IAM console, open the IAM role or user.+ </Step>+ <Step>+ On the **Permissions** tab, select **Add permissions** > **Create inline policy**.++ + </Step>+ <Step>+ Switch to the **JSON** editor, and replace the policy in the editor with this one. It combines the permissions of every integration you picked:++ <CombinedIamPolicy groups={awsUseCaseGroups} />++ <UseCase use="pam-recording,agent-vault-session-logs,private-ca,acm-public-ca,acme-route53" hideWhenEmpty>+ Then replace the placeholders for the integrations you picked:+ </UseCase>++ <UseCase use="pam-recording" hideWhenEmpty>+ - `<recording-bucket>`: the bucket you enter in the **Session Recording** card of a PAM account template (if you set a key prefix, such as `pam/prod`, add it after the bucket in both object ARNs)+ </UseCase>++ <UseCase use="agent-vault-session-logs" hideWhenEmpty>+ - `<session-logs-bucket>` and `<key-prefix>`: the bucket and key prefix you'll enter in the **Session Logs** dialog in Agent Vault (if you won't set a key prefix, delete `<key-prefix>/`)+ </UseCase>++ <UseCase use="private-ca" hideWhenEmpty>+ - `<region>`, `<account-id>`, and `<ca-id>`: the parts of your CA's ARN (to use several CAs, list each ARN in a `Resource` array)+ </UseCase>++ <UseCase use="acm-public-ca,acme-route53" hideWhenEmpty>+ - `<hosted-zone-id>`: the ID of the Route 53 hosted zone for your domain+ </UseCase>++ <UseCase use="private-ca" hideWhenEmpty>+ If you restrict `acm-pca:IssueCertificate` with an `acm-pca:TemplateArn` condition, include every template Infisical uses, or issuance fails with a permission error:++ - `arn:aws:acm-pca:::template/BlankEndEntityCertificate_APICSRPassthrough/V1` for end-entity certificates+ - `arn:aws:acm-pca:::template/SubordinateCACertificate_PathLen{0,1,2,3}_APICSRPassthrough/V1` for [CA certificates](/documentation/platform/pki/ca/aws-pca#issuing-ca-certificates)+ </UseCase>++ <UseCase use="acm-public-ca" hideWhenEmpty>+ If a different AWS account owns the hosted zone for an ACM public CA, move the `AllowRoute53ForAcmValidation` statement to a second connection in that account instead.+ </UseCase>++ <UseCase use="secrets-manager,parameter-store" hideWhenEmpty>+ If a sync encrypts with a customer managed KMS key, select its KMS checkbox above the policy. If that key doesn't use the default key policy, also add the IAM role or user under **Key users** on the key's page in the AWS KMS console.+ </UseCase>++ <UseCase use="secrets-manager,parameter-store,iam-rotation,honey-tokens,acm-sync,elb-sync,pki-secrets-manager,private-ca,acm-public-ca,acme-route53,pam-recording,agent-vault-session-logs" hideWhenEmpty>+ <Warning>+ If you use the **Access Key** method, AWS may reject the policy as too large, because IAM users allow less inline policy than roles do.++ In this case, create it as a customer managed policy instead: in the IAM console, go to **Policies** > **Create policy**, paste the same JSON, and save it. Then open the IAM user and attach it under **Add permissions** > **Attach policies directly**.+ </Warning>+ </UseCase>+ </Step>+ <Step>+ Select **Next**. Enter a **Policy name** that says which integrations the policy covers, such as `secrets-manager-sync`. Then, select **Create policy**. The policy belongs to the role or user, which already names Infisical, so the policy name only has to say what the policy grants.+ </Step>+</Steps>++<UseCase use="pam-recording" hideWhenEmpty>+ ### Add a CORS rule for PAM session recording++ Your browser downloads recordings directly from the bucket during playback, so the bucket needs a CORS rule.++ <Steps>+ <Step>+ In the Amazon S3 console, open the recording bucket, go to **Permissions**, and select **Edit** under **Cross-origin resource sharing (CORS)**.+ </Step>+ <Step>+ Paste this rule, then select **Save changes**:++ <CodeGroup>+ ```json Infisical Cloud (US)+ [+ {+ "AllowedHeaders": ["*"],+ "AllowedMethods": ["GET"],+ "AllowedOrigins": ["https://app.infisical.com"],+ "ExposeHeaders": [],+ "MaxAgeSeconds": 3600+ }+ ]+ ```++ ```json Infisical Cloud (EU)+ [+ {+ "AllowedHeaders": ["*"],+ "AllowedMethods": ["GET"],+ "AllowedOrigins": ["https://eu.infisical.com"],+ "ExposeHeaders": [],+ "MaxAgeSeconds": 3600+ }+ ]+ ```+ </CodeGroup>++ If you self-host Infisical or use a dedicated instance, replace `AllowedOrigins` with your instance's URL.+ </Step>+ </Steps>+</UseCase>++<UseCase use="agent-vault-session-logs" hideWhenEmpty>+ ### Add a CORS rule for Agent Vault session logs++ Your browser downloads session logs directly from the bucket, so the bucket needs a CORS rule. To see the same rule with your Infisical URL filled in, select **View AWS Setup** in the **Session Logs** dialog.++ <Steps>+ <Step>+ In the Amazon S3 console, open the session logs bucket, go to **Permissions**, and select **Edit** under **Cross-origin resource sharing (CORS)**.+ </Step>+ <Step>+ Paste this rule, then select **Save changes**:++ <CodeGroup>+ ```json Infisical Cloud (US)+ [+ {+ "AllowedHeaders": ["*"],+ "AllowedMethods": ["GET"],+ "AllowedOrigins": ["https://app.infisical.com"],+ "MaxAgeSeconds": 3000+ }+ ]+ ```++ ```json Infisical Cloud (EU)+ [+ {+ "AllowedHeaders": ["*"],+ "AllowedMethods": ["GET"],+ "AllowedOrigins": ["https://eu.infisical.com"],+ "MaxAgeSeconds": 3000+ }+ ]+ ```+ </CodeGroup>++ If you self-host Infisical or use a dedicated instance, replace `AllowedOrigins` with your instance's URL.+ </Step>+ </Steps>+</UseCase>++## Step 3: Create the app connection++Next, create the app connection in Infisical.++<Tip>+ To create the connection using the API, use the [Create AWS Connection](/api-reference/endpoints/app-connections/aws/create) endpoint.+</Tip>++<View title="Organization-level">+ <Steps>+ <Step>+ In the sidebar, select **Integrations**, then open the **App Connections** tab.++ + </Step>+ <Step>+ Select **Add Connection** and choose **AWS**.++ + </Step>+ <Step>+ Fill out the form's fields:++ <ConnectionFormFields />++ Then, select **Connect to AWS**.++ + </Step>+ </Steps>+</View>++<View title="Project-level">+ <Steps>+ <Step>+ Open the project's app connections:++ - **Secrets Manager project:** select **Integrations** in the sidebar, then open the **App Connections** tab+ - **Certificate Manager project:** select **Settings** in the sidebar, then open the **App Connections** tab+ </Step>+ <Step>+ Select **Add Connection** and choose **AWS**.+ </Step>+ <Step>+ Fill out the form's fields:++ <ConnectionFormFields />++ Then, select **Connect to AWS**.+ </Step>+ </Steps>+</View>++When you select **Connect to AWS**, Infisical checks the credentials. For **Assume Role**, it assumes the role, so the role's trust policy has to name the right AWS account and External ID. For **Access Key**, it signs in with the access key. Infisical doesn't check the permissions from [Step 2](#step-2-add-permissions) until an integration uses them.++<Check>+ Your AWS app connection is ready to use.+</Check>++## Step 4: Configure integrations++Now that your AWS app connection is configured, you can use it to set up the following integrations:++<CardGroup cols={2}>+ <UseCase use="secrets-manager">+ <Card title="AWS Secrets Manager sync" icon="refresh-cw" href="/integrations/secret-syncs/aws-secrets-manager">+ Sync secrets from Infisical to AWS Secrets Manager.+ </Card>+ </UseCase>+ <UseCase use="parameter-store">+ <Card title="AWS Parameter Store sync" icon="refresh-cw" href="/integrations/secret-syncs/aws-parameter-store">+ Sync secrets from Infisical to AWS Parameter Store.+ </Card>+ </UseCase>+ <UseCase use="iam-rotation">+ <Card title="AWS IAM user secret rotation" icon="rotate-cw" href="/documentation/platform/secret-rotation/aws-iam-user-secret">+ Rotate an IAM user's access keys on a schedule.+ </Card>+ </UseCase>+ <UseCase use="acm-sync">+ <Card title="AWS Certificate Manager sync" icon="file-badge" href="/documentation/platform/pki/applications/certificate-syncs/aws-certificate-manager">+ Sync certificates from Infisical to AWS Certificate Manager.+ </Card>+ </UseCase>+ <UseCase use="elb-sync">+ <Card title="AWS Elastic Load Balancer sync" icon="file-badge" href="/documentation/platform/pki/applications/certificate-syncs/aws-elastic-load-balancer">+ Attach certificates from Infisical to load balancer listeners.+ </Card>+ </UseCase>+ <UseCase use="pki-secrets-manager">+ <Card title="AWS Secrets Manager certificate sync" icon="file-badge" href="/documentation/platform/pki/applications/certificate-syncs/aws-secrets-manager">+ Store certificates from Infisical as secrets in AWS Secrets Manager.+ </Card>+ </UseCase>+ <UseCase use="private-ca">+ <Card title="AWS Private CA" icon="landmark" href="/documentation/platform/pki/ca/aws-pca">+ Issue certificates from your AWS Private CA.+ </Card>+ </UseCase>+ <UseCase use="acm-public-ca">+ <Card title="AWS Certificate Manager public CA" icon="landmark" href="/documentation/platform/pki/ca/aws-acm-public-ca">+ Issue publicly trusted certificates through AWS Certificate Manager.+ </Card>+ </UseCase>+ <UseCase use="acme-route53">+ <Card title="ACME CA with Route 53" icon="landmark" href="/documentation/platform/pki/ca/acme-ca">+ Prove domain ownership for an ACME CA through Route 53.+ </Card>+ </UseCase>+ <UseCase use="honey-tokens">+ <Card title="AWS honey tokens" icon="bell-ring" href="/documentation/platform/honey-tokens/aws/setup">+ Detect leaked AWS credentials with decoy access keys.+ </Card>+ </UseCase>+ <UseCase use="pam-recording">+ <Card title="PAM session recording" icon="video" href="/documentation/platform/pam/sessions/external-storage">+ Store PAM session recordings in your S3 bucket.+ </Card>+ </UseCase>+ <UseCase use="agent-vault-session-logs">+ <Card title="Agent Vault session logs" icon="list" href="/documentation/platform/agent-vault/session-logs">+ Record every request an AI agent makes in your S3 bucket.+ </Card>+ </UseCase>+</CardGroup>diff --git a/docs/snippets/AwsIamPolicy.jsx b/docs/snippets/AwsIamPolicy.jsxnew file mode 100644index 0000000000..5f619e8c95--- /dev/null+++ b/docs/snippets/AwsIamPolicy.jsx@@ -0,0 +1,105 @@+import React, { useEffect, useState } from "react";++// <CombinedIamPolicy> merges the IAM policies of every option picked in the <UseCasePicker> into+// one document, so the reader pastes a single policy. The policies come from the `policy` field of+// the picker's options (see snippets/app-connections/aws/use-cases.jsx). It renders through+// Mintlify's <CodeBlock>, which keeps the highlighting and copy button of a normal code block.+//+// Mintlify evaluates each exported component in isolation, so module-scope helpers are out of+// scope at render time.++export const CombinedIamPolicy = ({ groups = [], param = "use" }) => {+ const SELECTION_EVENT = "use-case-picker-change";++ const options = groups.flatMap((group) => group.options);+ const [selected, setSelected] = useState([]);+ const [optionalIds, setOptionalIds] = useState([]);++ useEffect(() => {+ const sync = () => {+ const raw = new URLSearchParams(window.location.search).get(param);+ setSelected(+ raw+ ? raw+ .split(",")+ .map((id) => id.trim())+ .filter(Boolean)+ : []+ );+ };+ sync();+ window.addEventListener(SELECTION_EVENT, sync);+ window.addEventListener("popstate", sync);+ return () => {+ window.removeEventListener(SELECTION_EVENT, sync);+ window.removeEventListener("popstate", sync);+ };+ }, [param]);++ const picked = options.filter((option) => selected.includes(option.id));++ if (picked.length === 0) {+ return (+ <p className="ifx-iamp__empty">+ Pick the integrations you'll use in the <a href="#use-case-picker">selector at the top of the page</a>,+ and a single policy that covers all of them appears here.+ </p>+ );+ }++ const withPolicy = picked.filter((option) => option.policy);+ const withOptional = withPolicy.filter((option) => option.policy.optional);++ if (withPolicy.length === 0) {+ return (+ <p className="ifx-iamp__empty">+ The integrations you picked get their permissions somewhere else. The notes after these steps+ say where.+ </p>+ );+ }++ // IAM rejects a policy whose statements share a Sid, so a repeat gets the option's id appended.+ const usedSids = new Set();+ const statements = withPolicy.flatMap((option) => {+ const extra = optionalIds.includes(option.id) && option.policy.optional ? option.policy.optional.statements : [];+ return [...option.policy.statements, ...extra].map((statement) => {+ if (!statement.Sid) return statement;+ let sid = statement.Sid;+ if (usedSids.has(sid)) sid = `${sid}${option.id.replace(/[^A-Za-z0-9]/g, "")}`;+ usedSids.add(sid);+ return sid === statement.Sid ? statement : { ...statement, Sid: sid };+ });+ });++ const toggleOptional = (id) =>+ setOptionalIds(optionalIds.includes(id) ? optionalIds.filter((value) => value !== id) : [...optionalIds, id]);++ return (+ <div className="ifx-iamp">+ {withOptional.length > 0 && (+ <div className="ifx-iamp__options">+ {withOptional.map((option) => (+ <label key={option.id} className="ifx-iamp__option">+ <input+ type="checkbox"+ className="ifx-ucp__checkbox"+ checked={optionalIds.includes(option.id)}+ onChange={() => toggleOptional(option.id)}+ />+ <span>+ {option.label} {option.policy.optional.label}+ </span>+ </label>+ ))}+ </div>+ )}+ {/* Mintlify's runtime reads `expandable` as the string it gets from MDX code fence meta+ (`expandable.toLowerCase() === "true"`), so a boolean here throws and blanks the component. */}+ {/* eslint-disable-next-line no-undef */}+ <CodeBlock language="json" expandable="true">+ {JSON.stringify({ Version: "2012-10-17", Statement: statements }, null, 2)}+ </CodeBlock>+ </div>+ );+};diff --git a/docs/snippets/UseCasePicker.jsx b/docs/snippets/UseCasePicker.jsxnew file mode 100644index 0000000000..75666e598a--- /dev/null+++ b/docs/snippets/UseCasePicker.jsx@@ -0,0 +1,239 @@+import React, { useEffect, useMemo, useRef, useState } from "react";++// A multi-select "{prefix} ___ with {product}" picker, plus a <UseCase> wrapper that shows its+// children only for the picked use cases. Pass `prefix` for wording that has to name the product+// before the dropdown, such as "I want my AWS connection to work for", and leave `product` out. The page passes the options in, so any guide whose+// steps vary by integration can reuse it. See snippets/app-connections/aws/use-cases.jsx for the+// data shape and integrations/app-connections/aws.mdx for a page that uses it.+//+// Mintlify evaluates each exported component in isolation, so module-scope constants are out of+// scope at render time. Both components below declare their own copies of the shared values.++export const UseCasePicker = ({+ product,+ prefix = "I want to set up",+ groups = [],+ param = "use",+ noun = "an integration",+ id = "use-case-picker"+}) => {+ const SELECTION_EVENT = "use-case-picker-change";++ const options = groups.flatMap((group) => group.options);+ const knownIds = new Set(options.map((option) => option.id));++ const [selected, setSelected] = useState([]);+ const [isOpen, setIsOpen] = useState(false);+ const rootRef = useRef(null);+ const buttonRef = useRef(null);++ useEffect(() => {+ const sync = () => {+ const params = new URLSearchParams(window.location.search);+ const raw = params.get(param);+ const requested = raw+ ? raw+ .split(",")+ .map((id) => id.trim())+ .filter(Boolean)+ : [];+ const known = requested.filter((id) => knownIds.has(id));+ setSelected(known);++ // A stale link can carry ids that no longer exist. <UseCase> blocks don't know the option+ // list, so they would treat those ids as a selection and hide everything. Rewrite the URL to+ // the known ids and announce it, so every block sees the same selection the picker does.+ if (known.length !== requested.length) {+ if (known.length === 0) params.delete(param);+ else params.set(param, known.join(","));+ const query = params.toString().replace(/%2C/g, ",");+ window.history.replaceState(+ {},+ "",+ `${window.location.pathname}${query ? `?${query}` : ""}${window.location.hash}`+ );+ window.dispatchEvent(new Event(SELECTION_EVENT));+ }+ };+ sync();+ window.addEventListener(SELECTION_EVENT, sync);+ window.addEventListener("popstate", sync);+ return () => {+ window.removeEventListener(SELECTION_EVENT, sync);+ window.removeEventListener("popstate", sync);+ };+ }, [param]);++ // Mintlify builds "On this page" at build time, so it still lists headings that a <UseCase> has+ // hidden. Hide each entry whose heading isn't on the page. If Mintlify changes the markup, the+ // entries simply stay visible.+ useEffect(() => {+ const frame = window.requestAnimationFrame(() => {+ document.querySelectorAll('#table-of-contents-content a[href^="#"]').forEach((link) => {+ const id = decodeURIComponent(link.getAttribute("href").slice(1));+ const item = link.closest("li") || link;+ item.style.display = document.getElementById(id) ? "" : "none";+ });+ });+ return () => window.cancelAnimationFrame(frame);+ }, [selected]);++ useEffect(() => {+ if (!isOpen) return undefined;+ const onDown = (event) => {+ if (rootRef.current && !rootRef.current.contains(event.target)) setIsOpen(false);+ };+ const onKey = (event) => {+ if (event.key === "Escape") {+ setIsOpen(false);+ if (buttonRef.current) buttonRef.current.focus();+ }+ };+ document.addEventListener("mousedown", onDown);+ document.addEventListener("keydown", onKey);+ return () => {+ document.removeEventListener("mousedown", onDown);+ document.removeEventListener("keydown", onKey);+ };+ }, [isOpen]);++ const write = (ids) => {+ const params = new URLSearchParams(window.location.search);+ if (ids.length === 0) params.delete(param);+ else params.set(param, ids.join(","));+ // Keep the commas readable in a shared link; URLSearchParams would encode them as %2C.+ const query = params.toString().replace(/%2C/g, ",");+ const next = `${window.location.pathname}${query ? `?${query}` : ""}${window.location.hash}`;+ window.history.replaceState({}, "", next);+ window.dispatchEvent(new Event(SELECTION_EVENT));+ };++ const toggle = (id) => {+ const next = selected.includes(id) ? selected.filter((value) => value !== id) : [...selected, id];+ write(options.map((option) => option.id).filter((value) => next.includes(value)));+ };++ const chipLabel = (() => {+ if (selected.length === 0) return noun;+ const first = options.find((option) => option.id === selected[0]);+ if (selected.length === 1) return first.label;+ return `${first.label} + ${selected.length - 1} more`;+ })();++ return (+ <div ref={rootRef} id={id} className="ifx-avqs">+ <p className="ifx-avqs__sentence">+ {prefix}{" "}+ <span className="ifx-avqs__slot">+ <button+ ref={buttonRef}+ type="button"+ aria-haspopup="dialog"+ aria-expanded={isOpen}+ className={selected.length ? "ifx-avqs__chip ifx-avqs__chip--filled" : "ifx-avqs__chip"}+ onClick={() => setIsOpen(!isOpen)}+ >+ <span>{chipLabel}</span>+ <svg+ className="ifx-avqs__chevron"+ width="10"+ height="10"+ viewBox="0 0 12 12"+ fill="none"+ aria-hidden="true"+ >+ <path+ d="M3 4.5L6 7.5L9 4.5"+ stroke="currentColor"+ strokeWidth="1.75"+ strokeLinecap="round"+ strokeLinejoin="round"+ />+ </svg>+ </button>+ {isOpen && (+ <div className="ifx-avqs__menu ifx-ucp__menu" role="dialog" aria-label="Choose integrations">+ {groups.map((group) => (+ <fieldset key={group.label} className="ifx-ucp__group">+ <legend className="ifx-ucp__legend">{group.label}</legend>+ {group.options.map((option) => (+ <label key={option.id} className="ifx-ucp__option">+ <input+ type="checkbox"+ className="ifx-ucp__checkbox"+ checked={selected.includes(option.id)}+ onChange={() => toggle(option.id)}+ />+ <span>{option.label}</span>+ </label>+ ))}+ </fieldset>+ ))}+ {selected.length > 0 && (+ <button type="button" className="ifx-avqs__clear" onClick={() => write([])}>+ Clear selection+ </button>+ )}+ </div>+ )}+ </span>+ {product ? ` with ${product}` : ""}+ </p>+ <p className="ifx-avqs__hint">+ {selected.length ? (+ <>+ The steps below match your choice.{" "}+ <button type="button" className="ifx-avqs__reset" onClick={() => write([])}>+ Reset+ </button>+ </>+ ) : (+ "Pick one or more to view the steps they need."+ )}+ </p>+ </div>+ );+};++// Renders its children when any of the comma-separated ids in `use` is picked. When nothing is+// picked it renders them too, so the page reads as the full guide by default, unless+// `hideWhenEmpty` is set: use that for content that only makes sense next to a filtered result.+// `param` must match the picker's.+export const UseCase = ({ use, param = "use", hideWhenEmpty = false, children }) => {+ const SELECTION_EVENT = "use-case-picker-change";++ const [selected, setSelected] = useState([]);++ useEffect(() => {+ const sync = () => {+ const raw = new URLSearchParams(window.location.search).get(param);+ setSelected(+ raw+ ? raw+ .split(",")+ .map((id) => id.trim())+ .filter(Boolean)+ : []+ );+ };+ sync();+ window.addEventListener(SELECTION_EVENT, sync);+ window.addEventListener("popstate", sync);+ return () => {+ window.removeEventListener(SELECTION_EVENT, sync);+ window.removeEventListener("popstate", sync);+ };+ }, [param]);++ const isVisible = useMemo(() => {+ if (selected.length === 0) return !hideWhenEmpty;+ const wanted = String(use || "")+ .split(",")+ .map((id) => id.trim())+ .filter(Boolean);+ return wanted.some((id) => selected.includes(id));+ }, [selected, use, hideWhenEmpty]);++ if (!isVisible) return null;+ return <>{children}</>;+};diff --git a/docs/snippets/app-connections/aws/create-iam-role.mdx b/docs/snippets/app-connections/aws/create-iam-role.mdxnew file mode 100644index 0000000000..073da7b2ad--- /dev/null+++ b/docs/snippets/app-connections/aws/create-iam-role.mdx@@ -0,0 +1,48 @@+{/*+Bare <Step> elements, so a page can place them inside its own <Steps> and keep the numbering.+Props:+- externalId: "required" adds the External ID instructions. "skip" leaves them out, for a page+ whose connection sends an External ID the reader can't look up.+*/}++<Step>+ In the IAM console, go to [Create role](https://console.aws.amazon.com/iam/home#/roles/create?step=selectEntities). Under **Trusted entity type**, select **AWS account**.++ +</Step>+<Step>+ Select **Another AWS account**, and enter the AWS account ID that Infisical assumes the role from:++ - Infisical Cloud (US): `381492033652`+ - Infisical Cloud (EU): `345594589636`+ - Dedicated instance: contact Infisical support for your account ID+ - Self-hosted: the account ID of your instance's credentials (see [If you self-host Infisical](#if-you-self-host-infisical))++ {externalId === "required" && (+ <MDX>+ <View title="Organization-level">+ Enable **Require external ID** and enter your Organization ID. It's shown under **Organization ID** in your organization's **Settings**.+ </View>++ <View title="Project-level">+ Enable **Require external ID** and enter the ID for the type of project you'll create the connection in:++ - **Secrets Manager:** the project's ID, shown under **Project ID** in the project's settings+ - **Certificate Manager:** your Organization ID, shown under **Organization ID** in your organization's **Settings**+ - **Agent Vault:** your Organization ID++ <Note>+ If you created a project-level connection before May 26, 2026 on Infisical Cloud (or before v0.160.7 if you self-host Infisical), Infisical sends your Organization ID for it. To use the Project ID instead, recreate the connection and update the role's trust policy.+ </Note>+ </View>++ Infisical sends this ID every time it assumes the role, so the role only works for connections in the organization or project you named. This protects your account from the [confused deputy problem](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html).+ </MDX>+ )}+</Step>+<Step>+ Select **Next** to go to the **Add permissions** page. Then, select **Next** again without choosing a policy. You'll add the permissions as an inline policy after the role exists.+</Step>+<Step>+ Enter a **Role name** that includes Infisical and what the connection is for, such as `infisical-payments-prod`, then select **Create role**. CloudTrail logs every action Infisical takes under this role's name, so a descriptive name shows anyone reading the logs where those actions came from.+</Step>diff --git a/docs/snippets/app-connections/aws/create-iam-user.mdx b/docs/snippets/app-connections/aws/create-iam-user.mdxnew file mode 100644index 0000000000..b3bf0723f5--- /dev/null+++ b/docs/snippets/app-connections/aws/create-iam-user.mdx@@ -0,0 +1,12 @@+{/* Bare <Step> elements, so a page can place them inside its own <Steps> and keep the numbering. */}++<Step>+ In the IAM console, [create an IAM user](https://console.aws.amazon.com/iam/home#/users/create) for Infisical. Give it a **User name** that includes Infisical and what the connection is for, such as `infisical-payments-prod`, so CloudTrail logs show where its actions came from. On the **Set permissions** page, select **Next** without choosing a policy. You'll add the permissions as an inline policy after the user exists.+</Step>+<Step>+ Open the user's **Security credentials** tab, create an access key, and copy the **Access key ID** and **Secret access key**. AWS shows the secret access key only once.++ + + +</Step>diff --git a/docs/snippets/app-connections/aws/form-fields.mdx b/docs/snippets/app-connections/aws/form-fields.mdxnew file mode 100644index 0000000000..a9883796d1--- /dev/null+++ b/docs/snippets/app-connections/aws/form-fields.mdx@@ -0,0 +1,18 @@+{/* The tab titles match the method tabs in Step 1 of the AWS connection page. Keep them identical. */}++<Tabs>+ <Tab title="Assume Role (Recommended)">+ - **Name**: A descriptive name for the connection+ - **Description** (optional): A note for future reference+ - **Method**: **Assume Role (Recommended)**+ - **Role ARN**: The role's ARN, shown in the **Summary** section of the role in the IAM console+ - **STS Endpoint URL** (optional): A regional AWS STS endpoint to use instead of AWS's default, such as `https://sts.us-east-1.amazonaws.com` (leave it empty unless your network can't reach the default)+ </Tab>+ <Tab title="Access Key">+ - **Name**: A descriptive name for the connection+ - **Description** (optional): A note for future reference+ - **Method**: **Access Key**+ - **Access Key ID**: The access key ID you copied from the IAM user+ - **Secret Access Key**: The secret access key you copied from the IAM user+ </Tab>+</Tabs>diff --git a/docs/snippets/app-connections/aws/self-hosted-instance.mdx b/docs/snippets/app-connections/aws/self-hosted-instance.mdxnew file mode 100644index 0000000000..508e32b98b--- /dev/null+++ b/docs/snippets/app-connections/aws/self-hosted-instance.mdx@@ -0,0 +1,42 @@+<Accordion title="If you self-host Infisical" id="if-you-self-host-infisical">+ To assume a role, your Infisical instance needs AWS credentials of its own.++ If your instance runs on AWS (for example on EC2, ECS, or EKS), leave `INF_APP_CONNECTION_AWS_ACCESS_KEY_ID` and `INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY` unset. Infisical then uses the credentials of the instance profile, task role, or IAM role for service accounts (IRSA), and that role needs the `sts:AssumeRole` policy below.++ If your instance doesn't run on AWS, give it an IAM user:++ <Steps>+ <Step>+ In the IAM console, [create an IAM user](https://console.aws.amazon.com/iam/home#/users/create) for your Infisical instance.+ </Step>+ <Step>+ Attach this inline policy to the user, so it can assume the roles your connections use:++ ```json+ {+ "Version": "2012-10-17",+ "Statement": [+ {+ "Sid": "AllowAssumeAnyRole",+ "Effect": "Allow",+ "Action": "sts:AssumeRole",+ "Resource": "arn:aws:iam::*:role/*"+ }+ ]+ }+ ```+ </Step>+ <Step>+ Open the user's **Security credentials** tab and create an access key.++ + + + </Step>+ <Step>+ Set the access key ID as `INF_APP_CONNECTION_AWS_ACCESS_KEY_ID` and the secret access key as `INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY` in your instance's environment, then restart the instance.+ </Step>+ </Steps>++ When you create the role's trust policy, enter the AWS account ID of this IAM user or instance role, not an Infisical Cloud account ID.+</Accordion>diff --git a/docs/snippets/app-connections/aws/use-cases.jsx b/docs/snippets/app-connections/aws/use-cases.jsxnew file mode 100644index 0000000000..8c47ab2f2e--- /dev/null+++ b/docs/snippets/app-connections/aws/use-cases.jsx@@ -0,0 +1,336 @@+// Options for the <UseCasePicker> on integrations/app-connections/aws.mdx, and the IAM policy each+// option needs. Each `id` must match a <UseCase use="..."> block on that page.+//+// `policy.statements` is what <CombinedIamPolicy> merges. Every `Sid` has to be unique across all+// options, because the combined policy puts them in one document and IAM rejects duplicates.+// `policy.optional` holds statements only some setups need, such as a customer managed KMS key;+// its `label` completes a sentence that starts with the option's label. An option without `policy`+// gets its permissions somewhere else, and the page's notes after the policy say where.+export const awsUseCaseGroups = [+ {+ label: "Secret syncs",+ options: [+ {+ id: "secrets-manager",+ label: "AWS Secrets Manager sync",+ policy: {+ statements: [+ {+ Sid: "AllowSecretsManagerAccess",+ Effect: "Allow",+ Action: [+ "secretsmanager:ListSecrets",+ "secretsmanager:GetSecretValue",+ "secretsmanager:BatchGetSecretValue",+ "secretsmanager:CreateSecret",+ "secretsmanager:UpdateSecret",+ "secretsmanager:DeleteSecret",+ "secretsmanager:DescribeSecret",+ "secretsmanager:TagResource",+ "secretsmanager:UntagResource"+ ],+ Resource: "*"+ }+ ],+ optional: {+ label: "uses a customer managed KMS key",+ statements: [+ {+ Sid: "AllowKmsKeyForSecretsManager",+ Effect: "Allow",+ Action: ["kms:ListAliases", "kms:DescribeKey", "kms:Encrypt", "kms:Decrypt", "kms:GenerateDataKey"],+ Resource: "*"+ }+ ]+ }+ }+ },+ {+ id: "parameter-store",+ label: "AWS Parameter Store sync",+ policy: {+ statements: [+ {+ Sid: "AllowSSMAccess",+ Effect: "Allow",+ Action: [+ "ssm:PutParameter",+ "ssm:GetParameters",+ "ssm:GetParametersByPath",+ "ssm:DescribeParameters",+ "ssm:DeleteParameters",+ "ssm:ListTagsForResource",+ "ssm:AddTagsToResource",+ "ssm:RemoveTagsFromResource"+ ],+ Resource: "*"+ }+ ],+ optional: {+ label: "uses a customer managed KMS key",+ statements: [+ {+ Sid: "AllowKmsKeyForParameterStore",+ Effect: "Allow",+ Action: ["kms:ListAliases", "kms:DescribeKey", "kms:Encrypt", "kms:Decrypt"],+ Resource: "*"+ }+ ]+ }+ }+ }+ ]+ },+ {+ label: "Secret rotation and detection",+ options: [+ {+ id: "iam-rotation",+ label: "AWS IAM user secret rotation",+ policy: {+ statements: [+ {+ Sid: "AllowIamUserAccessKeyRotation",+ Effect: "Allow",+ Action: [+ "iam:ListAccessKeys",+ "iam:CreateAccessKey",+ "iam:UpdateAccessKey",+ "iam:DeleteAccessKey",+ "iam:ListUsers"+ ],+ Resource: "*"+ }+ ]+ }+ },+ {+ id: "honey-tokens",+ label: "AWS honey tokens",+ policy: {+ statements: [+ {+ Sid: "HoneyTokenIAMManagement",+ Effect: "Allow",+ Action: ["iam:CreateUser", "iam:DeleteUser", "iam:CreateAccessKey", "iam:DeleteAccessKey"],+ Resource: "arn:aws:iam::*:user/inf_ht_*"+ },+ {+ Sid: "HoneyTokenStackVerification",+ Effect: "Allow",+ Action: ["cloudformation:DescribeStacks"],+ Resource: "*"+ }+ ]+ }+ }+ ]+ },+ {+ label: "Certificates",+ options: [+ {+ id: "acm-sync",+ label: "AWS Certificate Manager sync",+ policy: {+ statements: [+ {+ Sid: "AllowCertificateManagerAccess",+ Effect: "Allow",+ Action: [+ "acm:ListCertificates",+ "acm:DescribeCertificate",+ "acm:GetCertificate",+ "acm:ImportCertificate",+ "acm:ExportCertificate",+ "acm:DeleteCertificate",+ "acm:AddTagsToCertificate",+ "acm:RemoveTagsFromCertificate",+ "acm:ListTagsForCertificate"+ ],+ Resource: "*"+ }+ ]+ }+ },+ {+ id: "elb-sync",+ label: "AWS Elastic Load Balancer sync",+ policy: {+ statements: [+ {+ Sid: "AllowElbCertificateManagerAccess",+ Effect: "Allow",+ Action: [+ "acm:ListCertificates",+ "acm:DescribeCertificate",+ "acm:GetCertificate",+ "acm:ImportCertificate",+ "acm:DeleteCertificate",+ "acm:AddTagsToCertificate",+ "acm:ListTagsForCertificate"+ ],+ Resource: "*"+ },+ {+ Sid: "AllowElasticLoadBalancerAccess",+ Effect: "Allow",+ Action: [+ "elasticloadbalancing:DescribeLoadBalancers",+ "elasticloadbalancing:DescribeListeners",+ "elasticloadbalancing:DescribeListenerCertificates",+ "elasticloadbalancing:AddListenerCertificates",+ "elasticloadbalancing:RemoveListenerCertificates",+ "elasticloadbalancing:ModifyListener"+ ],+ Resource: "*"+ }+ ]+ }+ },+ {+ id: "pki-secrets-manager",+ label: "AWS Secrets Manager certificate sync",+ policy: {+ statements: [+ {+ Sid: "AllowSecretsManagerCertificateSync",+ Effect: "Allow",+ Action: [+ "secretsmanager:ListSecrets",+ "secretsmanager:CreateSecret",+ "secretsmanager:UpdateSecret",+ "secretsmanager:DeleteSecret"+ ],+ Resource: "*"+ }+ ]+ }+ },+ {+ id: "private-ca",+ label: "AWS Private CA",+ policy: {+ statements: [+ {+ Sid: "AllowAwsPrivateCAAccess",+ Effect: "Allow",+ Action: [+ "acm-pca:DescribeCertificateAuthority",+ "acm-pca:GetCertificateAuthorityCertificate",+ "acm-pca:IssueCertificate",+ "acm-pca:GetCertificate",+ "acm-pca:RevokeCertificate"+ ],+ Resource: "arn:aws:acm-pca:<region>:<account-id>:certificate-authority/<ca-id>"+ }+ ]+ }+ },+ {+ id: "acm-public-ca",+ label: "AWS Certificate Manager public CA",+ policy: {+ statements: [+ {+ Sid: "AllowAcmPublicCaAccess",+ Effect: "Allow",+ Action: [+ "acm:RequestCertificate",+ "acm:DescribeCertificate",+ "acm:ExportCertificate",+ "acm:RenewCertificate",+ "acm:RevokeCertificate",+ "acm:ListCertificates"+ ],+ Resource: "*"+ },+ {+ Sid: "AllowRoute53ForAcmValidation",+ Effect: "Allow",+ Action: ["route53:GetHostedZone", "route53:ChangeResourceRecordSets"],+ Resource: "arn:aws:route53:::hostedzone/<hosted-zone-id>"+ }+ ]+ }+ },+ {+ id: "acme-route53",+ label: "ACME CA with Route 53",+ policy: {+ statements: [+ {+ Sid: "AllowRoute53HostedZoneForAcme",+ Effect: "Allow",+ Action: ["route53:GetHostedZone"],+ Resource: "arn:aws:route53:::hostedzone/<hosted-zone-id>"+ },+ {+ Sid: "AllowRoute53TxtRecordsForAcme",+ Effect: "Allow",+ Action: ["route53:ChangeResourceRecordSets"],+ Resource: "arn:aws:route53:::hostedzone/<hosted-zone-id>",+ Condition: {+ "ForAllValues:StringEquals": {+ "route53:ChangeResourceRecordSetsRecordTypes": ["TXT"]+ }+ }+ }+ ]+ }+ }+ ]+ },+ {+ label: "Session recording",+ options: [+ {+ id: "pam-recording",+ label: "PAM session recording",+ policy: {+ statements: [+ {+ Sid: "AllowPamRecordingBucketAccess",+ Effect: "Allow",+ Action: ["s3:PutObject", "s3:GetObject"],+ Resource: "arn:aws:s3:::<recording-bucket>/*"+ },+ {+ Sid: "AllowPamRecordingBucketTest",+ Effect: "Allow",+ Action: ["s3:ListBucket"],+ Resource: "arn:aws:s3:::<recording-bucket>"+ },+ {+ Sid: "AllowPamRecordingConnectionTestCleanup",+ Effect: "Allow",+ Action: ["s3:DeleteObject"],+ Resource: "arn:aws:s3:::<recording-bucket>/.test/*"+ }+ ]+ }+ },+ {+ id: "agent-vault-session-logs",+ label: "Agent Vault session logs",+ // Matches what the Session Logs dialog's View AWS Setup generates (AwsSetupDialog.tsx).+ policy: {+ statements: [+ {+ Sid: "AllowAgentVaultSessionLogObjects",+ Effect: "Allow",+ Action: ["s3:PutObject", "s3:GetObject"],+ Resource: "arn:aws:s3:::<session-logs-bucket>/<key-prefix>/*"+ },+ {+ Sid: "AllowAgentVaultSessionLogBucket",+ Effect: "Allow",+ Action: ["s3:ListBucket"],+ Resource: "arn:aws:s3:::<session-logs-bucket>"+ }+ ]+ }+ }+ ]+ }+];diff --git a/docs/style.css b/docs/style.cssindex 07181030f8..3ba1be2748 100644--- a/docs/style.css+++ b/docs/style.css@@ -1274,6 +1274,8 @@ a.ifx-card__title:hover .ifx-card__chevron {padding: 1rem 1.25rem;border: 1px solid var(--ifx-card-line);background-color: var(--ifx-card-bg);+ /* Matches Mintlify's heading scroll margin, so a link to the picker clears the sticky navbar. */+ scroll-margin-top: 136px;}.ifx-avqs__sentence {@@ -1558,6 +1560,89 @@ a.ifx-card__title:hover .ifx-card__chevron {text-decoration-thickness: 2px;}+/* ==========================================================================+ Use case picker (snippets/UseCasePicker.jsx)+ Reuses the .ifx-avqs chip and menu; these classes add the multi-select list.+ ========================================================================== */++.ifx-ucp__menu {+ width: 20rem;+ max-width: min(20rem, calc(100vw - 2rem));+ max-height: 24rem;+ overflow-y: auto;+}++.ifx-ucp__group {+ margin: 0;+ padding: 0.25rem 0 0.5rem;+ border: 0;+}++.ifx-ucp__group + .ifx-ucp__group {+ border-top: 1px solid var(--ifx-control-line);+ padding-top: 0.5rem;+}++.ifx-ucp__legend {+ padding: 0 0.5rem 0.25rem;+ color: var(--ifx-muted);+ font-size: 0.75rem;+ font-weight: 600;+}++.ifx-ucp__option {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ padding: 0.4rem 0.5rem;+ color: var(--ifx-control-text);+ font-size: 0.8125rem;+ font-weight: 500;+ cursor: pointer;+}++.ifx-ucp__option:hover {+ background-color: var(--ifx-hover-fill);+ color: var(--ifx-control-text-hover);+}++.ifx-ucp__checkbox {+ flex-shrink: 0;+ width: 0.9rem;+ height: 0.9rem;+ margin: 0;+ accent-color: var(--ifx-accent-ink);+ cursor: pointer;+}++/* ==========================================================================+ Combined IAM policy (snippets/AwsIamPolicy.jsx)+ ========================================================================== */++.ifx-iamp__options {+ display: flex;+ flex-direction: column;+ gap: 0.35rem;+ margin: 0.75rem 0;+}++.ifx-iamp__option {+ display: flex;+ align-items: center;+ gap: 0.5rem;+ color: var(--ifx-text-soft);+ font-size: 0.875rem;+ cursor: pointer;+}++.ifx-iamp__empty {+ margin: 0.75rem 0;+ padding: 0.75rem 1rem;+ border: 1px dashed var(--ifx-control-line);+ color: var(--ifx-muted);+ font-size: 0.875rem;+}+/* ==========================================================================CLI reference (snippets/CLIPage.jsx)========================================================================== */