Skip to content

fix: make the message clearer when API key is missing#11370

Merged
pottekkat merged 1 commit into
apache:masterfrom
pottekkat:fix/inline-doc/key-auth/1
Jun 26, 2024
Merged

fix: make the message clearer when API key is missing#11370
pottekkat merged 1 commit into
apache:masterfrom
pottekkat:fix/inline-doc/key-auth/1

Conversation

@pottekkat

@pottekkat pottekkat commented Jun 25, 2024

Copy link
Copy Markdown
Member

Description

When the key is missing while accessing a route with the key-auth plugin enabled, we get the message, "Missing API key found in request," which isn't correct. How is something missing in the request, found in the request?

Instead, it should be phrased as "Missing API key in request," which is clearer.

While users may be able to make sense of the older message, it is an easy enough change.

This PR updates the message in the code, tests, and docs.

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)

@pottekkat
pottekkat merged commit 6d2de7e into apache:master Jun 26, 2024
@pottekkat
pottekkat deleted the fix/inline-doc/key-auth/1 branch June 26, 2024 05:20
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.

4 participants