diff --git a/api/osb/osb_controller.go b/api/osb/osb_controller.go index 7304e4020..56d15703f 100644 --- a/api/osb/osb_controller.go +++ b/api/osb/osb_controller.go @@ -114,7 +114,10 @@ func (c *Controller) proxy(r *web.Request, logger *logrus.Entry, broker *types.S modifiedRequest := r.Request.WithContext(ctx) if broker.Credentials.BasicExists() { + logger.Infof("######@@@ setting basic auth %s:%s",broker.Credentials.Basic.Username, broker.Credentials.Basic.Password) modifiedRequest.SetBasicAuth(broker.Credentials.Basic.Username, broker.Credentials.Basic.Password) + }else{ + logger.Infof("######@@@ Not setting basic auth") } referencedInstance := getReferencedInstance(ctx) diff --git a/pkg/client/broker_client.go b/pkg/client/broker_client.go index 787c51af5..1cb148669 100644 --- a/pkg/client/broker_client.go +++ b/pkg/client/broker_client.go @@ -60,7 +60,10 @@ func (bc *BrokerClient) authAndTlsDecorator(requestHandler util.DoRequestWithCli ctx := req.Context() logger := log.C(ctx) if bc.broker.Credentials.BasicExists() { + logger.Infof("######@@@ setting basic auth %s:%s",bc.broker.Credentials.Basic.Username, bc.broker.Credentials.Basic.Password) bc.addBasicAuth(req) + }else{ + logger.Infof("######@@@ not setting basic auth") } if bc.tlsConfig != nil {