Komodo Intergration with Authentik
Komodo: is a web app to provide structure for managing your servers, builds, deployments, and automated procedures.
Authentik: is an open-source Identity Provider (IdP) that allows you to self-host user authentication, single sign-on (SSO), and access controls.
Authentik Configuration
To support the integration of Komodo with Authentik, you need to create an application/provider pair in Authentik.
Create an application and provider:
Log in to authentik as an administrator and open the Authentik Admin interface.
Navigate to Applications > Applications and click Create with Provider to create an application and provider pair.
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.
Note the Client ID and Client Secret values because they will be required later.
Set a Strict redirect URI to:
1
https://komodo.company/auth/oidc/callback.
Select any available signing key.
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.
Komodo Configuration
Setup OIDC connection.
Edit the following environment variables in your Komodo .env file, or if using a mounted config file, edit your ./komodo/core.config.toml file:
1
2
3
4
KOMODO_OIDC_ENABLED=true
KOMODO_OIDC_PROVIDER=https://authentik.company/application/o/<application_slug>/
KOMODO_OIDC_CLIENT_ID=<authentik_client_ID>
KOMODO_OIDC_CLIENT_SECRET=<authentik client secret>
Redeploy Komodo for the changes to take effect.
User Configuration
Komodo doesn’t currently have a method to provision OIDC users, therefore OIDC accounts need to be manually enabled after first login. Follow these steps to create and enable OIDC users in Komodo:
1) Log in to Komodo via the OIDC button on the login page.
2) You will be redirected to Authentik to login (if you are already logged in, you will be redirected to step 3).
3) You will be redirected back to Komodo, and receive an error message saying “User Not Enabled”.
4) Log in to Komodo using a local administrator account.
5) In the sidebar click Settings, and under the Users section, click the name of your Authentik user. The User type should be OIDC. 6) Click Enable User, and assign the desired pemissions.
Configuration Verification
To ensure that Authentik is correctly integrated with Komodo, log out and then log back in by clicking OIDC. You should be redirected to Authentik to log in, and if the process is successful, you’ll be taken to the Komodo dashboard.
