Description of problem: Before logging in, the client's browser already tries to connect to the API, polluting the skyring.log with messages like these: https://gist.github.com/zeichenanonym/5699761bc2355b5c6feba41cafd8676e until the login has been successfully. Can we disable these API calls until the login has actually happened?
Posting content of github gist file from the description here so that one can find this BZ via bugzilla search for related error messages: ~~~ May 26 06:12:53 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false May 26 06:12:54 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false May 26 06:12:56 rhs-c skyring[6164]: [negroni] Started GET /api/v1/events May 26 06:12:56 rhs-c skyring[6164]: 2016-05-26T06:12:56.065-04:00 INFO skyring.go:429 LoginRequired] Not Authorized May 26 06:12:56 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 679.171µs May 26 06:12:58 rhs-c skyring[6164]: [negroni] Started GET /api/v1/unmanaged_nodes May 26 06:12:58 rhs-c skyring[6164]: 2016-05-26T06:12:58.003-04:00 INFO skyring.go:429 LoginRequired] Not Authorized May 26 06:12:58 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 593.787µs May 26 06:13:03 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false May 26 06:13:04 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false May 26 06:13:06 rhs-c skyring[6164]: [negroni] Started GET /api/v1/events May 26 06:13:06 rhs-c skyring[6164]: 2016-05-26T06:13:06.067-04:00 INFO skyring.go:429 LoginRequired] Not Authorized May 26 06:13:06 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 634.368µs May 26 06:13:10 rhs-c skyring[6164]: [negroni] Started GET /api/v1/unmanaged_nodes May 26 06:13:10 rhs-c skyring[6164]: 2016-05-26T06:13:10.001-04:00 INFO skyring.go:429 LoginRequired] Not Authorized May 26 06:13:10 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 607.816µs May 26 06:13:13 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false May 26 06:13:14 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false May 26 06:13:16 rhs-c skyring[6164]: [negroni] Started GET /api/v1/events May 26 06:13:16 rhs-c skyring[6164]: 2016-05-26T06:13:16.066-04:00 INFO skyring.go:429 LoginRequired] Not Authorized May 26 06:13:16 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 914.877µs May 26 06:13:21 rhs-c skyring[6164]: [negroni] Started GET /api/v1/unmanaged_nodes May 26 06:13:21 rhs-c skyring[6164]: 2016-05-26T06:13:21.998-04:00 INFO skyring.go:429 LoginRequired] Not Authorized May 26 06:13:21 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 646.6µs May 26 06:13:24 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false May 26 06:13:24 rhs-c salt-master[6038]: [WARNING ] method Listener.PushUnManagedNode returns empty or false May 26 06:13:26 rhs-c skyring[6164]: [negroni] Started GET /api/v1/events May 26 06:13:26 rhs-c skyring[6164]: 2016-05-26T06:13:26.069-04:00 INFO skyring.go:429 LoginRequired] Not Authorized May 26 06:13:26 rhs-c skyring[6164]: [negroni] Completed 401 Unauthorized in 686.118µs ~~~
Per discussion with JeffA, this is a nice to have and doesn't have any impact on the functionality. So moving to 3.0
Created attachment 1174878 [details] Firefox network analyzer during opening of RHSC 2.0 login page Just for a record, attaching screenshot from Firefox network analyzer when I just opened the login page of RHSC 2.0. Note all the red requests (401 - not authorized, 404 - not found). Tested with rhscon-ui-0.0.42-1.el7scon.noarch
Since this BZ is blocked by BZ 1298539 which has rhscon-2 + flag, asking for reevaluation of this BZ.