Skip to content

Commit

Permalink
Improved error when sending k8s traffic to the proxy's web port (#2918)
Browse files Browse the repository at this point in the history
  • Loading branch information
webvictim authored and klizhentas committed Aug 12, 2019
1 parent f8b4282 commit 08902c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/kube/proxy/forwarder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 08902c5

Please sign in to comment.