Thursday, 2022-02-03

-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 827574: Add stats to web server https://review.opendev.org/c/zuul/zuul/+/82757400:09
@jim:acmegating.comthanks, i'll go back through all 3 changes and address the tests00:09
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:00:20
- [zuul/zuul] 827540: Explicitly close finger sockets in web https://review.opendev.org/c/zuul/zuul/+/827540
- [zuul/zuul] 827564: Identify cherrypy requests in logs https://review.opendev.org/c/zuul/zuul/+/827564
- [zuul/zuul] 827574: Add stats to web server https://review.opendev.org/c/zuul/zuul/+/827574
-@gerrit:opendev.org- Ian Wienand proposed: [zuul/nodepool] 827577: Bump Openshift test to Fedora 35 https://review.opendev.org/c/zuul/nodepool/+/82757700:23
-@gerrit:opendev.org- Zuul merged on behalf of Alfredo Moralejo: [zuul/zuul-jobs] 826603: Add CentOS Stream 9 to configure-mirrors role https://review.opendev.org/c/zuul/zuul-jobs/+/82660301:00
-@gerrit:opendev.org- Zuul merged on behalf of daniel.pawlik https://matrix.to/#/@dpawlik:matrix.org: [zuul/zuul-jobs] 827067: Change RDO train repository for Centos 8 stream https://review.opendev.org/c/zuul/zuul-jobs/+/82706701:00
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 827574: Add stats to web server https://review.opendev.org/c/zuul/zuul/+/82757401:14
@jim:acmegating.comokay i think they should all pass now01:14
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 827574: Add stats to web server https://review.opendev.org/c/zuul/zuul/+/82757401:30
-@gerrit:opendev.org- Ian Wienand proposed:05:39
- [zuul/zuul-jobs] 827588: ensure-sphinx: Use python3 https://review.opendev.org/c/zuul/zuul-jobs/+/827588
- [zuul/zuul-jobs] 827589: ensure-virtualenv: Don't support on CentOS 9-stream https://review.opendev.org/c/zuul/zuul-jobs/+/827589
@tobias-urdin:matrix.orgfinally upgraded to zuul 5.0.0 - works great, just have one small issue, maybe it has something to do with us running Gerrit 3.5.0.1 - zuul_return with data.zuul.log_url doesn't make the URL clickable in Gerrit anymore, maybe I've missed something here?09:02
@avass:vassast.orgNoticed that ready static nodes doesn't seem to show up in the zuul dashboard anymore. anyone know why?10:09
@avass:vassast.orgLooks like the user_data check fails since that field is null for ready static nodes:10:35
https://opendev.org/zuul/zuul/src/branch/master/zuul/web/__init__.py#L1187
@avass:vassast.organd I just found out about the metastatic driver... which doesn't show up in the published documentation :)10:52
@ekapoun1:matrix.orgHello, just wondering if there are any plans to implement some sort of secret anonymization in Zuul logs? Akin to Jenkins anonymizing credentials in logs with asterisks?11:04
@tobias-urdin:matrix.orgignore above, I forgot to set web.status_url11:09
@avass:vassast.orgekapoun1: I don't think there is any plan to implement that at the moment. But you could implement that quite easily yourself if you need it, all you need to do is to run a role before the log upload log to remove all secrets.11:48
@avass:vassast.orgthat doesn't cover the log stream however11:48
@avass:vassast.orgAnother way to do it is to implement your own ansible module and mark an input to the module with `no_log: true` which will make ansible filter the secret in the output11:50
@avass:vassast.orgekapoun1: for example: https://review.opendev.org/plugins/gitiles/zuul/zuul-jobs/+/refs/changes/08/764808/75/roles/zuul-cache-s3/library/zuul_cache_s3_urls.py#9711:55
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/zuul] 827665: Only delete bundle items that aren't in ANY queue https://review.opendev.org/c/zuul/zuul/+/82766513:47
-@gerrit:opendev.org- Rodion proposed: [zuul/zuul-jobs] 827682: Implement role https://review.opendev.org/c/zuul/zuul-jobs/+/82768215:01
-@gerrit:opendev.org- Rodion proposed: [zuul/zuul-jobs] 827685: Implement ensure-foreleaser role https://review.opendev.org/c/zuul/zuul-jobs/+/82768515:03
-@gerrit:opendev.org- Rodion proposed: [zuul/zuul-jobs] 827686: Implement ensure-goreleaser role https://review.opendev.org/c/zuul/zuul-jobs/+/82768615:07
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/zuul] 827665: Only delete bundle items that aren't in ANY queue https://review.opendev.org/c/zuul/zuul/+/82766515:24
@avass:vassast.orgcorvus: I think an old change of yours broke the node dashboard a bit: https://opendev.org/zuul/zuul/commit/aee6ef6f7f93c3c1dccd0576165d71ac1eecd13e :)16:05
@avass:vassast.orgnodes in-use show up in the dashboard since `user_data` gets set here: https://opendev.org/zuul/zuul/src/commit/aee6ef6f7f93c3c1dccd0576165d71ac1eecd13e/zuul/nodepool.py#L33016:06
@avass:vassast.orgor is it intentional to only show held and in-use nodes? Since ready and building still show up in nodepools api16:07
@clarkb:matrix.org> <@avass:vassast.org> Another way to do it is to implement your own ansible module and mark an input to the module with `no_log: true` which will make ansible filter the secret in the output16:16
I think relying on `no_log` is what we expect most users to do. Ansible does a lot of work to scrub inputs and outputs that are no_log'd.
@jim:acmegating.comAlbin Vass: i believe those changes reconcile the fact that zuul shows a tenant view of the world, so the node list shows nodes that are currently assigned to that tenant (and therefore avoids leaking information about other tenants)16:35
@jim:acmegating.comAlbin Vass: i could see us altering that to also include (ready+no tenant) nodes, though that's still a small information leak16:36
@jim:acmegating.comit's worth considering at least.  i certainly see the utility16:36
@avass:vassast.orgcorvus: yeah makes sense to only expose that info with nodepool in that case16:36
@avass:vassast.orgnot anything I need, just noticed changed behaviour that I'm used to :)16:37
@fungicide:matrix.orgout of curiosity, does anyone happen to know how jenkins implements its aforementioned credential redaction feature? in particular, how does it know what should be redacted? is it pattern-based (looking for knows ways sensitive information can be presented in logs) or explicitly instructed as to which strings should be replaced?16:41
@fungicide:matrix.org * out of curiosity, does anyone happen to know how jenkins implements its aforementioned credential redaction feature? in particular, how does it know what should be redacted? is it pattern-based (looking for known ways sensitive information can be presented in logs) or explicitly instructed as to which strings should be replaced?16:41
@clarkb:matrix.orgfungi: I believe it does it for the secrets it manages. So it explicitly looks for the strings it knows are secret and replaces them with *****'s16:42
@fungicide:matrix.orgi have a related interest in intentional injection of mock-sensitive data in order to test software for things like credential leaks (set a known canary and then scan for its presence in logs or other outputs)16:43
@clarkb:matrix.organsible ends up doing something very similar with the inputs and outputs of no_log tasks. Basically if you give something an input and no_log that action then the outputs get that input replaced with ****s16:44
@fungicide:matrix.orgas far as replicating the jenkins feature, i suppose we could stream-edit the console logs too, the executor has access to the secrets allowed in a build and it could find them and substitute placeholders while proxying the finger socket16:45
@jpew:matrix.orgYa, Jenkins does a contex-less find/replace.... I've seen "simple" passwords accidently revealed because the string happened to be redacted elsewhere in the log :)16:45
@jim:acmegating.comjpew: doh! :)16:45
@fungicide:matrix.orgoh, right! i remember a case of that being pointed out16:46
@fungicide:matrix.orgyeah, that's a hilarious side-channel leak example16:46
@fungicide:matrix.orgexploitable too... trigger a job which uses a secret where you can't access the secret but you can generate lots of output under your control, and then use the redaction as an oracle against your list of potential candidate strings16:53
@fungicide:matrix.orggranted, in most cases that's probably an inefficient brute-force mechanism, but in some situations where the job workers may have privileged network access that might be faster than having the job try to brute-force connections16:55
@fungicide:matrix.org(don't try this at home, kids)16:57
-@gerrit:opendev.org- Ian Wienand proposed:21:03
- [zuul/zuul-jobs] 827588: ensure-sphinx: Use python3 https://review.opendev.org/c/zuul/zuul-jobs/+/827588
- [zuul/zuul-jobs] 827589: ensure-virtualenv: Don't support on CentOS 9-stream https://review.opendev.org/c/zuul/zuul-jobs/+/827589
@clarkb:matrix.orgianw: on 827588 any idea how centos-7 supports that change? SF third party ci passes indicating it does work on that platform. I guess maybe through the very late addition of python3 to centos-7?22:24
@clarkb:matrix.orgBasically CI passes and is happy which is great. I'm just confused how it managed to do so on that platform :)22:24
@iwienand:matrix.orgyeah python36 is standard there now22:25
@iwienand:matrix.org827588 is a dependency only because it's the only thing that seems to use ensure-virtualenv by default22:26
@iwienand:matrix.orgwe could, i guess, install virtualenv with pip for 9-stream to implement ensure-virtualenv on that platform22:27
@iwienand:matrix.orgbut, since upstream don't want to package it, we just seem to be setting ourselves up for sadness, so if we can run without it, all the better imo22:27
@clarkb:matrix.org++ I did leave comments on the centos 9 stream change though22:28
@clarkb:matrix.orgI think a couple of the conditions may not be correct?22:28
@iwienand:matrix.orgsigh, yes rushed a bit on that, thanks, let me look22:31
@iwienand:matrix.orgare you supposed to use ansible_facts['fact'] now?22:38
@clarkb:matrix.orgI haven o idea22:39
-@gerrit:opendev.org- Ian Wienand proposed: [zuul/zuul-jobs] 827589: ensure-virtualenv: Don't support on CentOS 9-stream https://review.opendev.org/c/zuul/zuul-jobs/+/82758922:41
@iwienand:matrix.orghoepfully that's a more expressive way of wirting the conditionals22:42
@clarkb:matrix.orgThat looks better22:43
-@gerrit:opendev.org- Zuul merged on behalf of Ian Wienand: [zuul/nodepool] 827577: Bump Openshift test to Fedora 35 https://review.opendev.org/c/zuul/nodepool/+/82757723:18
-@gerrit:opendev.org- Zuul merged on behalf of Ian Wienand: [zuul/zuul-jobs] 827588: ensure-sphinx: Use python3 https://review.opendev.org/c/zuul/zuul-jobs/+/82758823:22

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