Friday, 2025-02-21

*** mhen_ is now known as mhen02:05
*** mhen_ is now known as mhen03:06
opendevreviewLuca Miccini proposed openstack/keystonemiddleware master: WIP DNM Switch from python-memcache to pymemcache  https://review.opendev.org/c/openstack/keystonemiddleware/+/94220207:39
opendevreviewLuca Miccini proposed openstack/keystonemiddleware master: WIP DNM Switch from python-memcache to pymemcache  https://review.opendev.org/c/openstack/keystonemiddleware/+/94220207:50
opendevreviewIvan Anfimov proposed openstack/keystone master: Add a new index on project_endpoint_group  https://review.opendev.org/c/openstack/keystone/+/92779914:21
keekzhi all. i'm having a weird problem with application credentials. we're using keystone with federation to azure. i can create an application credential and use it successfully for some time, then after a while the app cred suddenly stops working with error "Authorization failed. User has no access to project". the app cred appears to stop working until i auth as my normal user which the app cred was created from, then the 14:47
keekzapp cred is usable again for a while. my keystone conf, logs, etc are in: https://gist.github.com/nicholaskuechler/a44304e6ae380f21be26970e9fe1402c14:47
gtemaI would assume some other user based auth is overwriting role assignments unless you re-auth. Depending on how you setup the federation any login attempt may overwrite any user related data including role assignments. So if i.e. there is some login without scope (which means keystone gets empty assignments) it will persist them this way14:50
keekzsome other user is overwriting my personal user's role assignments? how can i see if that's happening?14:55
gtemano, not other user. maybe some of your processes reauth with partial or wrong info. This is just a potential explanation14:56
gtemathe point is that when you have a mapper in the federation that also writes/overwrites project access every time it is invoked without necessary project info it would be reset14:56
gtemaideally mapping should not contain any project related information (no authz)14:57
keekzi don't have any of that. i only use either horizon or openstack cli. the problem appears if i don't use cli/horizon for say a weekend, then i come in on monday and see the logs showing terraform-cred can't do anything14:57
gtemaare you having admin access or are you just a regular user?14:58
keekzregular user14:58
gtemathen you should ask you operator to debug. Eventually they are overwriting assignments from some other source14:59
keekzi suspected it's something with cache or expiration times, but i've tweaked those as well, and the problem still persists14:59
keekzi _am_ the operator, trying to debug..14:59
gtemaah ok14:59
gtemanext time when access is broken check role assignments for the user in question on the project in question15:00
gtemaif those are gone you need to figure out why15:00
keekzok, thanks15:00
gtemaand this is the only "reasonable" explanation for me for the moment15:00
gtemabecause when you say that after you re-login with federation (this is the moment when assignments may be updated) it starts to work again15:01
gtemaalso: how is your federation mapping rule look like?15:01
keekzit's here: https://github.com/rackerlabs/understack/blob/main/components/keystone/values.yaml#L36-L10015:03
gtemahm, it does not deal with assignments at all15:04
gtemathen you should try to figure out how assignments are managed at all15:04
gtemamaybe the group membership disappears15:05
keekzyeah that's what it seems like, it's disappearing, and that's what i was suspecting some kind of cache or expiration timer 🤷‍♂️15:06
gtemanot something that comes from keystone by default. Most likely deployment configuration15:07
keekzit's not happening currently, but probably monday it'll be goofed again and i should be able to see the role assignments 15:07
gtemacheck pls not only role assignment but also group membership15:08
gtemaand eventually role assignment to the group15:08
gtemabasically check now all effective role assignments of the user (https://docs.openstack.org/api-ref/identity/v3/index.html#list-role-assignments) and compare it when it stops working15:09
keekzhmm i don't see any role assignments for the user/project currently.15:14
gtemaThat's not cool15:16
keekzi added them to the gist: https://gist.github.com/nicholaskuechler/a44304e6ae380f21be26970e9fe1402c#file-gistfile1-txt-L69-L13515:18
opendevreviewMerged openstack/keystone master: Add JSON Schema to `services` and validation decorators to services resource.  https://review.opendev.org/c/openstack/keystone/+/92752316:32

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!