Monday, 2020-12-07

*** apevec has joined #softwarefactory09:54
lyrIs there an option in sfconfig to only provision (new) workers ? A bit like Ansible's --limit maybe ? I'ld like to use it in my consul-template which keeps arch.yaml up to date as a post templating command10:55
lyr2nd question, logged with admin, trying to logout I get a 404 "The requested URL /r/logout was not found on this server.". Bug ? Misconfiguration ?11:03
lyr3rd question, I configured Github oauth, after & successful login @ github, it comes back to SF & fails with a "Authorization failure: Failed to fetch emails". I alos tried using my account email, and a non MFA enabled account w/o success11:09
mhulyr, about the 3rd question, is that all you see in /var/log/cauth/cauth.log ?11:13
lyrmhu: yes11:13
lyr2020-12-07 11:07:19,444 ERROR [cauth.GithubAuthPlugin] [TID: 57b83e2f] Failed to fetch emails: <Response [403]>11:13
mhulyr I wonder if you've given enough authorizations to the SF app when github asks during the first login11:16
mhulooks like the authenticated user hasn't allowed access to emails11:16
lyrHere's the logs with cauth switched to debug11:16
lyrhttps://paste.garrigue.re/?d48d2ae0368aa452#3K4fRgj7chgoxfhB7JNiXiMZYCRAbnMALCPJZDfPoAa111:16
mhulyr, if you look at this URL https://github.com/settings/applications11:18
mhuand look for the SF application11:18
mhuyou should see among the permissions:  "Access user email addresses (read-only)"11:18
lyrAh indeed, it was no access11:19
lyrfixed, seems all good11:19
lyrthanks mhu11:19
mhuyw, glad to be of help!11:19
lyrmhu: I checked the doc while taking notes, the email permission is missing11:40
lyrHere https://softwarefactory-project.io/docs/operator/zuul_operator.html#create-a-github-app11:41
*** rfolco has joined #softwarefactory11:54
apevecthat's the github app for zuul itself (for accessing PRs etc.)12:10
apevecmhu, this is SF cauth doc? https://softwarefactory-project.io/docs/operator/auths.html12:11
mhuapevec, correct12:26
mhulyr, apevec I haven't authorized a SF app via GH in a while but I think you're asked to confirm the correct permissions the first time automatically12:27
mhuI'm checking the code in cauth, and we do set the following default scope: "user:email, read:public_key"12:28
mhuso lyr must have unchecked email access inadvertently12:29
tristanClyr: there is no option to only provision workers, but here is an example playbook to do that: https://softwarefactory-project.io/cgit/software-factory/sf-ops/tree/maintenance/spin-executor.yaml12:55
sfbenderFabien Boucher created software-factory/shake-factory master: Add bs-webapi as dependency  https://softwarefactory-project.io/r/2026814:46
lyrmhu: I created the github app15:07
lyrat this point I had to fiddle with the permission (or so I though)15:07
sfbenderMerged software-factory/shake-factory master: Add extra javascript libraries  https://softwarefactory-project.io/r/2008115:38
sfbenderMerged software-factory/shake-factory master: Add bs-webapi as dependency  https://softwarefactory-project.io/r/2026815:38
*** apevec has quit IRC18:41
*** zenkuro has joined #softwarefactory19:03
*** sshnaidm has quit IRC21:49
*** zenkuro has quit IRC21:51
*** sshnaidm has joined #softwarefactory22:08
*** rfolco has quit IRC22:34
*** rfolco has joined #softwarefactory22:43
*** rfolco has quit IRC22:48
sfbenderNicolas HICHER created software-factory/sf-config master: sf-repos: Add static nodepool config file management  https://softwarefactory-project.io/r/2027223:24

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