Improved error when sending k8s traffic to the proxy's web port (#2918)

This commit is contained in:
Gus Luxton
2019-08-12 14:44:38 -07:00
committed by Alexander Klizhentas
parent f8b4282457
commit 08902c5c2b
+2
View File
@@ -283,6 +283,8 @@ func (f *Forwarder) authenticate(req *http.Request) (*authContext, error) {
case auth.RemoteUser:
isRemoteUser = true
case auth.BuiltinRole:
f.Warningf("Denying proxy access to unauthenticated user of type %T - this can sometimes be caused by inadvertently sending Kubernetes traffic to the proxy's web port.", userTypeI)
default:
f.Warningf("Denying proxy access to unsupported user type: %T.", userTypeI)
return nil, trace.AccessDenied(accessDeniedMsg)