This subordinate charm provides a way to integrate an Open ID Connect based
identity provider with Keystone using
mod_auth_openidc. Apache
operates as an OpenID Connect Relaying Party towards an OpenID Connect
Provider.
Usage
Configuration
To display all configuration option information run juju config keystone-openidc. If the application is not deployed then see the charm’s
Configure tab in the
Charmhub. Finally, the Juju documentation provides
general guidance on configuring applications.
Deployment
These deployment instructions assume the following applications are present:
keystone and
openstack-dashboard
You must add this relation for Horizon and Keystone. If you do not, Keystone will return a 401 error that the login domain for Horizon is not a trusted domain.
Now provide an OpenID Connect client credentials and the URL for autodiscovery
of the backend’s configuration:
The OpenStack client supports authentication
against an OpenID Connect identity provider using Bearer Access Token
authentication flow only. This requires the
keystone-openidc charm to have its configuration option auth-type set to
‘auth-openidc’ (the default).
Here is an example of the environment variables that need to be set for the
OpenStack client to authenticate successfully:
export OS_AUTH_TYPE=v3oidcpassword
export OS_DISCOVERY_ENDPOINT="https://example.com/.well-known/openid-configuration"
export OS_OPENID_SCOPE="openid email profile"
export OS_CLIENT_ID="<CLIENT_SECRET>"
export OS_CLIENT_SECRET="<CLIENT_SECRET>"
export OS_IDENTITY_PROVIDER=openid
export OS_PROTOCOL=openid
# At the end include openstack specific config, like OS_USERNAME, OS_PASSWORD, etc.
# ...
Overview
This subordinate charm provides a way to integrate an Open ID Connect based identity provider with Keystone using mod_auth_openidc. Apache operates as an OpenID Connect Relaying Party towards an OpenID Connect Provider.
Usage
Configuration
To display all configuration option information run
juju config keystone-openidc. If the application is not deployed then see the charm’s Configure tab in the Charmhub. Finally, the Juju documentation provides general guidance on configuring applications.Deployment
These deployment instructions assume the following applications are present: keystone and openstack-dashboard
To deploy keystone-openidc:
Join keystone-openidc to keystone:
Join keystone-openidc to openstack-dashboard to provide SSO access through Horizon:
Enable Horizon as a trusted dashboard for Web Single Single-On for Keystone:
You must add this relation for Horizon and Keystone. If you do not, Keystone will return a 401 error that the login domain for Horizon is not a trusted domain.
Now provide an OpenID Connect client credentials and the URL for autodiscovery of the backend’s configuration:
Here is a bundle representation of the deployment:
OpenStack CLI Authentication
The OpenStack client supports authentication against an OpenID Connect identity provider using Bearer Access Token authentication flow only. This requires the keystone-openidc charm to have its configuration option
auth-typeset to ‘auth-openidc’ (the default).Here is an example of the environment variables that need to be set for the OpenStack client to authenticate successfully:
Proxies
The keystone-openidc charm uses the
juju-https-proxymodel configuration when set and its value is passed to OIDCOutgoingProxy in Apache mod_auth_openidc module.Bugs
Please report bugs on Launchpad.
For general charm questions refer to the OpenStack Charm Guide.