Monday, 2018-03-05

*** nicovs_be has joined #ara01:16
*** nicovs_be has quit IRC01:20
*** sshnaidm|ptg has joined #ara06:27
*** sshnaidm|ptg has quit IRC06:31
*** nicovs_be has joined #ara06:35
*** nicovs_be has quit IRC06:40
*** gvincent has joined #ara07:38
*** nicovs_be has joined #ara08:05
*** gvincent has quit IRC08:11
*** gvincent has joined #ara08:11
*** gvincent has quit IRC09:16
*** gvincent has joined #ara09:16
*** njohnston has quit IRC09:19
*** resmo has joined #ara09:19
*** njohnston has joined #ara09:23
*** rvgate has joined #ara09:48
*** rvgate has quit IRC12:13
*** rvgate has joined #ara12:23
*** myoung|ruck|off is now known as myoung|ruck13:27
*** bcoca has joined #ara13:32
*** bcoca has joined #ara13:32
*** rvgate has quit IRC13:35
*** tbielawa has joined #ara13:39
*** hwoarang has quit IRC13:47
*** hwoarang has joined #ara13:47
*** rvgate has joined #ara14:28
*** tbielawa is now known as tbielawa|mtg15:31
*** openstackgerrit has quit IRC15:34
*** rvgate has quit IRC16:30
*** tbielawa|mtg is now known as tbielawa16:41
*** nicovs_be has quit IRC16:52
*** nicovs_be has joined #ara16:58
*** resmo has quit IRC17:02
*** rvgate has joined #ara17:02
*** nicovs_be has quit IRC17:11
*** jrist has quit IRC17:33
*** tbielawa is now known as tbielawa|lunch17:36
*** jrist has joined #ara17:43
*** jrist has quit IRC17:43
*** jrist has joined #ara17:43
*** nicovs_be has joined #ara17:52
*** nicovs_be has quit IRC17:58
*** myoung|ruck is now known as myoung|ruck|food17:59
*** jrist has quit IRC18:14
*** myoung|ruck|food is now known as myoung|ruck18:26
*** harlowja has joined #ara18:49
*** tbielawa|lunch is now known as tbielawa19:00
*** jrist has joined #ara19:09
*** jrist has quit IRC19:09
*** jrist has joined #ara19:09
*** jrist has quit IRC19:14
*** jrist has joined #ara20:16
*** tbielawa has quit IRC21:34
*** myoung|ruck is now known as myoung|ruck|bbl21:41
harlowjadmsimard do u know if ara understands the new loop control 'label' stuffs21:48
* harlowja trying to use that to hide some passwords in kolla-ansible but it seems like ara still gets the full 'item'21:48
dmsimardharlowja: ara doesn't need to understand anything, it just picks up whatever ansible gives it21:50
dmsimardharlowja: (that's the beauty of the thing)21:50
dmsimardharlowja: I remember spamaps asked about a password thing a few days ago21:51
harlowjalol21:51
dmsimardsame thing ?21:51
harlowjaperhaps :-P21:51
dmsimardharlowja: exhibit A http://eavesdrop.openstack.org/irclogs/%23zuul/%23zuul.2018-02-20.log.html#t2018-02-20T18:38:3821:52
dmsimardharlowja: exhibit B http://eavesdrop.openstack.org/irclogs/%23zuul/%23zuul.2018-02-20.log.html#t2018-02-20T21:28:5621:52
harlowjakk21:53
dmsimardharlowja: I'm happy to look if you have a simple reproducer (ideally without kolla_docker)21:53
harlowjaya, making one21:53
dmsimard /maybe/ there's something new that needs to be handled21:53
dmsimardlike somewhere around here https://github.com/openstack/ara/blob/master/ara/plugins/callbacks/log_ara.py#L146-L15921:54
dmsimardwhich calls this: https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/callback/__init__.py#L105-L12521:55
dmsimardwhich calls this: https://github.com/ansible/ansible/blob/devel/lib/ansible/vars/clean.py#L2521:55
harlowjaya, i'm just trying to get https://gist.github.com/harlowja/9cb1e62f2b9da71cc3beafc7acd38161 to work22:00
harlowjait's not supposed to show item.password, lol22:00
harlowjabut it still appears to be doing that ...22:00
dmsimardharlowja: needs no_log: true22:01
harlowjabut i want it to log22:01
harlowjajust not the full item, ,lol22:01
dmsimardthen it depends on the module implementation22:01
harlowjahmmmm, damn22:01
dmsimardI remember bcoca has this optimistic heuristic to try and filter out password fields by default22:02
dmsimard(it's really glorious)22:02
bcocaits mostly a poor attempt to match commonly used 'secret containing' field names, but it really should be done at module/param level using no_log22:03
dmsimardfound it \o/22:03
dmsimardhttps://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py#L17622:03
harlowjahmmmmm22:04
dmsimardharlowja: seriously though, ara picks up whatever the module sends back to ansible -- if you want to filter just one thing, it needs to be handled at the module level22:04
harlowjapoop22:04
bcocabut that only gets applied to module returns and logging, what you do in a debug ... well, its up 2 u22:04
dmsimardharlowja: https://github.com/openstack/kolla-ansible/blob/master/ansible/library/kolla_docker.py#L73922:05
dmsimardbcoca: ^ is that no_log=True in the module spec supposed to make it so that never ends up being printed in the result ?22:05
bcocaharlowja: when using a password= option in a module, we probably obscure that, but we dont have any facility to obscure 'debug' or direct var usage22:05
bcocadmsimard: yep22:05
dmsimardbcoca: hm, I think it doesn't work for them but I've never used that particular module/feature before22:05
bcocawe even had issues with people user=admin password=admin as we scrub the 'no_log value' from all fields22:06
bcocawhich module specifically?22:06
dmsimardthe one I linked above just now22:06
bcocadebug? that has nothing flagged as no_log ... also makes no sense to do so22:06
dmsimardbcoca: you're looking at the wrong link, this is the one: https://github.com/openstack/kolla-ansible/blob/master/ansible/library/kolla_docker.py#L73922:07
bcocano, i just stopped reading at 'generate_module' and immediatly erased rest from memory ...22:07
dmsimardbcoca: don't look at me, I have never touched that code before :p22:08
bcocaauth_password should not be logged by ansible, prior to 2.5 a 'bad callback' could log it, ansible itself will avoid that22:08
dmsimardbcoca: oh? are things scrubbed before making it to the callbacks now ?22:09
bcocayes, since 'scrubbing at callback' was 'optional to callback' and people were complaining their callbacks were seeing secrets ... while they wrote them to avoid teh scrubbing?!?!?22:09
dmsimardbcoca: you should totally add a comment in https://bugzilla.redhat.com/show_bug.cgi?id=1440912 and go like "fixed btw"22:12
bcocai seem to be alergic to rh bugzilla ...22:13
bcocadmsimard: what toshio posted is still true, this is just to avoid 'lazy' cb authors, but not a way to restrict 'private info' from callbacks, they can access this info if they want, we just dont 'give it for free' anymore22:16
harlowjadmsimard  https://review.openstack.org/#/c/549858/ and  https://review.openstack.org/#/c/546467/ (bigger spec) i've been doing/trying22:33
harlowjajust right now running it via our CI, seeing whats in ara ... repeat22:33
harlowjavarious secrets pop out a lot, because i guess people have really been running kolla-ansible via laptops22:34
harlowjaand not via CI (or anything with ara tracking things)22:34
harlowjaso ya, chopping them out as i go...22:35
*** jparrill has quit IRC22:53
*** jparrill has joined #ara22:59
*** openstackgerrit has joined #ara23:13
openstackgerritPaul Belanger proposed openstack/ara master: Update to fedora-27 for testing  https://review.openstack.org/54988223:13
*** jparrill has quit IRC23:33
*** jparrill has joined #ara23:39

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!