mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-28 03:19:47 +08:00
Improved error when sending k8s traffic to the proxy's web port (#2918)
This commit is contained in:
committed by
Alexander Klizhentas
parent
f8b4282457
commit
08902c5c2b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user