[Yahoo-eng-team] [Bug 1838592] [NEW] WebSSO unable to support multiple identity providers

2019-07-31 Thread Guang Yee
Public bug reported: When performing WebSSO authentication (i.e. openid connect), if there are multiple identity providers exist, regardless of protocol and mapping association, Keystone will yield the following error. Aug 01 03:41:21 localhost devstack@keystone.service[26546]: ERROR keystone.se

[Yahoo-eng-team] [Bug 1818295] [NEW] Only Ironic public endpoint is supported

2019-03-01 Thread Guang Yee
Public bug reported: Currently, there are number of places in Ironic that does endpoint lookup from the Keystone service catalog. By default, keystoneauth set it to 'public' if not specified. Description === We are supposed to be able to select the endpoint type by specify either the 'i

[Yahoo-eng-team] [Bug 1815539] [NEW] Self-service policies for credential APIs are boken in stable/rocky

2019-02-11 Thread Guang Yee
Public bug reported: Service-service policies for credential APIs are broken in stable/rocky. More specifically, Get/Update/Delete no longer works with the following policies. "identity:get_credential": "rule:admin_required or user_id:%(target.credential.user_id)s" "identity:update_credential":

[Yahoo-eng-team] [Bug 1814589] [NEW] Tokenless auth: ephemeral user mapping is broken

2019-02-04 Thread Guang Yee
Public bug reported: Using using an ephemeral user mapping for X.509 tokenless auth, Keystone service will return an HTTP 500 internal error and the we'll see a traceback similar to this in the logs. Feb 04 21:59:19 keystone-idp devstack@keystone.service[11401]: ERROR keystone.common.wsgi Traceb

[Yahoo-eng-team] [Bug 1814570] [NEW] Tokenless auth does not support system scope

2019-02-04 Thread Guang Yee
Public bug reported: One of the most useful features of X.509 tokenless is to enable services to validate user tokens without having to obtain a service auth token. However, with the migration to system scope, this feature is effectively broken as the default policies had been updated to require a

[Yahoo-eng-team] [Bug 1810983] [NEW] domain admin unable to fetch domain

2019-01-08 Thread Guang Yee
Public bug reported: NOTE: This bug impacts stable/rocky and possibly stable/queens release. Master branch is not impacted. The "RULE_ADMIN_OR_TARGET_DOMAIN" which protecting the "get_domain" API no longer works in stable/rocky. https://github.com/openstack/keystone/blob/stable/rocky/keystone/co

[Yahoo-eng-team] [Bug 1810485] [NEW] incorrect API doc description on domain reenablement

2019-01-03 Thread Guang Yee
Public bug reported: Looks like the description for domain re-enable is incorrect. https://developer.openstack.org/api-ref/identity/v3/?expanded=update- domain-detail#domains "Users can only authorize against an enabled domain (and any of its projects). In addition, users can only authenticate i

[Yahoo-eng-team] [Bug 1803780] [NEW] confusing "Circular reference found role inference rules ..." error

2018-11-16 Thread Guang Yee
Public bug reported: When assigning both prior role and implied role in the implied role chain (that is more than two levels deep) to a given user for a given project, you'll see a rather confusing and misleading error in the Keystone log that looks like this. Nov 16 11:50:03 keystone devstack@ke

[Yahoo-eng-team] [Bug 1766668] [NEW] 'image_source' should not be required for Ironic boot from volume

2018-04-24 Thread Guang Yee
Public bug reported: Description === When configure Ironic to boot from volume, 'openstack baremetal node validate $NODE_UUID' still fails with something like "Cannot validate image information for node 6977c516-976d-456b-9d71-daa56f589302 because one or more parameters are missing from

[Yahoo-eng-team] [Bug 1766661] [NEW] 'host' property is missing for Cinder volume connector when boot from volume

2018-04-24 Thread Guang Yee
Public bug reported: Description === Not sure if this is a bug or by design. But in any case, we need to clarify how to the volume connectors are created when boot from volume. According the doc (https://docs.openstack.org/ironic/pike/admin/boot-from-volume.html), we need to create an i

[Yahoo-eng-team] [Bug 1758460] [NEW] UUID (or any persistent) token providers unable to validate federation token

2018-03-23 Thread Guang Yee
Public bug reported: With the UUID token provider and WebSSO enabled. A token obtain via WebSSO will not be able to validate in Keystone. In the Keystone log, you'll see something similar to these. 46386 (keystone.token.providers.common): 2018-03-23 20:24:09,581 DEBUG common _populate_roles User

[Yahoo-eng-team] [Bug 1757000] [NEW] keystone-saml2-federation devstack plugin does not work on openSUSE Leap (12.3)

2018-03-19 Thread Guang Yee
Public bug reported: Steps to reproduce: 1. clone devstack, latest branch 2. Create a local.conf with these lines at the end disable_all_services enable_plugin keystone git://git.openstack.org/openstack/keystone.git enable_service rabbitmq, mysql, keystone, keystone-saml2-federation This shoul

[Yahoo-eng-team] [Bug 1750917] [NEW] Keystone returns a HTTP 500 error if xmlsec CLI is missing

2018-02-21 Thread Guang Yee
Public bug reported: Keystone log is also unhelpful. All we got is "ERROR idp _sign_assertion Error when signing assertion, reason: [Errno 2] No such file or directory" When the xmlsec1 package is absent. We may need to add a check here https://github.com/openstack/keystone/blob/master/keyston

[Yahoo-eng-team] [Bug 1718747] [NEW] Unable to delete domain with projects in it

2017-09-21 Thread Guang Yee
Public bug reported: Attempting to delete a domain which contains users and projects may yield an UnexpectedError similiar to this Sep 21 19:37:17 vagrant-openSUSE-Leap devstack@keystone.service[23894]: DEBUG keystone.common.sql.core [None req-707ec264-b10c-4079-94bb-2af01db58aab None None] Con

[Yahoo-eng-team] [Bug 1717962] [NEW] Unhelpful error in the keystone log

2017-09-18 Thread Guang Yee
Public bug reported: Occasionally an API (i.e. DELETE /v3/domains/) receives an HTTP 500 response. However, all we got from keystone log is this 2017-09-12 23:20:37.995 7321 WARNING keystone.common.wsgi [req-e1060272-c8b8-4d51-94f5-98b2b4d84a43 960c1d5dba8847cfbde96764ee7747bb - default default -

[Yahoo-eng-team] [Bug 1696417] Re: nova-manage db online_data_migrations can fail when upgrading to newton under certain conditions

2017-09-06 Thread Guang Yee
I also ran into this exact same issue. We have mysql as the backend. And the datetime type is not timezone aware. Neither "--verbose" and "-- debug" are effective for the online_data_migrations command as they are not being taken into consideration. I ended up manually printing out the traceback by

[Yahoo-eng-team] [Bug 1669070] [NEW] Checking whether group has role assignment on domain without specifying a role ID result in HTTP 200

2017-03-01 Thread Guang Yee
Public bug reported: It should've been either 400 or 404. Steps to reproduce. 1. install a vanilla devstack 2. use "openstack group list" to find a group ID. Any group will do. i.e. openstack group list +--+---+ | ID | Name

[Yahoo-eng-team] [Bug 1667367] [NEW] V2 role create does not allow spaces in the role description

2017-02-23 Thread Guang Yee
Public bug reported: Creating a new role using V2 APIs no longer allow spaces in the role description. Looks like it was broken since the introduction of JSON schema. See https://github.com/openstack/keystone/blob/master/keystone/assignment/schema.py#L20 Instead of parameter_types.id_string. It

[Yahoo-eng-team] [Bug 1651898] [NEW] Key manager configuration for ephemeral storage encryption is not backward compatible

2016-12-21 Thread Guang Yee
Public bug reported: Description === With the move to Castellan, Nova's key manager configuration is no longer backward compatible. Furthermore, looks like it hasn't been tested with grenade gate either. Otherwise, it would've easily break theory #1: New code should work with old config

[Yahoo-eng-team] [Bug 1651887] [NEW] Ephemeral storage encryption is broken with interface mismatch

2016-12-21 Thread Guang Yee
Public bug reported: Description === Ephemeral storage encryption is broken because of interface mismatch. The default key manager (Castellan with Barbican)'s create_key() interface required at least 4 arguments. See https://github.com/openstack/castellan/blob/0.4.0/castellan/key_manage

[Yahoo-eng-team] [Bug 1594592] [NEW] federated_user table failed functional test if db engine is MyISAM

2016-06-20 Thread Guang Yee
Public bug reported: 094_add_federated_user_table.py failed functional test if the default db engine is MyISAM for MySQL. We need to follow the established pattern of adding the following mysql_engine='InnoDB', mysql_charset='utf8' to the script during table creation. Here's an example of one o

[Yahoo-eng-team] [Bug 1593813] [NEW] domain admin unable to setup a prior domain-specific role to implied another domain-specific role in the same domain

2016-06-17 Thread Guang Yee
Public bug reported: With policy.v3cloudsample.json, domain admin of a domain is unable to setup a prior domain-specific role to imply another domain-specific role in the same domain. Per design, this is allowed. To reproduce. 1. Create "DomainA" 2. Create domain user "foo" in "DomainA" 3. Make

[Yahoo-eng-team] [Bug 1590587] [NEW] assigning a domain-specific role in domain A for a user to a project in domain B should be prohibited

2016-06-08 Thread Guang Yee
Public bug reported: Domain-specific roles are visible in their owning domains only. Therefore, assigning a domain-specific role in a domain to users for a project in another domain should be prohibited. To reproduce: 1. create a domain-specific "foo_domain_role" in the "foo" domain. 2. create a

[Yahoo-eng-team] [Bug 1590583] [NEW] domain-specific role in one domain should not be able to imply a domain-specific role from another domain

2016-06-08 Thread Guang Yee
Public bug reported: By design, domain-specific roles are visible within their owning domains only. In other words, domain-specific role in domain "foo" should not be able to imply a domain-specific role from domain "bar". To reproduce: 1. create a domain-specific role "foo_domain_role" in domai

[Yahoo-eng-team] [Bug 1590578] [NEW] global role should not be able to imply domain-specific role

2016-06-08 Thread Guang Yee
Public bug reported: Global roles should only be able to imply other global roles, it should not be able to imply domain-specific roles. Domain-specific role visibility should be limited to its owning domain only. To reproduce: 1. create a domain-specific role "foo_domain_role" in domain "foo".

[Yahoo-eng-team] [Bug 1582376] [NEW] setting user's default_project_id to a domain ID yield HTTP 400 instead of unscoped token

2016-05-16 Thread Guang Yee
Public bug reported: Per spec, if user's default_project_id is invalid (i.e. either it is bogus, disabled, or user have no roles assigned on it), it should be ignored at token request. In otherwise, it should result in an unscoped token. With the domain-is-project changes recently, if you acciden

[Yahoo-eng-team] [Bug 1563454] [NEW] potential user_id conflict when REMOTE_USER is set

2016-03-29 Thread Guang Yee
Public bug reported: For Federation, the identity is validated outside of Keystone and its attributes are conveyed in the request environment. One of them is REMOTE_USER. If this attribute is present, Keystone will indiscriminately invoke the "external" plugin to "authenticate" https://github.com

[Yahoo-eng-team] [Bug 1557609] [NEW] error message for field name exceeded max allowed is less than helpful

2016-03-15 Thread Guang Yee
Public bug reported: When creating a project with name which exceeds the maximum length (of 64 chars), we get a very generic error message. openstack --os-identity-api-version 3 --os-auth-url https://localhost:5000/v3 --os-username admin --os-user-domain-id default --os-project-name admin --os-

[Yahoo-eng-team] [Bug 1557238] [NEW] mapping yield no valid identity result in HTTP 500 error

2016-03-14 Thread Guang Yee
Public bug reported: A mapping which yield no valid identity (i.e. no local user or group) will result in HTTP 500 instead of 401. There are two issues. 1. We automatically return a default ephemeral user mapped_properties when mapping yield no valid local identity or groups. 2. In the mapped a

[Yahoo-eng-team] [Bug 1555403] [NEW] mapping no longer allows 'type' attribute in 'user' object

2016-03-09 Thread Guang Yee
Public bug reported: For federation, we no longer able to map a remote user to a local user because the JSON schema does not allow the "type" attributes in the user object. This is a legit attribute and must be set to "local" in order to be able to map to a local user. To reproduce the problem:

[Yahoo-eng-team] [Bug 1541621] Re: Invalid fernet X-Subject-Token token should result in 404 instead of 401

2016-03-04 Thread Guang Yee
** Also affects: keystone/liberty Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Identity (keystone). https://bugs.launchpad.net/bugs/1541621 Title: Invalid fernet X-Subject

[Yahoo-eng-team] [Bug 1541621] [NEW] Invalid subject fernet token should result in 404 instead of 401

2016-02-03 Thread Guang Yee
Public bug reported: When a scoped fernet token is no longer valid (i.e. all the roles had been removed from the scope), token validation should result in 404 instead of 401. According to Keystone V3 API spec, 401 is returned only if X-Auth-Token is invalid. Invalid X-Subject-Token should yield 40

[Yahoo-eng-team] [Bug 1495664] Re: public base URL is returned in the links even though request is coming from admin URL

2015-12-14 Thread Guang Yee
This bug can be addressed outside of Keystone by passing the appropriate X-Forwarded-* headers from the proxy or LB. ** Changed in: keystone Status: In Progress => Won't Fix -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to

[Yahoo-eng-team] [Bug 1512372] Re: List users with domain_id query parameter returning 500 Error for IDP created with wrong credentials

2015-11-02 Thread Guang Yee
When running Keystone in INFO mode, the LDAP error is not visible from API. This is expected behavior as 500 is returned for server misconfiguration. ** Changed in: keystone Status: Confirmed => Invalid ** Changed in: keystone Importance: Medium => Undecided -- You received this bug

[Yahoo-eng-team] [Bug 1495669] [NEW] domain-specific drivers does not honor the list_limit set in domain-specific conf file

2015-09-14 Thread Guang Yee
Public bug reported: Step to reproduce: 1. enable domain_specific drivers in keystone.conf domain_specific_drivers_enabled = true domain_configurations_from_database = false domain_config_dir = /etc/keystone/domains 2. set the global list_limit to 2 in keystone.conf [default] list_li

[Yahoo-eng-team] [Bug 1495664] [NEW] public base URL is returned in the links even though request is coming from admin URL

2015-09-14 Thread Guang Yee
Public bug reported: Public base URL is returned in the links even though the request is coming from admin URL. Set both admin_endpoint and public_endpoint in keystone.conf and notice that public_endpoint is always use as the base URL in the links. i.e. $curl -k -s -H 'X-Auth-Token: d5363c1fe95

[Yahoo-eng-team] [Bug 1489105] [NEW] group membership lookup does not support posixGroup (RFC2307)

2015-08-26 Thread Guang Yee
Public bug reported: Our LDAP lookup users in group logic assumes that the member attribute contains the user DN. https://github.com/openstack/keystone/blob/master/keystone/identity/backends/ldap.py#L168 However, this is not the case for posixGroup (RFC 2307) where the memberUid is really the ui

[Yahoo-eng-team] [Bug 1465342] Re: Debug message in flush_expired_tokens job needs to be fixed

2015-06-15 Thread Guang Yee
The existing redundant "total" tokens removed log messages are working fine, it seems. ** Changed in: keystone Status: In Progress => Invalid ** Changed in: keystone Assignee: Michael Tupitsyn (mikhail-tupitsyn) => (unassigned) -- You received this bug notification because you are

[Yahoo-eng-team] [Bug 1461673] [NEW] request path does not seem correct in keystone debug log

2015-06-03 Thread Guang Yee
Public bug reported: Installed the latest devstack and you'll see a bunch of these in key.log. 2015-06-03 12:50:42.200204 36393 INFO keystone.common.wsgi [-] GET http://192.168.1.1:5000/v3/users/7efe8fbb83364bb1b5b3171467c8da9c/projects/users/7efe8fbb83364bb1b5b3171467c8da9c/projects/users/7efe8f

[Yahoo-eng-team] [Bug 1441386] [NEW] keystone-manage domain_config_upload command yield "'CacheRegion' object has no attribute 'expiration_time'"

2015-04-07 Thread Guang Yee
Public bug reported: Steps to reproduce the error: 1. Install devstack 2. enable domain-specific driver feature domain_specific_drivers_enabled=true domain_config_dir=/etc/keystone/domains 3. create an domain-specific conf file in /etc/keystone/domains/. (i.e. /etc/keystone/domai

[Yahoo-eng-team] [Bug 1437407] [NEW] With using V3 cloud admin policy, domain admin unable to list role assignment for projects in his domain

2015-03-27 Thread Guang Yee
Public bug reported: With v3 cloud admin policy file, domain admin can assignment roles to user for projects in his domain. However, he's unable to list those assignment. The expectation is that domain admin should be able to list role assignments for projects in his own domain. ** Affects: keys

[Yahoo-eng-team] [Bug 1419106] [NEW] potential race condition with member role creation

2015-02-06 Thread Guang Yee
Public bug reported: See https://github.com/openstack/keystone/blob/master/keystone/assignment/core.py"https://github.com/openstack/keystone/blob/master/keystone/assignment/core.py#L256-L261 In a multi-worker environment, the second role creation call could result in conflict. ** Affects: keyst

[Yahoo-eng-team] [Bug 1394816] [NEW] sample_data.sh does not work with default options in keystone.conf

2014-11-20 Thread Guang Yee
Importance: Low Assignee: Guang Yee (guang-yee) Status: In Progress ** Changed in: keystone Assignee: (unassigned) => Guang Yee (guang-yee) ** Changed in: keystone Importance: Undecided => Low -- You received this bug notification because you are a member of Yahoo!

[Yahoo-eng-team] [Bug 1349955] [NEW] Domain operation yield "'module' object has no attribute 'KeyError'"

2014-07-29 Thread Guang Yee
KeyError' instead of 'exception.KeyError' https://github.com/openstack/keystone/blob/master/keystone/common/controller.py#L598 https://github.com/openstack/keystone/blob/master/keystone/common/controller.py#L568 ** Affects: keystone Importance: High Assignee: Guang Yee (guan

[Yahoo-eng-team] [Bug 1342274] Re: auth_token middleware in keystoneclient is deprecated

2014-07-23 Thread Guang Yee
** Also affects: swift Importance: Undecided Status: New ** Changed in: swift Assignee: (unassigned) => Guang Yee (guang-yee) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/b

[Yahoo-eng-team] [Bug 1342274] Re: auth_token middleware in keystoneclient is deprecated

2014-07-21 Thread Guang Yee
** Also affects: trove Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1342274 Title: auth_token middleware in keystoneclient

[Yahoo-eng-team] [Bug 1317261] [NEW] auth tests should not require admin token

2014-05-07 Thread Guang Yee
Public bug reported: Currently all the v3 auth tests are calling self.post(), which eventually going through v3_request() https://github.com/openstack/keystone/blob/master/keystone/tests/test_v3.py#L353 that's always an admin request as auth token is required. But since V3 auth is an unprotected

[Yahoo-eng-team] [Bug 1315556] [NEW] Disabling a domain does not disable the projects in that domain

2014-05-02 Thread Guang Yee
Public bug reported: User from an enabled domain can still get a token scoped to a project in a disabled domain. Steps to reproduce. 1. create domains "domainA" and "domainB" 2. create user "userA" and project "projectA" in "domainA" 3. create user "userB" and project "projectB" in "domainB" 4.

[Yahoo-eng-team] [Bug 1304049] [NEW] able to create two users with the same name in the same domain

2014-04-07 Thread Guang Yee
Public bug reported: Looks like we can create two different users with the same name in the same domain. That should not be allowed. gyee@gyee-VirtualBox:~/projects/openstack/keystone$ curl -s -H 'X-Auth-Token: ADMIN' -H 'Content-Type: application/json' -d '{"domain": {"name": "test-domain"}}'

[Yahoo-eng-team] [Bug 1275145] [NEW] can't create credential with ADMIN token

2014-01-31 Thread Guang Yee
Public bug reported: 2014-01-31 15:42:14.656 2631 WARNING keystone.common.wsgi [-] Invalid token in _get_trust_id_for_request 2014-01-31 15:42:14.657 2631 WARNING keystone.common.wsgi [-] Authorization failed. The request you have made requires authentication. from 127.0.0.1 Reason is we are d