Chapter 4. Authenticating with OpenID Connect
Integrate Red Hat Edge Manager with OIDC to delegate user authentication and Single Sign-On (SSO) to an external identity provider (for example, Red Hat Build of Keycloak), allowing central management of user credentials and enabling access based on existing organizational identities.
OIDC integration: for user access, Red Hat Edge Manager can leverage OpenID Connect (OIDC) to delegate user authentication and SSO to an external IdP. Modify service-config.yaml to set authentication type, oidcAuthority, externalOidcAuthority, and oidcClientId, then restart the services.
Procedure
Stop the flightctl services before editing your
service-config.yamlfile:sudo systemctl stop flightctl.targetConfigure the integration settings by editing the configuration file:
sudo vi /etc/flightctl/service-config.yamlUpdate the configuration file to integrate with OIDC:
global: baseDomain: YOUR_EDGE_MANAGER_HOSTNAME auth: type: oidc insecureSkipTlsVerify: false oidc: oidcAuthority: "https://YOUR_IDP_HOST/realms/YOUR_REALM" externalOidcAuthority: "https://YOUR_IDP_PUBLIC_HOST/realms/YOUR_REALM" oidcClientId: "YOUR_OIDC_CLIENT_ID"- baseDomain
- The domain name or IP for the host.
- type
-
Set this to
oidcto enable OIDC authentication. - insecureSkipTlsVerify
-
Set to
false. Only set this totrueto skip TLS certificate verification for your identity provider URLs. For production environments, configure a proper CA trust store instead of leaving verification disabled. - oidcAuthority
- The base URL to your Realm’s OpenID Connect configuration endpoint.
- externalOidcAuthority
- The publicly accessible URL for the same Keycloak realm endpoint.
- oidcClientId
- The Client ID you defined when registering your application in the Keycloak console.
Start the services:
sudo systemctl start flightctl.target