Wednesday, 2022-10-26

*** tkajinam is now known as Guest396600:09
*** mhen_ is now known as mhen01:34
*** tkajinam is now known as Guest397201:47
*** tkajinam is now known as Guest398605:43
*** tkajinam is now known as Guest398806:53
fricklerI just saw that barbican is using storyboard. not sure if you are happy with that decision or not, but this thread might be interesting either way https://lists.opendev.org/pipermail/service-discuss/2022-October/000370.html15:30
dmendiza[m]johnsom: correct.  The idea is that `openstack secret delete $SECRET_UUID` will fail if the secret has consumers registered18:24
dmendiza[m]johnsom: There will also be a `--force` flag18:24
johnsomdmendiza[m] So, currently it just deletes it. I'm guessing there are API side patches still needed.18:24
dmendiza[m]so that `openstack secret delete --force $SECRET_UUID` will delete it18:25
dmendiza[m]johnsom: API side is complete, but docs haven't merged yet18:25
dmendiza[m]we're working on client side (which includes the cli) currently18:25
dmendiza[m]as well as castellan support18:25
johnsomUmm, using current master branch, I can delete secrets with consumers, no problem18:25
dmendiza[m]correct, only cli is enforcing delete18:26
johnsomI don't think "force" was implemented in the API18:26
johnsomUmmm, ok, so why CLI only? That means any automation tools using the API can still delete in use secrets18:26
dmendiza[m]I'm not sure ... the spec only defined `--force` for clients https://specs.openstack.org/openstack/barbican-specs/specs/train/secret-consumers.html18:29
johnsomOk. So, would there be push back if that was added to the API?18:29
dmendiza[m]Depends on implementation, I think?  IIRC the main argument was that users should be able to delete a secret no matter what since they own it.  There was concern that having to hunt down all the registered things before deleting was bad ux18:32
dmendiza[m]but I don't know if we talked about adding a `force` flag or parameter or whatever to the api18:32
johnsomYeah, I am fine with the --force flag and implementing it as a header or something in the API. I'm just a little concerned about our friends like Terraform that tend to be aggressive at deleting things accidentally bypassing the "are you sure" check.18:33
dmendiza[m]ade_lee is out on holiday the rest of the week, unfortunately so we'll have to wait for his input18:33
johnsomAh, ok, so he would be a good person to discuss this with. Sounds good.18:34
johnsomI'm implementing the Octavia side and finding some issues, this was one of them.18:34
dmendiza[m]cool, yeah, we've got the plumbing to do microversions now18:34
dmendiza[m]so modifying the DELETE call shouldn't be an issue18:34
johnsomIt's a bummer I couldn't get started on this before the PTG where we could have talked about it. But, schedules....18:35
dmendiza[m]it would probably be good to write a spec for this18:36
johnsomWell, before that, I am really curious why the current spec says client side only.18:37
dmendiza[m]Not sure ... possibly because we assumed most folks would be using a client (python-barbicanclient/castellan/cli) and folks consuming the API directly would get the footgun18:39
dmendiza[m]or maybe it was backwards compatibility concerns? ... since we couldn't version APIs yet and we didn't want to make a `v2/` just yet18:40
johnsomdmendiza[m] One more question, do you think it would be ok if I posted fixes on this patch: https://review.opendev.org/c/openstack/python-barbicanclient/+/85595218:43
johnsomOr should I wait for the author18:43
johnsom?18:44
dmendiza[m]johnsom let me check with Mauricio in the AM18:47
dmendiza[m]johnsom: OP for that patch is a new team mate on my team18:47
johnsomOk, thanks. Wasn't sure if they were still active, etc. Different teams handle it in different ways18:47
johnsomAh, cool18:47
dmendiza[m]frickler: thanks for the heads up, I'll add that to the next weekly meeting agenda18:57

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