Unable to login to kibana when username has punctuation mark

Solution Verified - Updated -

Issue

  • Unable to login to kibana when a username has punctuation mark.
  • Everytime user with such a name tries to log in the logging-kibana pod will restart.
  • Kibana proxy container logs when trying to login using WebUI shows below logs:
0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0"

http.js:733
      throw new TypeError('The header content contains invalid characters');
            ^
TypeError: The header content contains invalid characters
    at ClientRequest.OutgoingMessage.setHeader (http.js:733:13)
    at /usr/lib/node_modules/openshift-auth-proxy/lib/proxy.js:23:22
    at Array.forEach (native)
    at ProxyServer.proxyTransformer (/usr/lib/node_modules/openshift-auth-proxy/lib/proxy.js:18:25)
    at ProxyServer.emit (/usr/lib/node_modules/eventemitter3/index.js:92:35)
    at ClientRequest.<anonymous> (/usr/lib/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js:114:27)
    at ClientRequest.emit (events.js:117:20)
    at http.js:1821:9
    at process._tickCallback (node.js:458:13)
rpc error: code = Unknown desc = Error: No such container: 55a56433818afe23c624d375ef5a933176304556b3e6f139c78be3ac99448166
  • The events logged at the same time are:
Events:

12s       11d       3         logging-kibana-1-68c4k.155cd0837c9009fe                    Pod                     spec.containers{kibana-proxy}   Normal    Pulled             kubelet, master.example.com   Container image "registry.access.redhat.com/openshift3/logging-auth-proxy:v3.9.43" already present on machine
11s       11d       3         logging-kibana-1-68c4k.155cd083dac36d34                    Pod                     spec.containers{kibana-proxy}   Normal    Created            kubelet, master.example.com   Created container
11s       11d       3         logging-kibana-1-68c4k.155cd083fc36acdc                    Pod                     spec.containers{kibana-proxy}   Normal    Started            kubelet, master.example.com   Started container
26s       26s       1         logging-kibana-1-68c4k.15607526ce53580f                    Pod                     spec.containers{kibana-proxy}   Warning   BackOff            kubelet, master.example.com   Back-off restarting failed container

Environment

  • OpenShift Container Platform 3.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content