Skip to content

fix: do not expose internal errors to the client#6859

Merged
spacewander merged 7 commits into
apache:masterfrom
soulbird:fix/rm_auth_info
Apr 18, 2022
Merged

fix: do not expose internal errors to the client#6859
spacewander merged 7 commits into
apache:masterfrom
soulbird:fix/rm_auth_info

Conversation

@soulbird

@soulbird soulbird commented Apr 15, 2022

Copy link
Copy Markdown
Contributor

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Comment thread apisix/plugins/wolf-rbac.lua Outdated
Comment thread apisix/plugins/ldap-auth.lua Outdated
Comment thread apisix/plugins/basic-auth.lua Outdated
Comment thread apisix/plugins/wolf-rbac.lua Outdated
Comment thread apisix/plugins/wolf-rbac.lua Outdated
if not consumer_conf then
return 401, fail_response("Missing related consumer")
core.log.warn("Missing related consumer")
return 401, fail_response("Invalid user authorization")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the error here is nothing about the Authorization header

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll reset this modification

@spacewander
spacewander merged commit 153f385 into apache:master Apr 18, 2022
Liu-Junlin pushed a commit to Liu-Junlin/apisix that referenced this pull request May 20, 2022
spacewander pushed a commit to spacewander/incubator-apisix that referenced this pull request May 27, 2022
spacewander pushed a commit to spacewander/incubator-apisix that referenced this pull request May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants