Wednesday, 2025-08-06

gmaansean-k-mooney: amoralej: dviroel: I need your opinion on SRBAC in watcher policies. As most of those are admin only APIs, do you think any of those APIs (GET APIs) make sense and no security risk to add personas reader, manager as default ? https://github.com/openstack/watcher/tree/master/watcher/common/policies 00:30
gmaanbackground: As SRBAC goal champion, I am going to start the ML thread on what all project not completed the SRBAC goal - this list https://etherpad.opendev.org/p/rbac-goal-tracking#L4100:32
gmaanand before sending email for watcher I would like to know if anything we need to do for watcher or it is mostly admin only and no work needed00:32
amoralejgmaan, IMO, in current status of watcher, for the read role the only use case may be to read ActionPlans for efficacy indicators, for some kind of reporting or metrics gathering although that use case probably would deserve a better approach07:07
amoralejalso, in some case, that can disclose internal details about the cluster, number of vms, number of compute nodes, etc... which I'm not sure if are accepted for a reader persona07:07
amoralejfor manager (in project scope), i think there is not use case at this point. We have discussed in the past how to make watcher useful for non-admin at high level but that we didn't start a real work for it07:09
amoralejsean-k-mooney and dviroel may have other ideas about it07:10
sean-k-mooneygmaan: so in general not in the short term. 10:28
sean-k-mooneygmaan: we may support the manager role in a cycle or two10:28
sean-k-mooneyim not sure the reader role makes sense for the current apis without careful consdiertion of how to do project scope enforcement.10:29
sean-k-mooneygmaan: it is something i have been thinking about on an off in the background but its very similar to placement with regard to SRBAC most api are not suitable to allow acess to non admins10:30
sean-k-mooneywe have dicussed briefly allowing some of the striagies to be used as teh manager role now that nova supprot that for some move operations but currently there isnt a greate candiate since they all effectivly need knowlage of the host infra or are not scoped to only the resouce of a single project so we woudl have a lot of work in watcher to do first before that is a good10:32
sean-k-mooneyfit10:32
amoralejdviroel, wrt https://review.opendev.org/c/openstack/watcher/+/956198 i left a comment, it's probably worthy to discuss tomorrow in the meeting14:40
dviroelamoralej: ack, yes, make sense to have a discussion about that14:50
dviroelamoralej: added to meeting etherpad14:53
dviroeltks for your review14:54
amoralejcool, thanks14:54
sean-k-mooneywe probaly should make the stragies use the model14:57
sean-k-mooneybut im ok with catching and handelign the excption as an inital step14:57
sean-k-mooneywe can do the performace optimization later14:57
sean-k-mooneyboth are valid in my opion14:57
sean-k-mooneybut sure lets dicuss it more tomorrow14:58
amoralejdon't block for discussing if it looks good for you, i didn't -1 because i was not clear and managing exception looks like a good thing anyway and short term fix15:04
opendevreviewMerged openstack/watcher master: Configure watcher tempest's microversion in devstack  https://review.opendev.org/c/openstack/watcher/+/95638015:27
opendevreviewMerged openstack/watcher master: Extend decision engine to support threading mode  https://review.opendev.org/c/openstack/watcher/+/95225715:38
gmaansean-k-mooney: amoralej ok, as reader role is not needed, I will remove watcher from phase-1 list but keep it for manager role (phase-3) which can be decided once you fialize that. no hurry.  15:49
gmaanthanks15:49
amoralejthanks gmaan15:50
sean-k-mooneygmaan: its not no. it coudl have a rhoele if and only if we suprpoted somethign like system scope, even then its value is limited15:52
sean-k-mooneyif we add manager in the future we will likely add reader for resoces a manager is allwoed to create15:53
gmaansean-k-mooney: system scope. humm ? but how will that work when nova or other service reject that. I am just recalling how we faced the issue with system scope in heat and nfv use case and then dropped it15:53
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Add patch call validation based on allowed_attrs  https://review.opendev.org/c/openstack/watcher/+/95599915:53
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Add parameters to force failures in nop action  https://review.opendev.org/c/openstack/watcher/+/95581315:53
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Add `status_message` column to Actions, Audits and ActionPlans tables  https://review.opendev.org/c/openstack/watcher/+/95474515:53
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Skip actions automatically based on pre_condition results  https://review.opendev.org/c/openstack/watcher/+/95474615:53
opendevreviewAlfredo Moralejo proposed openstack/watcher master: API changes for skipped actions: patch actions and status_message  https://review.opendev.org/c/openstack/watcher/+/95575315:53
opendevreviewAlfredo Moralejo proposed openstack/watcher master: Add `status_message` to objects and notifications  https://review.opendev.org/c/openstack/watcher/+/95670515:53
sean-k-mooneygmaan: that part of why i said it woudl have little value15:54
gmaansean-k-mooney: reader for manager resources make sense15:54
gmaanohk15:54
sean-k-mooneygmaan: i only know of like 3 apis that would make sense to even consider system scope enforcement15:54
sean-k-mooneyspecficilly the api for ookign at the model details15:54
sean-k-mooneythat is a system scope like thing15:55
sean-k-mooneysimilar to the hyperviors api but i dont think system scope as a good idea in the first place15:55
sean-k-mooneyso im not planning to push the project in that direction in the future15:55
gmaanyeah, it can make things complicated and need watcher to pass project scoped token to nova or so15:55
sean-k-mooneyif we ever allow someone with manager or member to create ann audit or action plan that is scope to there resouces we can expore reader as part of that spec15:57
sean-k-mooneyfrom phase 2 i do think it makes sense for watcher ot propelry supprot and use the service role15:57
opendevreviewAlfredo Moralejo proposed openstack/watcher-tempest-plugin master: Add api test for skip action  https://review.opendev.org/c/openstack/watcher-tempest-plugin/+/95577515:58
sean-k-mooneyi dont know what that entails yet, we may not actully need any code changes in watcher15:58
sean-k-mooneyi.e. if you confire the user whater has with only the service role im not sure if nova will allow it to do a live migration15:59
sean-k-mooneygmaan: part of auditing this and connecting the dots will be undersanding if the the applier is always usign tokens generated form its config or if it ever uses oen form the user that created the action plan16:00
sean-k-mooneyi think its alwasy form config so its alwys usign the roles related to the user created externally16:00
sean-k-mooneyi.e. the user created when watcher was installed16:00
gmaanwell, if watcher calling Nova user facing APIs like live migration then user token can be used and service token can be mapped just nova to know it is from service call16:00
sean-k-mooneyit could but i dont think it does today16:01
gmaanthat reminds me to start work on service role for nova and we can show some example of hoe those should be called as part of tempest or other service like cinder as first16:01
sean-k-mooneyalot fo that was coded before service_uers were really a thing16:01
gmaanyeah, we need to change those across all most all services16:01
sean-k-mooneygmaan: next cycle im hoping to work on moving watcher to using the sdk instead of project client16:02
sean-k-mooneyi will proably look at some of this as part of that but thats tbd16:02
gmaan++16:02

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