Closed gberche-orange closed 4 years ago
@gberche-orange
I will try to get to this issue this week.
In order to enable, I will add a new config option to turn on http debug as you specify above. Default for the option will be false since this is a security exposure.
@gberche-orange
Support for new config option http_debug
added with commit https://github.com/cloudfoundry-incubator/admin-ui/commit/f2869b0d98618162f3ca0216482885bfb3eeb3fe. Default value is false
as logging of HTTP calls is a security exposure. HTTP debug logs will be written to the admin UI log file, not to stderr as shown above.
Awesome, thanks @rboykin !
Expected behavior
As an admin-ui operator
Forbidden
tohttps://admin-ui.redacted-domain/login?code=66mEDqe42a
Observed behavior
When the admin-ui is running as a cf app
Workaround
before doing the cf push, edit
lib/admin/utils.rb b/lib/admin/utils.rb
and addhttp.set_debug_output $stderr
(see https://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html#method-i-set_debug_output)As a result, cf logs admin-ui now displays http traces (and shows problem fixed in https://github.com/cloudfoundry-incubator/admin-ui/commit/b9b32e0a1c9bb1ffcad19e203a4c55d9655854a7 that the client is missing uaa.resource scope according to https://docs.cloudfoundry.org/api/uaa/version/74.26.0/index.html#introspect-token