ChanServ changed the topic of #freedesktop to:
jekstrand has joined #freedesktop
<jekstrand> cgit's down again. :-(
imirkin_ has joined #freedesktop
veganaiZe has joined #freedesktop
mceier has quit [Remote host closed the connection]
mceier has joined #freedesktop
ngcortes has quit [Remote host closed the connection]
jarthur has quit [Ping timeout: 480 seconds]
jstein has quit [Ping timeout: 480 seconds]
ximion1 has quit []
muhomor has joined #freedesktop
muhomor has quit [Remote host closed the connection]
muhomor_ has quit [Ping timeout: 480 seconds]
veganaiZe has quit [Quit: veganaiZe]
bengal has joined #freedesktop
Seirdy has quit [Quit: exiting 3.2]
Seirdy has joined #freedesktop
bengal has quit []
alanc has quit [Remote host closed the connection]
alanc has joined #freedesktop
Seirdy has quit [Quit: exiting 3.2]
jarthur has joined #freedesktop
bengal has joined #freedesktop
jarthur has quit [Ping timeout: 480 seconds]
<MrCooper> bentiss daniels can one of you kick cgit?
<bentiss> MrCooper: I don't have the credentials for this one (and I don't want them)
<MrCooper> fair enough
danvet has joined #freedesktop
<daniels> MrCooper: done
<MrCooper> thanks, still timing out though
<bentiss> daniels: FWIW, I have been trying to enable STS with ceph yesterday...
<daniels> MrCooper: applied a much harder hammer
<daniels> bentiss: oh?
<bentiss> if I use keycloak as the identity provider, I can finally get some short tokens
<daniels> oh that's neat, we're just starting to roll out Keycloak at Collabora too
<bentiss> but I can not use gitlab as the identity provider because it doesn't provide the x509 cert in its JWKS :(
* bentiss is looking if we can patch gitlab to include the x5c field
<bentiss> daniels: once that is done, it should be easier to support OPA too (because I finally found how I can configure the individual S3 radosgw)
<bentiss> but right now, unless I can get keycloak to vouch for gitlab JWT tokens and provide an other one, we are stuck
<bentiss> the second option would be to patch ceph to handle JWKS without x5c, but... meh
<MrCooper> cgit works again, cheers
<bentiss> the third option is to have a man in the middle like I mentioned just above gitlab JWT => keycloak JWT => ceph
<daniels> oh right ... I haven't used Keycloak to proxy JWTs yet
<daniels> (haven't done much of anything lately - being on painkillers and trying to think is not a good combination)
<bentiss> ouch :(
<daniels> the joys of being tall (and old)
<bentiss> honestly, I thing patching gitlab to also export the x509 cert would be easier
<bentiss> *think
<daniels> not making ceph understand a jwk endpoint?
<bentiss> daniels: AFAIU, the spec says that the "all-in-one" x509 cert is optional, because you can rebuild it from the JWKS data
<bentiss> but ceph and many other JWT libs don't know how to rebuild this
<bentiss> we were lucky that minio does
<bentiss> so my idea is to see if I can not export that cert in the keys so gitlab can use a broader JWT libs, and ceph would be one of those
* daniels nods
<daniels> it makes sense to me
<bentiss> me too :)
<bentiss> though not sure if this will work :)
K`den has joined #freedesktop
Kayden has quit [Read error: Connection reset by peer]
K`den is now known as Kayden
<Adrinael> bentiss, daniels: can I have an acked-by from you for https://patchwork.freedesktop.org/patch/449194/?series=93504&rev=1
<daniels> Adrinael: sure, ack
<daniels> (however again noting that we do have aarch64 runners that also execute armv7 just fine, so you can run them natively rather than qemu ...)
<Adrinael> Yes, that's on TODO
<bentiss> yeah, that would leave mips that needs qemu-user
<bentiss> but that also means building igt images for arm
<bentiss> Adrinael: if the IRC ack works, ack from me too
<Adrinael> bentiss, sure, thanks. What's that in the form of $name <$email> ?
<MrCooper> I'd also recommend consolidating common stuff into a .template which is extended by the jobs
<bentiss> daniels: sadly, adding x5c to the openid jwks endpoint seems like a rabbit hole: patching /-/jwks is easy enough, but not the one from /oauth/discovery/keys (advertized by /.well-known/openid-configuration), because it uses doorkeeper-openid_connect ruby gem, and the RSA implementation of Ruby doesn't easily gives the x5c, but the pem you have to tweak :(
<bentiss> Adrinael: Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
<daniels> bentiss: blargh
<daniels> MrCooper: you forgot 'properly using ci-templates' ;)
<MrCooper> that's kind of another story, wouldn't automagically add the gstreamer tag :)
<bentiss> daniels: for /-/jwks I have https://paste.centos.org/view/acf5f7c1
<Adrinael> Alright that's pushed and I hunted down last few pipelines that were using jamming runners
<Adrinael> fdo-packet-m1xl runners might still have zombies
<daniels> bentiss: oh that's nice
<daniels> I wonder why the call was unused before ... ?
<bentiss> daniels: on minio-packet we use that URL, but ceph is using the .well-known to retrieve the jwks url, which points at the doorkeeper ruby gem internal
<bentiss> and that's where we are screwed
<daniels> nginx rewrite the .well-known path?
<bentiss> well, if I have to patch gitlab, I can also patch the internal route redirect :)
ximion has joined #freedesktop
<daniels> heh, true
NotYes has joined #freedesktop
andrew1 has joined #freedesktop
NotYes has quit [Ping timeout: 480 seconds]
ximion has quit []
<karolherbst> oh no 502 :(
<karolherbst> ahh back again
<mupuf> yep...
<karolherbst> but overall a bit slow atm
andrew1 has quit []
<bentiss> daniels: I'm dumb and I don't understand a bit about crypto... :( -> the 'to_pem' function was not exporting the cert, but the key itself :/ so it doesn't work
* bentiss almost had a minimal change in https://github.com/doorkeeper-gem/doorkeeper-openid_connect but that is not going to work :(
<bentiss> and https://myarch.com/oauth2-jwt-verification-best-practices/ -> "Avoiding creating the x509 cert for each key allows for easier update/more frequent rotation of the keys and usually, resource servers rotate keys on a frequent basis, e.g., every three months." so not having x5c is a feature :(
<daniels> right, that's why I was suggesting to use the JWK endpoint, else we have to maintain & distribute the cert chain
<bentiss> well, in amy cases, even the jwk endpoint doesn't have a cert
<daniels> my brain can't do C++ right now sorry
Kayden has quit [Quit: Leaving]
Kayden has joined #freedesktop
<bentiss> daniels: I don't expect you to fix that. Just that the code path only checks for x5c, so it's not compatible with gitlab
* bentiss is playing a bit with keycloak to see what can be done
Haaninjo has joined #freedesktop
ezequielg has quit []
ezequielg has joined #freedesktop
eh5 has quit [Quit: The Lounge - https://thelounge.chat]
eh5 has joined #freedesktop
<thaytan> gitlab is being weird and slow again
<bentiss> thaytan: not much I can do right now
<bentiss> "Slow OSD heartbeats on back" on ceph
<bentiss> so the usual ceph is lagging so is everything :(
ezequielg has quit []
ezequielg has joined #freedesktop
bdeshi has quit [Quit: bouncer disconnect]
bdeshi has joined #freedesktop
jarthur has joined #freedesktop
<bentiss> daniels: unbeliveable, I followed https://www.keycloak.org/docs/latest/securing_apps/#external-token-to-internal-token-exchange and was able to convert the gitlab token to a keycloak token
Seirdy has joined #freedesktop
Seirdy has quit [Remote host closed the connection]
Seirdy has joined #freedesktop
Seirdy has quit []
<daniels> bentiss: :o
bdeshi has quit [Quit: bouncer disconnect]
<bentiss> daniels: do you know if we can configure keycloak from a file, or we have to go through the admin UI or the REST API?
bdeshi has joined #freedesktop
<bentiss> thanks!
<daniels> np!
<bentiss> something to work on tomorrow :)
<daniels> fun!
xexaxo has quit [Ping timeout: 480 seconds]
Seirdy has joined #freedesktop
ximion has joined #freedesktop
nroberts has quit [Ping timeout: 480 seconds]
ceyusa has quit [Ping timeout: 480 seconds]
ngcortes has joined #freedesktop
ngcortes has quit [Remote host closed the connection]
xexaxo has joined #freedesktop
ngcortes has joined #freedesktop
xexaxo has quit [Remote host closed the connection]
xexaxo has joined #freedesktop
pzanoni has quit [Ping timeout: 480 seconds]
xexaxo has quit [Read error: Connection reset by peer]
pzanoni has joined #freedesktop
Seirdy has quit [Quit: exiting 3.3-dev]
bengal has quit [Ping timeout: 480 seconds]
ngcortes has quit [Ping timeout: 480 seconds]
ximion has quit [Remote host closed the connection]
ngcortes has joined #freedesktop
ximion has joined #freedesktop
danvet has quit [Ping timeout: 480 seconds]
ximion has quit [Read error: Connection reset by peer]
ximion has joined #freedesktop