Tuesday, 2021-08-10

opendevreviewAbhishek Kekane proposed openstack/glance master: Move member policy checks to API layer  https://review.opendev.org/c/openstack/glance/+/80299605:54
opendevreviewAbhishek Kekane proposed openstack/glance master: Cache API endpoints  https://review.opendev.org/c/openstack/glance/+/79202206:18
opendevreviewAbhishek Kekane proposed openstack/python-glanceclient master: Add support for Cache API  https://review.opendev.org/c/openstack/python-glanceclient/+/80017209:59
abhishekkdansmith, please have look when you have free time, https://review.opendev.org/c/openstack/glance/+/803937 (important change)10:05
opendevreviewRajat Dhasmana proposed openstack/glance_store master: Add volume multiattach handling  https://review.opendev.org/c/openstack/glance_store/+/78641011:10
*** lbragstad__ is now known as lbragstad13:35
opendevreviewRajat Dhasmana proposed openstack/glance master: Fix: glance cinder functional test  https://review.opendev.org/c/openstack/glance/+/80409013:55
whoami-rajat__abhishekk, dansmith hey, can you take a look at the change above ^, it is a one liner and breaking gate on my multiattach feature work14:05
abhishekkwhoami-rajat__, ack, will look shortly14:06
whoami-rajat__thanks abhishekk 14:06
*** whoami-rajat__ is now known as whoami-rajat14:06
dansmithwhoami-rajat: done14:09
whoami-rajatthanks dansmith 14:10
opendevreviewDan Smith proposed openstack/glance master: Add check_is_image_mutable() legacy helper  https://review.opendev.org/c/openstack/glance/+/80377614:50
opendevreviewDan Smith proposed openstack/glance master: Check delete_image policy in the API  https://review.opendev.org/c/openstack/glance/+/79807314:50
opendevreviewDan Smith proposed openstack/glance master: POC: Check deactivate, reactivate policy in the API  https://review.opendev.org/c/openstack/glance/+/79826614:50
opendevreviewDan Smith proposed openstack/glance master: Check delete_image policy in the API  https://review.opendev.org/c/openstack/glance/+/79807315:11
opendevreviewDan Smith proposed openstack/glance master: POC: Check deactivate, reactivate policy in the API  https://review.opendev.org/c/openstack/glance/+/79826615:11
dansmithabhishekk: croelandt sorry I hadn't seen the comments on the delete patch when I pushed earlier15:11
abhishekkdansmith, no problem15:11
abhishekkalso, if you could please have a look at some of my patches15:12
dansmithabhishekk: yep, I have them up15:12
abhishekkcool, thank you15:12
dansmithjust trying to process my review email backlog in order15:13
abhishekkno worries, take your time15:14
opendevreviewMerged openstack/glance master: Fix: glance cinder functional test  https://review.opendev.org/c/openstack/glance/+/80409015:31
croelandthttps://review.opendev.org/q/I9356bceb914327f526da7b727fa58522ae18856e <- I don't have +2 rights on stable/*, but this looks like a nice & easy series of backports by jokke_ 15:55
abhishekkdansmith, going to make changes in admin APIs as well17:28
dansmithabhishekk: I'm really not trying to be difficult17:28
abhishekkno it makes sense, I was going to do it as follow up later, but its better to do it now17:29
dansmithoh you were? I thought you just meant that we never need to check this because they're admin-only17:29
abhishekkyeah, I forgot to add comment there and under impression that I have a comment there17:30
dansmithhmm, okay17:31
abhishekkhopefully will be ready by tomorrow this time17:32
dansmithwell, it seems really confusing to admins to me to say "this is admin by default, and there are other knobs to be fine-grained about objects, tags, etc, but the API won't behave as you expect if you let people do the top-level thing but not the low-level thing"17:32
dansmithif we have private namespaces, even if admin-only created,17:32
dansmithbut a user can still call the modify or delete and probe for 404/403 then we're exposing stuff17:33
abhishekk+117:33
dansmithmaybe I didn't make that clear in my comment, but on your L404, for example, even if I can never run update() on a namespace, I can *try* and if I get 404, it really doesn't exist, but if I get 403, I know it exists, yeah?17:34
abhishekkyes17:35
opendevreviewMerged openstack/glance master: Refactor gateway auth layer for metadef APIs  https://review.opendev.org/c/openstack/glance/+/79963217:48
abhishekk\o/ first of my patch in refactoring 17:49
opendevreviewAde Lee proposed openstack/glance master: DNM: Add fips check jobs  https://review.opendev.org/c/openstack/glance/+/79053618:15
ade_leerosmaita, ping18:22
rosmaitaade_lee: hello18:23
ade_leerosmaita, actually - I was just thinking that what I was going to ask about is a slightly longer conversation than we could have on irc.18:24
ade_leeI might just post this to you guys mailing list instead 18:24
rosmaitaok, sounds good18:24
ade_leewhats the mailing list for glance?18:25
opendevreviewMerged openstack/glance master: Add check_is_image_mutable() legacy helper  https://review.opendev.org/c/openstack/glance/+/80377618:25
rosmaitaopenstack-discuss, but with [glance] in subject line18:25
ade_leeyeah ok -- I'll post something up and then we can discuss further.  18:25
rosmaitathanks!18:26
opendevreviewMerged openstack/glance master: Check delete_image policy in the API  https://review.opendev.org/c/openstack/glance/+/79807318:46
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef namespace policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963318:51
abhishekkdansmith, ^^, working on others18:52
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef object policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963419:18
dansmithabhishekk: you're going to hate me19:35
abhishekkno19:35
abhishekkbut you might, I think I was right to show forbidden in delete and update call19:36
abhishekkreason is;19:36
abhishekkget call is open to all 19:36
abhishekkwhich means user can see public namespaces in the list or show call19:37
abhishekkand now when he tries to update or delete anything from that list, he will get not found19:37
dansmithright, you need to do what I did, which is check to see if the user can see the namespace to decide 403/404 right?19:37
abhishekk:D19:38
dansmithleft comments, but it seems like the first list_metadef check is inconsistent with the rest19:39
dansmiththe others look good if you're going to keep the "inner" checks I think, like doing the checks upfront in create, that's ++19:39
dansmithbut you are doing the list_ check a bunch of times, always the same result, and throwing away the result with just a debug log, and a debug log that we normally do before we return a 40319:40
dansmithat first, I thought you meant to do that check and do something, but then I saw your comment about ignoring the result19:40
dansmithit's late there, so if you want to pick this up tomorrow morning, we can jump on a voice chat or something too19:41
abhishekkno worries, I think i will stick with the old behavior and then we can enhance it later19:43
dansmithI think I have lost track of what the old behavior is.. keep the list_metadef_resource_types check and use that to return an empty list?19:44
opendevreviewMerged openstack/glance stable/wallaby: Revert "Remove all usage of keystoneclient"  https://review.opendev.org/c/openstack/glance/+/80010119:44
*** lbragstad_ is now known as lbragstad19:45
abhishekkdansmith, I think I need to check as well, but I guess you are stating it correct19:46
dansmithokay I think that if you make that one change, then this patch is otherwise fine (aside from the 403/404 thing) because you're still checking and enforcing all the knobs in the other calls, AFAICT19:47
abhishekkack19:49
abhishekkwill confirm the old behavior and the sign out for the day19:49
dansmithokay, sorry again19:49
abhishekkno worries19:50
dansmithtomorrow as soon as I'm on we should sync up, validate this and get it merged to stop the bleeding19:50
abhishekk:D19:50
abhishekkI guess members patch also I need 403/404 thing19:51
dansmithprobably19:55
abhishekkold behavior: if I disable list_resource_types then it is giving me 403 response19:55
abhishekkHTTP 403 Forbidden: You are not authorized to complete list_metadef_resource_types action.19:55
dansmithyeah, so, per my most recent comment,19:57
dansmithI was thinking this was per-namespace, but it's not,19:57
dansmithso you just need to check this once before the for loop right?19:57
abhishekkyes19:57
abhishekkand I think will persist with old behavior 19:58
dansmithand I guess if the old behavior is to just 403, then keeping that is fine, although it was probably not intentional and just a result of the proxy layer stuff19:58
abhishekk++ that's why I opted to make it correct19:59
dansmithyeah19:59
dansmithwell, I'm fine with making it correct too, it just seems like we only need to check it once :)19:59
abhishekkbut we probably need a reno to mention old vs new behavior, so better to do it later 19:59
dansmithyeah19:59
dansmithsounds good19:59
abhishekkSo if time permits I will do it later or next cycle20:00
* dansmith nods20:00
abhishekkme signing out for the day21:01
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef namespace policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963321:58
abhishekkdansmith, ^^^ when you have time, will work on others tomorrow21:59

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