Buildkite
When you connect a Buildkite organization to Oblique, Oblique will automatically sync the organization, its users, and its teams.
As you add people to Buildkite, change their roles, move them between teams, remove their access, or add and delete teams, these changes are automatically synced to Oblique.
You can add multiple Buildkite organizations to Oblique. Each is a separate integration, identified by its organization name.
Supported options
Section titled “Supported options”Oblique syncs the following from your Buildkite organization.
| Buildkite object | Oblique object | Capability |
|---|---|---|
| Users | Accounts | Read-only |
| Organization | Resources | Read-only |
| Teams | Resources | Read-only |
| Roles | Roles | Read-only |
| Organization membership | Entitlements | Read-only |
| Team membership | Entitlements | Read-only |
Accounts
Section titled “Accounts”Oblique syncs each Buildkite user in the organization as an Oblique account. People who haven’t accepted their invitation aren’t synced.
Oblique automatically matches Buildkite accounts to users in Oblique. Buildkite accounts are matched to Oblique users by their email (email).
Resources
Section titled “Resources”Oblique syncs the following from Buildkite as resources:
- The Buildkite organization you connected
- Each team in the organization, including secret teams
Every user has an entitlement for the organization. Each member of a team has an entitlement for the team.
Administrators can manage every team in Buildkite. Oblique only shows an entitlement for a team if they were also added to it.
Pipelines, test suites, and registries, and access to them, aren’t synced.
Oblique syncs Buildkite roles as Oblique roles, for both organization and team memberships.
Every entitlement for the organization is for exactly one organization role, and every entitlement for a team is for exactly one team role.
Required permissions
Section titled “Required permissions”You must be an Administrator in Buildkite to connect this integration.
If you don’t have sufficient permissions, create an install link so someone who does can connect the integration without being an Oblique admin.
The Buildkite integration connects using an API access token with the following REST API scopes:
| Buildkite scope | What Oblique uses it for |
|---|---|
read_organizations |
Read the organization and its users |
read_teams |
Read the organization’s teams and their members |
read_user |
Check that the token’s owner is an Administrator |
An API access token belongs to the Administrator who creates it, rather than to the organization. Oblique doesn’t accept a token created by someone who isn’t an Administrator.
Add Buildkite integration
Section titled “Add Buildkite integration”You connect a Buildkite organization to Oblique by creating an API access token in Buildkite, then adding it to Oblique.
To create an API access token, in Buildkite:
- Navigate to Personal Settings > API Access Tokens.
- Select New API Access Token.
- Add a Description for the token, for example
Oblique. - Under Organization Access, select your organization.
- Under Token Expiry, select Never.
- Under REST API Scopes > Organization & Users, select Read for Organizations, Teams, and User.
- Under GraphQL API Access, select Disabled.
- Select Create New API Access Token.
- Copy the token, which starts with
bkua_.
Then, to add a Buildkite integration, navigate to the Integrations page:
- Select Add integration.
- Select Buildkite.
- Under Connect, in API access token, paste the token you created.
- Select Add integration.
Oblique will immediately start syncing the organization’s users and teams.
If your organization uses an API IP allowlist, or you set Allowed IP Addresses on the token, allow Oblique’s static IP address for your tenant’s region.
Change Buildkite integration’s authorizations
Section titled “Change Buildkite integration’s authorizations”If the API access token expires, is revoked, or needs rotating, you can replace it without removing the integration. From the integration’s detail page:
- Navigate to the Settings tab.
- Under Connection, select Replace API access token….
- Under API access token, paste the new API access token and select Replace API access token.
You can only replace the token with another one for the same organization. To change the organization, instead delete the integration and add another one.
Manage entitlements
Section titled “Manage entitlements”Oblique’s Buildkite integration is read-only, so it can’t be used to manage your Buildkite organization, its users and teams, or their roles. Make these changes in Buildkite directly, and Oblique will sync them automatically.
Remove Buildkite integration
Section titled “Remove Buildkite integration”To remove a Buildkite integration, from the integration’s detail page:
- Navigate to the Settings tab.
- At the bottom of the page, under Delete integration, select Delete integration….
- In the confirmation dialog, type the text to confirm, then select Delete integration.
This will immediately stop all syncing and remove all resources from the integration.