Bug 1248087 - Avoid needless 401/negotiate roundtrips with kerberos in userportal/webadmin for static content (.js, .css, ...)
Avoid needless 401/negotiate roundtrips with kerberos in userportal/webadmin ...
Status: CLOSED DUPLICATE of bug 1112404
Product: oVirt
Classification: Community
Component: ovirt-engine-webadmin (Show other bugs)
Unspecified Unspecified
unspecified Severity low
: ---
: 4.0.0
Assigned To: bugs@ovirt.org
Pavel Stehlik
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2015-07-29 10:49 EDT by David Jaša
Modified: 2015-07-30 05:59 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-07-30 05:59:47 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Jaša 2015-07-29 10:49:23 EDT
Description of problem:
When using kerberos, every request does an extra roundtrip:
-> original request
<- 401 Negotiate
-> request with kerberos data
-> 200 OK
Because .css and .js resources for userportal and webadmin are also hosted under /ovirt-engine/(userportal|webadmin) paths where users are required to authenticate by apache web server. It would be good to either prefix authentication-dependent content or create different paths under /ovirt-engine/ for static content.

It seems that the biggest impact is right after logging in when most of the application resources are loaded so the issue is a kind of one-time --> low severity.
On large setups however, this would probably make SAML more desirable form of portals SSO because it avoids unnecessary HTTP traffic.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. open a new tab, open developer console, switch to Network
2. go to userportal or webadmin of kerberized engine instance

Actual results:
every request receives 401 with Negotiate header first, including static content that doesn't need any authentication

Expected results:
Only html and ajax requests do the extra roundtrip

Additional info:
Comment 2 Alon Bar-Lev 2015-07-30 03:08:07 EDT
This is why it is tech preview.

Will be solved in 4.0 with the sso.

*** This bug has been marked as a duplicate of bug 1112404 ***
Comment 3 David Jaša 2015-07-30 05:45:51 EDT
This is different than issues discussed in other bugs. I'd keep the bug open to make sure in 4.0 cycle that it is fixed.
Comment 4 Alon Bar-Lev 2015-07-30 05:59:47 EDT
It is not different, the current deployment of setting kerberos on application has this side effect.

Please do not reopen.

*** This bug has been marked as a duplicate of bug 1112404 ***

Note You need to log in before you can comment on or make changes to this bug.