-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #368 from rackerlabs/auth
chore: use SSO exclusively for authenticating users
- Loading branch information
Showing
2 changed files
with
16 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ bootstrap: | |
}, | ||
"groups": "{3}", | ||
"domain": { | ||
"id": "default" | ||
"name": "sso" | ||
} | ||
} | ||
], | ||
|
@@ -76,20 +76,17 @@ bootstrap: | |
# create the federation protocol 'openid' to use the identity provider 'sso' with the 'sso_mapping' | ||
openstack federation protocol show openid --identity-provider sso || openstack federation protocol create openid --mapping sso_mapping --identity-provider sso | ||
# create groups which map to our groups claim from dex which can be mapped to permissions | ||
for group in ucadmin ucuser ucneteng ucdctech; do | ||
openstack group create ${group} --or-show | ||
openstack role add --group ${group} --domain default member | ||
# create groups which map to our groups claim from dex which can be mapped to permissions | ||
openstack group create --domain "${sso_domain_id}" ${group} --or-show | ||
# give each of the groups the member role on the domain and have them inherit it to each project | ||
# in the domain | ||
openstack role add --group-domain "${sso_domain_id}" --group ${group} --inherited --domain default member | ||
done | ||
openstack role add --group ucadmin --domain default admin | ||
openstack role add --group ucadmin --domain infra admin | ||
# TODO: only create this actually requested | ||
# create 'demo' user with sufficient permissions | ||
openstack user create --or-show --password demo --email '[email protected]' demo | ||
openstack user set --email '[email protected]' demo | ||
# add 'demo' user to 'ucuser' group | ||
openstack group add user ucuser demo | ||
# ucadmin can manage the standard project domain | ||
openstack role add --group-domain "${sso_domain_id}" --group ucadmin --inherited --domain default manager | ||
# ucadmin can manage the infra domain | ||
openstack role add --group-domain "${sso_domain_id}" --group ucadmin --inherited --domain infra manager | ||
network: | ||
# configure OpenStack Helm to use Undercloud's ingress | ||
|
@@ -259,7 +256,7 @@ conf: | |
# OIDC | ||
OIDCClaimPrefix "OIDC-" | ||
OIDCRemoteUserClaim preferred_username ^(.*)@ | ||
OIDCRemoteUserClaim preferred_username | ||
OIDCSessionType server-cache | ||
OIDCXForwardedHeaders X-Forwarded-Host X-Forwarded-Proto X-Forwarded-Port | ||
OIDCResponseType "code" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters