-
Notifications
You must be signed in to change notification settings - Fork 45
Application Credential support #812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,9 +41,18 @@ default_backend=default_backend | |
| [keystone_authtoken] | ||
| www_authenticate_uri={{ .KeystonePublicURL }} | ||
| auth_url={{ .KeystoneInternalURL }} | ||
| auth_type=password | ||
| username={{ .ServiceUser }} | ||
| {{ if (index . "ApplicationCredentialID") -}} | ||
| auth_type = v3applicationcredential | ||
| application_credential_id = {{ .ApplicationCredentialID }} | ||
| application_credential_secret = {{ .ApplicationCredentialSecret }} | ||
| {{- else -}} | ||
| auth_type = password | ||
| username = {{ .ServiceUser }} | ||
| password = {{ .ServicePassword }} | ||
| project_domain_name = Default | ||
| user_domain_name = Default | ||
| project_name = service | ||
| {{- end }} | ||
| {{ if (index . "MemcachedServers") }} | ||
| memcached_servers = {{ .MemcachedServers }} | ||
| memcache_pool_dead_retry = 10 | ||
|
|
@@ -55,15 +64,19 @@ memcache_tls_keyfile = {{ .MemcachedAuthKey }} | |
| memcache_tls_cafile = {{ .MemcachedAuthCa }} | ||
| memcache_tls_enabled = true | ||
| {{end}} | ||
| project_domain_name=Default | ||
| user_domain_name=Default | ||
| project_name=service | ||
| {{ if (index . "Region") -}} | ||
| region_name = {{ .Region }} | ||
| {{ end -}} | ||
|
|
||
| [service_user] | ||
| {{ if (index . "ApplicationCredentialID") -}} | ||
| auth_type = v3applicationcredential | ||
| application_credential_id = {{ .ApplicationCredentialID }} | ||
| application_credential_secret = {{ .ApplicationCredentialSecret }} | ||
| {{ else -}} | ||
| auth_type = password | ||
| password = {{ .ServicePassword }} | ||
| {{- end }} | ||
|
|
||
| [oslo_messaging_notifications] | ||
| {{ if (index . "TransportURL") -}} | ||
|
|
@@ -97,11 +110,17 @@ filesystem_store_datadir = /var/lib/glance/os_glance_tasks_store/ | |
|
|
||
| [oslo_limit] | ||
| auth_url={{ .KeystoneInternalURL }} | ||
| {{ if (index . "ApplicationCredentialID") -}} | ||
| auth_type = v3applicationcredential | ||
| application_credential_id = {{ .ApplicationCredentialID }} | ||
| application_credential_secret = {{ .ApplicationCredentialSecret }} | ||
| {{ else -}} | ||
| auth_type = password | ||
| username={{ .ServiceUser }} | ||
| password = {{ .ServicePassword }} | ||
| system_scope = all | ||
| user_domain_id = default | ||
| {{- end }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Application credentials cannot be used for oslo_limit because they are This means we still need manual update for oslo_limit if password is changed for service user.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I was doing some R & D with oslo_limit and application credentials and found that if we set system_scope = unscoped and add endpoint_id of keystone service the quotas works as expected but on the other hand I am not sure the impact of changing system_scope from all to unscoped. Required configs for oslo_limit to work with application credentials: [oslo_limit]
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hello @konan-abhi, thanks a lot for providing details! So, for now we should remove the application credential completely from the oslo_limit config section and keep only the password auth option for now?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @Deydra71
keystone patch: https://review.opendev.org/c/openstack/keystone/+/971735 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This is incorrect. Application Credentials are scoped to a specific project and have role assignments only on that project. The issue with This was fixed in: https://opendev.org/openstack/keystone/commit/8a42793e714efb0b5c1bb07bcb81d2b4ab59b600 |
||
| {{ if (index . "EndpointID") -}} | ||
| endpoint_id = {{ .EndpointID }} | ||
| {{ end -}} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.