Repository navigation
Send HTTP Unauthorized (401) for router metrics URL - #15061
openshift-merge-robot merged 1 commit into
Conversation
We were previously sending Forbidden (403) which doesn't make the browser prompt for a username and password. It is better to send Unauthorized (401) so that they can present credentials using the browser widget rather than having to jam them in the URL. Fixes bug 1467257 (https://bugzilla.redhat.com/show_bug.cgi?id=1467257)
614bd43 to
47270ca
Compare
|
[test][testextended:networking] |
|
This is not a blocker bug. It should merge after master re-opens after the 1.6 release. |
|
Evaluated for origin test up to 47270ca |
|
If their password and username don't match, they're forbidden. It's only if they don't provide credentials at all that they are unauthorized. |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/2989/) (Base Commit: 72b9f3d) (PR Branch Commit: 47270ca) |
|
@smarterclayton do you like this code more? |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: knobunc, smarterclayton The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/retest |
|
/test cmd |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
Automatic merge from submit-queue |
|
Update is needed to the e2e tests |
|
I don't know how this merged |
Automatic merge from submit-queue (batch tested with PRs 16365, 16250, 14945, 16355, 16303) fix http codes for router e2e #15061 didn't adjust e2e to match Queue is blocked: https://openshift-gce-devel.appspot.com/builds/origin-ci-test/pr-logs/directory/test_pull_request_origin_extended_conformance_install_update @smarterclayton @knobunc
|
@stevekuznetsov after this merged tests in install_Update started to fail, which makes me think somehow images weren't being built. |
|
From the docker info on the successful run: So it does look like they were built and the router is using the correct image... but up for 15seconds seems bad... crashloop? |
|
In events we can see the install of 3.6 router and upgrade to newest one; |
|
Opened #16385 to look at the tests. |
We were previously sending Forbidden (403) which doesn't make the browser prompt for a username and password. It is better to send Unauthorized (401) so that they can present credentials using the browser widget rather than having to jam them in the URL.
Fixes bug 1467257 (https://bugzilla.redhat.com/show_bug.cgi?id=1467257)