Skip to content

Commit

Permalink
Merge pull request #3149 from Infisical/doc/add-ab-initio-docs
Browse files Browse the repository at this point in the history
doc: add ab-initio docs
  • Loading branch information
vmatsiiako authored Feb 26, 2025
2 parents de420fd + fb03040 commit e6af7a6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
32 changes: 32 additions & 0 deletions docs/integrations/frameworks/ab-initio.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: "AB Initio"
description: "How to use Infisical secrets in AB Initio."
---

## Prerequisites

- Set up and add envars to [Infisical](https://app.infisical.com).
- Install the [Infisical CLI](https://infisical.com/docs/cli/overview) to your server.

## Setup

<Steps>
<Step title="Authorize Infisical for AB Initio">
Create a [machine identity](https://infisical.com/docs/documentation/platform/identities/machine-identities#machine-identities) in Infisical and give it the appropriate read permissions for the desired project and secret paths.
</Step>
<Step title="Add Infisical CLI to your workflow">
Update your AB Initio workflows to use Infisical CLI to inject Infisical secrets as environment variables.

```bash
# Login using the machine identity. Modify this accordingly based on the authentication method used.
export INFISICAL_TOKEN=$(infisical login --method=universal-auth --client-id=$INFISICAL_CLIENT_ID --client-secret=$INFISICAL_CLIENT_SECRET --silent --plain)

# Fetch secrets from Infisical
infisical export --projectId="<>" --env="prod" > infisical.env

# Inject secrets as environment variables
source infisical.env
```
</Step>

</Steps>
3 changes: 2 additions & 1 deletion docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@
"integrations/frameworks/laravel",
"integrations/frameworks/rails",
"integrations/frameworks/dotnet",
"integrations/platforms/pm2"
"integrations/platforms/pm2",
"integrations/frameworks/ab-initio"
]
}
]
Expand Down

0 comments on commit e6af7a6

Please sign in to comment.