Merge pull request #4300 from Infisical/feat/machineAuthTemplates

Add Machine Auth Templates
This commit is contained in:
carlosmonastyrski
2025-08-04 17:24:10 -03:00
committed by GitHub
53 changed files with 3182 additions and 223 deletions

View File

@@ -322,6 +322,7 @@
}
]
},
"documentation/platform/identities/auth-templates",
"documentation/platform/token",
"documentation/platform/mfa",
"documentation/platform/github-org-sync"

View File

@@ -0,0 +1,96 @@
---
title: "Machine Identity Auth Templates"
description: "Learn how to use auth templates to standardize authentication configurations for machine identities."
---
## Concept
Machine Identity Auth Templates allow you to create reusable authentication configurations that can be applied across multiple machine identities. This feature helps standardize authentication setups, reduces configuration drift, and simplifies identity management at scale.
Instead of manually configuring authentication settings for each identity, you can create templates with predefined authentication parameters and apply them to multiple identities. This ensures consistency and reduces the likelihood of configuration errors.
Key Benefits:
- **Standardization**: Ensure consistent authentication configurations across identities
- **Efficiency**: Reduce time spent configuring individual identities
- **Governance**: Centrally manage and update authentication parameters
- **Scalability**: Easily apply proven configurations to new identities
## Managing Auth Templates
Auth templates are managed in **Organization Settings > Access Control > Identities** under the **Identity Auth Templates** section.
![Identity Auth Templates Section](/images/platform/identities/auth-templates/templates-section.png)
### Creating a Template
<Steps>
<Step title="Navigate to Auth Templates">
In your organization settings, go to **Access Control > Identities** and scroll down to the **Identity Auth Templates** section.
</Step>
<Step title="Create a new template">
Click **Create Template** to open the template creation modal.
![Create Template Button](/images/platform/identities/auth-templates/create-template-button.png)
Select the authentication method you want to create a template for (currently supports LDAP Auth).
</Step>
<Step title="Configure template settings">
Fill in the template configuration based on your chosen authentication method.
<Tabs>
<Tab title="LDAP Auth Template">
**For LDAP Auth templates**, configure the following fields:
![LDAP Auth Template](/images/platform/identities/auth-templates/ldap-template.png)
- **Template Name**: A descriptive name for your template
- **URL**: The LDAP server to connect to such as `ldap://ldap.your-org.com`, `ldaps://ldap.myorg.com:636` _(for connection over SSL/TLS)_, etc.
- **Bind DN**: The DN to bind to the LDAP server with.
- **Bind Pass**: The password to bind to the LDAP server with.
- **Search Base / DN**: Base DN under which to perform user search such as `ou=Users,dc=acme,dc=com`.
- **CA Certificate**: The CA certificate to use when verifying the LDAP server certificate. This field is optional but recommended.
<Note>
You can read more about LDAP Auth configuration in the [LDAP Auth documentation](/documentation/platform/identities/ldap-auth/general).
</Note>
</Tab>
</Tabs>
</Step>
</Steps>
### Using Templates
Once created, templates can be applied when configuring authentication methods for machine identities. When adding an auth method to an identity, you'll have the option to select from available templates or configure manually.
![Attach Template](/images/platform/identities/auth-templates/machine-identity-page.png)
![Attach Template Form](/images/platform/identities/auth-templates/attach-template-form.png)
### Managing Template Usage
You can view which identities are using a specific template by clicking **View Usages** in the template's dropdown menu.
![Template Usages](/images/platform/identities/auth-templates/template-usages.png)
![Template Usages Modal](/images/platform/identities/auth-templates/template-usages-modal.png)
## FAQ
<AccordionGroup>
<Accordion title="Can I modify a template after it's been applied to identities?">
Yes, you can edit existing templates. After editing a template, changes to templates will automatically update identities that are already using them.
</Accordion>
<Accordion title="What happens if I delete a template that's in use?">
If you delete a template that's currently being used by identities, those identities will continue to function with their existing configuration. However, the link to the template will be broken, and you won't be able to use the template for new identities.
</Accordion>
<Accordion title="Can I see which identities are using a specific template?">
Yes, click **View Usages** in the template's dropdown menu to see all identities currently using that template.
</Accordion>
<Accordion title="Do templates support all authentication methods?">
Currently, auth templates support LDAP Auth. Support for additional authentication methods will be added in future releases.
</Accordion>
</AccordionGroup>

View File

@@ -5,6 +5,12 @@ description: "Learn how to authenticate with Infisical using LDAP."
**LDAP Auth** is an LDAP based authentication method that allows you to authenticate with Infisical using a machine identity configured with an [LDAP](https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol) directory.
## Templates
You can create reusable LDAP authentication templates to standardize configurations across multiple machine identities. Templates help ensure consistency, reduce configuration errors, and simplify identity management at scale.
To create and manage LDAP auth templates, see our [Machine Identity Auth Templates documentation](/documentation/platform/identities/auth-templates). Once you've created a template, you can apply it when configuring LDAP auth for your identities in the guide below.
## Guide
<Steps>
<Step title="Creating an identity">

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 KiB

View File

@@ -217,3 +217,14 @@ Supports conditions and permission inversion
| `edit-gateways` | Modify existing gateway settings |
| `delete-gateways` | Remove gateways from organization |
| `attach-gateways` | Attach gateways to resources |
#### Subject: `machine-identity-auth-template`
| Action | Description |
| ------------------ | ---------------------------------------------- |
| `list-templates` | View identity auth templates |
| `create-templates` | Create new identity auth templates |
| `edit-templates` | Modify existing identity auth templates |
| `delete-templates` | Remove identity auth templates |
| `unlink-templates` | Unlink identity auth templates from identities |
| `attach-templates` | Attach identity auth templates to identities |