Skip to main content
A Buildkite connection authenticates Infisical to Buildkite with an API access token, so Infisical can list your organizations and clusters and manage the Buildkite secrets in a cluster. Buildkite issues API access tokens to a user, not to an organization, so Infisical acts as the user who created the token.
This guide only authenticates Infisical with Buildkite. Once the app connection is ready, you can use it to set up integrations.

Prerequisites

  • Membership in the Buildkite organization that owns the clusters you plan to sync to
  • For each of those clusters, the maintainer role on the cluster or the administrator role in the organization, which Buildkite requires to create and update secrets

Step 1: Create a Buildkite API access token

Infisical needs a Buildkite API access token that can read organizations and clusters, and read and write secrets.
1
Log in to Buildkite, open the account menu in the top right, and select Personal settings. Then select API Access Tokens.Personal Settings Menu
2
Select New API Access Token, and enter your password if Buildkite asks for it.New API Access Token
3
Fill in the form:
  • Description: A name that identifies the token, such as infisical
  • Credential Type: Token
  • Organization Access: The organizations that own the clusters you plan to sync to
  • Token Expiry: How long the token stays valid; once it expires, syncs fail until you update the connection with a new token
  • REST API Scopes: READ for Organizations, Clusters, and Pipelines, and READ and WRITE for Secrets
  • GraphQL API Access: Disabled, because Infisical uses only the REST API
Then select Create New API Access Token.Create New API Access Token
4
Copy the token and store it securely. Buildkite shows it only once.

Step 2: Create the app connection

Next, create the app connection in Infisical.
To create the connection using the API, use the Buildkite Create endpoint.
1
In the sidebar, select Integrations, then open the App Connections tab.App Connections Tab
2
Select Add Connection and choose Buildkite.Select Buildkite Connection
3
Fill out the form’s fields:
  • Name: A descriptive name for the connection; it must be slug-friendly
  • Description (optional): A note for future reference
  • Method: API Token, the only method the connection supports
  • Buildkite API Access Token: The token you copied when creating a Buildkite API access token
Then, select Connect to Buildkite.Buildkite Connection Form
When you submit the form, Infisical checks that Buildkite accepts the token and that the token has the read_organizations, read_clusters, read_pipelines, read_secrets_details, and write_secrets scopes.
Your Buildkite app connection is ready to use.

Step 3: Configure integrations

Now that your Buildkite app connection is configured, you can use it to set up the following integration:

Buildkite sync

Sync secrets from Infisical to Buildkite secrets in a cluster.