15:01:07 #startmeeting keystone 15:01:07 Meeting started Tue Aug 23 15:01:07 2022 UTC and is due to finish in 60 minutes. The chair is dmendiza[m]. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:01:07 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 15:01:07 The meeting name has been set to 'keystone' 15:01:17 #topic Roll Call 15:01:26 Courtesy ping for admiyo, bbobrov, crisloma, d34dh0r53, dpar, dstanek, hrybacki, knikolla, lbragstad, lwanderley, kmalloc, rodrigods, samueldmq, ruan_he, wxy, sonuk, vishakha, Ajay, rafaelwe, xek 15:01:55 o/ 15:02:02 o/ 15:02:05 o/ meeting conflict so lurking 15:02:12 o/ 15:02:28 Hi everyone! 15:02:33 Let's get started 15:02:48 As usual the agenda is over here: 15:02:51 #link https://etherpad.opendev.org/p/keystone-weekly-meeting 15:03:06 #topic Review Past Meeting Action Items 15:03:14 #link https://meetings.opendev.org/meetings/keystone/2022/keystone.2022-08-16-15.01.html 15:03:18 We didn't have any 15:03:38 Moving on ... 15:03:49 #topic Liaison Updates 15:04:39 Zed-3 milestone is next week: 15:04:41 #link https://releases.openstack.org/zed/schedule.html#z-3 15:05:04 We should definitely try to land all we can before then. 15:05:09 Which is a nice segue into 15:05:18 #topic OAuth 2.0 15:05:44 We should try to land the outstanding patches that have been in review for a while 15:05:50 before Z-3 15:06:02 hopefully knikolla will be around for the reviewathon 15:06:13 the last one was not very productive without him 😅 15:06:37 h-asahina: any updates this week? 15:07:15 as dmendiza say, please kindly review the remaining patches :) 15:07:26 i will be around for the reviewathon 15:07:41 and will try to catch up on everything i missed before then 15:07:46 knikolla: awesome! 15:07:52 I'll try to do some pre-reviewing before then 15:07:59 thanks. I'd really appreciate that. 15:08:33 knikolla: if you have time today, i'd like to discuss my comments on the spec 15:08:38 https://review.opendev.org/c/openstack/keystone-specs/+/843765 15:09:13 https://review.opendev.org/c/openstack/keystone-specs/+/843765/comments/80f8ff28_abd70078 15:09:33 might be better to paste the link of the comment. 15:11:32 i have two questionts as I wrote in the above comment: i) delegation of user's permission to OAuth2.0 client; ii) usage of the existing federation mapping API. 15:11:46 for 1, we only have 2 mechanisms for only providing a subset of access. 15:11:52 application credentials and trusts 15:12:24 this is not something that the credential api is able to provide and would need to be changed to offer that 15:13:36 for 2, yes. that matches my thoughts. you'd register a federation mapping with your mapping rule and use it when authenticating. 15:14:21 for 2, I think we also have an option that writing mapping to keystone.conf 15:14:33 like: [oauth2] 15:14:35 dn_mapping_user_id=UID 15:14:37 dn_mapping_user_name=CN 15:14:39 dn_mapping_user_email=emailAddress 15:14:41 dn_mapping_user_domain_id=DC 15:14:43 dn_mapping_user_domain_name=O 15:15:10 this must work 15:15:41 yes, however that type of configuration locks you into only being able to support one CA 15:16:26 if we assume the different CA have different mapping rules, yes. 15:17:13 if we use mapping API, we have to specify mapping_id to use in any case. 15:18:53 so we have to specify a specific mapping_id in somewhere 15:19:25 with mappings you'd have: one mapping rule, one identity provider (with the issuer url), and one federation mapping, mapping a rule with an idp 15:19:45 this is what connects it together 15:20:22 I see 15:20:47 it more flexible than directly writing the mappings in the .conf, like you said. 15:21:01 we're already integrating keystone with openid connect, oauth2.0 and saml identity providers. I don't see why this should be different, except for providing the same mechanisms but protected from a cert via mTLS. 15:21:42 but I'm also concerned that user shouldn't have to have a permission to change this rule. 15:22:28 this can only be changed from the administrator/operator 15:22:46 changing rules requires admin 15:23:23 if we use .conf, only the cloud admin who can ssh into host machine can change the config 15:23:29 i'm fairly sure you can currently authenticate using OAuth mTLS using federation, today. 15:23:34 without any changes to keystone. 15:24:34 you meant, with mapping API? 15:24:57 yes. 15:25:21 I agree with that we can realize OAuth mtls by such way. 15:25:23 but 15:25:42 we already support authenticating via apache, apache supports authenticating via mTLS, we can give you a token based on the attributes that apache gives passing them through a mapping 15:25:49 the only mechanism that is missing is tying a token to a cert. 15:26:13 like I said if we want to make this more secure, writing mapping to .conf can be an option 15:26:29 only a person with the global admin can change mapping rules 15:26:36 this won't make it any more secure than that 15:27:14 normally, the cloud admin and the admin user of keystone are different. 15:27:50 the clould admin who build the openstack environment have stronger permission than the any users created by openstack. 15:28:22 but anyone who has admin access to keystone can create all the users they want, so i don't see the added level of protection you're getting here 15:29:32 okey. that's true. permission for changing mapping rules and that for creating users is the same things in terms of security level. 15:30:57 indeed. I'm convinced. 15:31:45 thanks. I need to clarify that our choice would be a better option than the others. that's why I asked. 15:31:49 I can try to build out a demo this week and see how far I can get with the current mapping mechanisms trying to authenticate with mTLS using OAuth in Keystone 15:32:04 and you can tell me if that works for you or goes against your use case 15:32:42 from that, it shouldn't be hard to just add the thumbprint to tokens received via that type of authentication and add that extra check on the thumbprint 15:33:10 awesome. thank you. 15:33:35 yeah, I also think it shouldn't be hard. 15:34:00 👍️ 15:34:43 I'll recheck the spec and update if it's necessary 15:34:56 ah, sorry, for 1 15:35:18 if we want to delegate user's permission is there any option to realize that? 15:35:33 yes, i think you should look into trusts 15:35:40 i think they give you what you're looking for 15:36:28 okey. I briefly checked it. certainly, it looks the solution. 15:36:29 when a user requests a cert to your CA, you can create a new user for the cert, delegate the roles on that project from the requesting user to the new user, and create a Cert for that user instead 15:38:02 trusts even have an "impersonation" flag that makes it look like all operations from that user were done but the trustor 15:40:05 I see. it looks enough. we originaly thought use the user's (truster) credentials when issuing the token for the client created by user. 15:40:53 but looks the "trust" realize that in more natural way. 15:41:28 yeah, clients are just a slightly different type of user semantically 15:41:58 unfortunately in keystone we can only deal with users at the moment, and not have special types :) 15:42:16 got it. whether using this feature as a fundamental requirement to use OAuth2.0 or not is another discussing point, but I think it's enough that we can realize delegation, for now. 15:42:50 yeah, i think it should work 15:43:25 if there was more of us, i'd be more than happy to try to rethink new concepts and build clients/users/service account/vm account/etc into the APIs that keystone provides. 15:44:28 I eager that 15:44:48 but then the rest of openstack would kill us, and still use v3 until the end of times 15:44:51 haha 15:45:07 yeah, I know the current keystone isn't, and hard to change it. 15:45:40 alright. my question was resolved. thank you very much knikolla :) 15:46:46 thank you :) 15:47:12 awesome, sounds like we've got a good path forward 15:47:21 Anything else before we move on? 15:48:06 from me, no. it's okey. 15:49:04 OK, lets see if I can cover some Secure RBAC in the rest of the time 15:49:06 #topic Secure RBAC 15:49:19 I was reviewing the latest changes to the community goal: 15:49:27 #link https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html 15:49:35 Looks like Phase 1 changed for us to: 15:49:47 > 1. Remove the scope string (system:all) from the policy rule check_str. 15:49:56 > 2. Add the project in scope_type in every policy rule. 15:50:29 For 1, I don't quite understand what "system:all" does in the policy rules? 15:51:33 gmann: ^^ 15:51:46 There's a note about it in the base policy: 15:51:50 #link https://opendev.org/openstack/keystone/src/commit/1dd6993d7b9b647810e6f495b62c37627c6e8658/keystone/common/policies/base.py#L35-L46 15:52:10 seems it's there to prevent situations where the new rules are more premissive 15:52:24 dmendiza[m]: knikolla: that was added to protect the project reader to behave as system reader when scope is disabled 15:52:52 that was needed until enforce_scope become true by default 15:53:40 Wouldn't that still be an issue if we remove it? 15:54:11 Or should we default enforce_scope=True to avoid that issue? 15:55:36 gmann: ^^ 15:55:49 actually we are opening the policy for project scope too so it is not issue any more because with enforce_scope true or false, project reader should be able to access those 15:56:27 new direction is, project and system reader both should have access. those are not system only things anymore 15:57:29 Ah right :) 15:57:32 means if anyone already or will try to access system reader API they should continue able to do that. and our legacy way with project token can also continue the access 15:58:09 we want everything as project scoped in other services like nova etc but in keystone letting both token work 15:58:20 And for admin, the project level thing is manager. So scope is not an issue here either eventually. 15:58:28 yeah 15:58:43 Thanks gmann 15:58:43 I see ... 15:59:04 next week or sometime I should be able to push the change and you can verify how it looks like 15:59:15 gmann: sounds good. 16:00:13 Alrighty, y'all. That's all the time we have scheduled for the meeting 16:00:16 thanks for joining! 16:00:19 #endmeering 16:00:23 #endmeeting