* 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>
5.8 KiB
title, sidebar_label, support_level
| title | sidebar_label | support_level |
|---|---|---|
| Integrate with NetBird | NetBird | community |
What is NetBird?
NetBird is an open source, zero trust, networking platform that allows you to create secure private networks for your organization or home.
Preparation
The following placeholders are used in this guide:
netbird.companyis the FQDN of the NetBird installation.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 NetBird 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 OAuth2/OpenID Connect 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.
- Under Protocol Settings:
- Note the Client ID, and slug values because they will be required later.
- Set Client type to
Public. - Add a
Strictredirect:http://localhost:53000. - Add a
Regexredirect:https://<netbird.company>/.*. - Select any available signing key.
- Under Advanced protocol settings:
- Set Access Code Validity to
minutes=10. - Set Subject Mode to be
Based on the User's ID. - Add the
authentik default OAuth Mapping: OpenID 'offline_access'andauthentik default OAuth Mapping: authentik API accessscopes to Selected Scopes.
- Set Access Code Validity to
- Under Protocol Settings:
- 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.
:::warning
It is important to set a signing key to secure the provider because this is a Public client.
:::
:::info If an access group is created for the NetBird application, the NetBird service account must be included in the group. Otherwise you will see a 401 error after login. :::
- Click Submit to save the new application and provider.
Set up a service account
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Directory > Users, and click Create a service account.
- Set the Username to
NetBirdand disable the Create group option. Click Create and take note of the password.
Make the service account an administrator
NetBird requires the service account to have full administrative access to the authentik instance. Follow these steps to make it an administrator.
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Directory > Groups, and click
authentik Admins. - At the top of the group configuration page, switch to the Users tab, then click Add existing user, and select the service account you just created.
Create and apply a device token authentication flow
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Flows and Stages > Flows and click Create.
- Set the following required configurations:
- Name: provide a name (e.g.
default-device-code-flow) - Title: provide a title (e.g.
Device code flow) - Slug: provide a slug (e.g.
default-device-code-flow) - Designation:
Stage Configuration - Authentication:
Require authentication
- Name: provide a name (e.g.
- Click Create.
- Navigate to System > Brands and click the Edit icon on the default brand.
- Set Default code flow to the newly created device code flow and click Update.
NetBird configuration
To configure NetBird to use authentik, add the following environment variables to your NetBird deployment:
NETBIRD_AUTH_OIDC_CONFIGURATION_ENDPOINT="https://authentik.company/application/o/<application_slug>/.well-known/openid-configuration"
NETBIRD_USE_AUTH0=false
NETBIRD_AUTH_CLIENT_ID="<Your Client ID>"
NETBIRD_AUTH_SUPPORTED_SCOPES="openid profile email offline_access api"
NETBIRD_AUTH_AUDIENCE="<Your Client ID>"
NETBIRD_AUTH_DEVICE_AUTH_CLIENT_ID="<Your Client ID>"
NETBIRD_AUTH_DEVICE_AUTH_AUDIENCE="<Your Client ID>"
NETBIRD_MGMT_IDP="authentik"
NETBIRD_IDP_MGMT_CLIENT_ID="<Your Client ID>"
NETBIRD_IDP_MGMT_EXTRA_USERNAME="NetBird"
NETBIRD_IDP_MGMT_EXTRA_PASSWORD="<Your Service Account password>"
NETBIRD_AUTH_REDIRECT_URI="/auth"
NETBIRD_AUTH_SILENT_REDIRECT_URI="/silent-auth"
# needs disabling due to issue with IdP. Learn more at https://github.com/netbirdio/netbird/issues/3654
NETBIRD_AUTH_PKCE_DISABLE_PROMPT_LOGIN=true
Restart the NetBird service for the changes to take effect. If using Docker, redeploy the NetBird container for the changes to take effect.
Configuration verification
To confirm that authentik is properly configured with NetBird, log out and log back in via authentik.
Troubleshooting
When accessing NetBird through a reverse proxy, you might encounter a loop where the /peers URL continuously reloads. To resolve this, set the following variables accordingly:
NETBIRD_MGMT_API_PORT=443
NETBIRD_SIGNAL_PORT=443
Run the configure.sh script for the change to take effect.