nic-6443 commented on code in PR #13832:
URL: https://github.com/apache/apisix/pull/13832#discussion_r3792152228


##########
apisix/plugins/ldap-auth.lua:
##########
@@ -162,6 +163,12 @@ function _M.rewrite(conf, ctx)
     end
     consumer_mod.attach_consumer(ctx, consumer, consumer_conf)
 
+    -- the header carries the directory password, which is usually reusable
+    -- beyond this API, so it should not reach the upstream unless asked for
+    if conf.hide_credentials then
+        core.request.set_header(ctx, "Authorization", nil)
+    end
+
     core.log.info("hit basic-auth access")

Review Comment:
   Agreed, that line predates this PR but it is right below the code I touched, 
so fixed in eadc0dafe: it logs `hit ldap-auth access` now.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to