* website/integrations: rename "Create with Provider" to "New Application" The application list page now uses a split-button labeled "New Application" instead of the old "Create with Provider" dropdown. Update all 113 integration guides to match. * website/docs: update flow, stage, and policy button labels - "Create" → "New Flow", "New Stage", "New Policy" for trigger buttons - "Finish" → "Create Flow", "Create Stage", "Create Policy" for submit - "Create and bind stage" → "New Stage" / "Bind Existing Stage" - "Create" (binding submit) → "Create Stage Binding" * website/docs: update provider button labels - "Create" → "New Provider" for trigger buttons - "Create with Provider" → "New Application" in RAC docs - "Create" → "New Property Mapping", "New RAC Endpoint", "New Prompt" for related entity creation * website/docs: update directory button labels - "Create" → "New Source" for federation/social login pages - "Create" → "New Role", submit → "Create Role" - "Create" → "New Invitation" - Policy binding submit → "Create Policy Binding" * website/docs: update endpoint device and system management button labels - "Create" → "New Endpoint Connector", "New Enrollment Token", "New Device Access Group", "New Flow" - Submit → "Create Device Access Group" - "Create" → "New Notification Rule", "New Notification Transport" - Binding submit → "Create Policy Binding" * Reorganize policy documentation * website/docs: address policy docs review feedback * post-rebase * website/docs: Reorganize policy documentation -- Revisions (#21601) * apply suggestions * Fix escaped. * Fix whitespace. * Update button label. * Fix phrasing. * Fix phrasing. * Clean up stragglers. * Format. --------- Co-authored-by: Dominic R <dominic@sdko.org>
4.3 KiB
title, sidebar_label, support_level
| title | sidebar_label | support_level |
|---|---|---|
| Integrate with Terraform Cloud | Terraform Cloud | community |
What is Terraform Cloud
Terraform Cloud is a managed SaaS platform by HashiCorp that enables teams to collaborate on infrastructure-as-code by running, storing state, enforcing policies, and automating workflows for Terraform configurations.
Preparation
The following placeholders are used in this guide:
authentik.companyis the FQDN of the authentik installation.
:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::
authentik configuration
To support the integration of Terraform with authentik, you need to create an application/provider pair in authentik.
Create an application and provider in authentik
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Applications and click New Application to open the application wizard.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
- Choose a Provider type: select SAML Provider as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations:
- Set the ACS URL to
https://temporary.domain. - Set the Issuer to
https://authentik.company. - Set the Service Provider Binding to
Post. - Set the Audience to
https://temporary.domain. - Under Advanced protocol settings, select an available Signing Certificate.
- Set the ACS URL to
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's My applications page.
-
Click Submit to save the new application and provider.
Copy the metadata URL
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Providers and click the provider that you created in the previous step.
- Under Related objects, click Copy download URL and take note of the URL as it will be used in the next step.
Terraform Cloud configuration
- Log in to Terraform Cloud as an administrator.
- Select your organization from the dropdown menu in the top left, then click Settings > SSO.
- Click Setup SSO, click SAML, then Next, and set the Metadata URL to the URL copied in the previous step.
- Click Save Settings.
- Under HCP Terraform, take note of the Entity ID (Audience) and Assertion Consumer URL values. Do not close this window.
Configure the remaining information in authentik
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Providers and provider that you created in the previous step.
- Click Edit.
- Under Protocol settings, set the value of the ACS URL to the Assertion Consumer URL value from the previous step. Then, set the value of the Audience to the Entity ID (Audience) value from the previous step.
- Click Update.
Enabling Terraform Cloud SSO
- In Terraform Cloud, under Settings > SSO, click Test. Successfully authenticating will result in a green checkmark and Successful appearing. Then, to enable SSO, click Enable.
- Read the warning message that appears and click Enable SAML.
Configuration verification
To verify that authentik is correctly integrated with Terraform Cloud, first log out of Terraform Cloud. Open the Terraform Cloud login page and click Sign in with Terraform SSO. Enter the name of your organization, click Next, and you'll be redirected to authentik. Once authenticated, you will be signed into Terraform Cloud.