nic-6443 commented on code in PR #13832:
URL: https://github.com/apache/apisix/pull/13832#discussion_r3792244237
##########
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:
Split off would have meant a second PR for a five-word log line, so I
mentioned it in the description instead — it is its own commit if you would
rather it went elsewhere.
--
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]