#1878 "SSLVerifyClient require" breaks kojiweb (was: Is Kerberos required by kojiweb?)
Closed: Fixed 4 years ago by tkopecek. Opened 4 years ago by enteropia.

While trying hard to run kojiweb (1.19.1) with SSL authentication, we still experienced problems.

During debugging I found that _getServer() function in www/kojiweb/index_py always creates Kerberos-authenticated session, even when only SSL is configured in /etc/kojiweb/web.conf

I'm confused... Does it mean that kojiweb always uses Kerberos internally?


Problem was caused by Apache config: "SSLVerifyClient require" was set on global server scope.

Unfortunately, this is what documentation suggests :/

Metadata Update from @enteropia:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue status updated to: Open (was: Closed)

4 years ago

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.21

4 years ago

Hmm, it looks, that docs are correct about this. I've tried it again, and it works for me. Wasn't there also enabled that krb section?

@tkopecek: no, I didn't enable kerberos. My symptoms in koji was: koji moshimoshi worked, koji list-tags didn't. Only after I used koji --force-auth list-tags it worked with no problem.

In kojiweb: I've been getting SSL erros on index page, even before I could try to login. I figured out that kojiweb, like koji command expects, only /kojihub/ssllogin to require SSL certificates, while other services (like tag listing) should be accessible without SSL authentication. When I looked into kojiweb code it looked like it doesn't even bother to pass SSL certificate at this moment, and sets only "dummy" krb opts for koji.ClientSession in _getServer().

The docs on the other hand suggest that SSLVerifyClient require should be set at global space. After I changed that to "optional", both koji command and kojiweb worked without problems.

So no, kojiweb doesn't require kerberos (I shoul've changed the issue title), but doesn't work with "SSLVerifyClient require" set in ssl.conf

My current setting of SSLVerifyClient is optional for / and "require" only for /kojihub/ssllogin. I suppose /kojihub direcotry should have at most "optional", but this isn't explained well in documentation.

Ah, understood. We've working example configs, but old info in docs. I've filed #2057

Metadata Update from @tkopecek:
- Issue tagged with: doc, no_qe

4 years ago

Thanks very much for filing this ticket @enteropia . It helps us improve the install experience for other people.

Login to comment on this ticket.

Metadata
Related Pull Requests
  • #2057 Merged 4 years ago