15:00:00 #startmeeting craton 15:00:00 Meeting started Mon Nov 21 15:00:00 2016 UTC and is due to finish in 60 minutes. The chair is jimbaker. Information about MeetBot at http://wiki.debian.org/MeetBot. 15:00:02 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 15:00:04 The meeting name has been set to 'craton' 15:01:22 #topic roll call 15:04:03 Here-ish 15:04:10 palendae, o/ 15:04:14 o/ 15:04:56 hope everyone is having a great monday after the weekend. also just a quick reminder: no vidyo meeting this thanksgiving ;) 15:05:22 (thurs for those not in the US) 15:06:03 just waiting on sulo at this point, but he's online, so he will have the log 15:06:29 #topic plans for the week 15:06:46 it's a short week. but hopefully good progress 15:07:06 i will start 15:07:20 sulo, sigmavirus - i need a review of https://review.openstack.org/#/c/399305/ 15:07:49 this is the predecessor change for adding support for virtualized variables 15:08:30 (which will simply work by registering new objects in the resolution_order) 15:09:01 so more of a plugin scheme than anything else 15:09:19 also on friday i made good progress on rbac modeling, so should have that written up real soon now 15:09:49 lastly i will send out the roadmap this week, after working on it with dusty 15:10:53 we can dive into the details of all three after this part of the meeting 15:11:00 sigmavirus, what about your forthcoming week? 15:12:41 This week is looking busy for me, 15:12:50 But I have some work queued up around the roadmap and client 15:14:01 sigmavirus, maybe a good week to be busy, depending on if any travel plans (i have none, so easy for me) 15:15:19 ok, this could be a super short meeting today. which is fine 15:15:36 #topic rbac 15:16:08 sigmavirus, so i spent some time reviewing my notes on rbac from the summer; and going through oslo.policy details 15:17:05 okay 15:17:08 right now, i'm planning to implement a mixin for our sqlalchemy objects such that a polymorphic association is created between a given object and a role 15:18:08 if some ancestor object has that role, this implies the object has the role. self of course is implicit 15:18:53 i believe it should just all work. but let's see in a forthcoming blueprint + change(s) to be reviewed 15:19:01 hm, so, for policy work I'd think we'd want to have some constraints that can't be enforced with polymorphic associations 15:19:24 having foreign key constraints would mean it'd be harder for a malicious admin to manipulate role data 15:19:25 sigmavirus, i would assume said constraints go in a policy.json file 15:19:42 ahh, different constraints 15:19:55 yeah, what goes into a policy.json file is a rule 15:20:00 (or a collection of rules) 15:20:04 so polymorphic association actually does the fk stuff 15:20:10 (at least that's how we talk about them usually) 15:20:46 so I was under the impression you couldn't enforce foreign key constraints with polymorphic associations 15:20:49 sigmavirus, right, for deriving roles from other roles. hence my confusion re "constraints" (which is somewhat loaded) 15:21:03 sigmavirus, no that's the beauty of doing polymorphic associations correctly 15:21:28 * sigmavirus isn't a db expert, hence why I'm asking :) 15:21:29 in particular, this is how we implement variables 15:22:39 one question is: are we just redoing the variable machinery? i don't believe so. also there's something to be said in the relational model of making relationships be explicit, vs implied through code 15:22:54 variables are fantastic. not everything should be a variable 15:23:53 So, I just worry that if an operator needs to start debugging craton at the db layer, this is going to be as clear as mud to them what's happening 15:24:00 sigmavirus, old post by mike bayer on this subject - http://techspot.zzzeek.org/2007/05/29/polymorphic-associations-with-sqlalchemy/ 15:24:24 And I'm worried we're reaching for polymorphic associations a lot, almost as though everything's a nail we can fix with that hammer 15:24:53 sigmavirus, that's a good point. but that sounds like a doc issue to me 15:25:26 i see it is an inherent when we want to apply a common sort of approach to our code 15:26:13 we have certainly embraced the polymorphic approach in our modeling. i think it has worked well in terms of its modeling elegance 15:26:42 * jimbaker is planning to propose a sqlalchemy topic for pycon, fwiw 15:26:52 s/topic/talk/ 15:28:14 sigmavirus, the flip side is that not having duplicated code probably means greater robustness. the only place where a bug has arisen in variables to my knowledge is where we duplicated code 15:28:42 hence the refactoring patch i proposed for resolution_order :) 15:28:44 okay, just making sure we're taking a step back and introspecting :) 15:28:56 sigmavirus, hey, that's the point of the review process 15:29:21 nothing is going to get just dumped in to the project 15:31:36 sulo, around? 15:32:56 sigmavirus, i think we can just end the meeting early 15:33:07 jimbaker: works for me :) 15:33:30 cool. i will sync up with syed, jovon, sulo later 15:33:39 #endmeeting