Skip to content

fix(standalone): API-driven mode does not properly handle consumer schema #12256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 30, 2025

Conversation

AlinsRan
Copy link
Contributor

@AlinsRan AlinsRan commented May 26, 2025

Description

Which issue(s) this PR fixes:

Fixes #12253

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)

@AlinsRan AlinsRan changed the title fix(standalone): API-driven mode does not properly handle consumer sc… fix(standalone): API-driven mode does not properly handle consumer schema May 26, 2025
@@ -233,7 +233,9 @@ function _M.stream_init_worker(filter)
user_routes, err = core.config.new("/stream_routes", {
automatic = true,
item_schema = core.schema.stream_route,
checker = stream_route_checker,
checker = function(item)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

refer stream_route_checker(item, in_cp): In_cp is only applicable to admin-api.

@AlinsRan AlinsRan marked this pull request as ready for review May 26, 2025 09:02
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label May 26, 2025
@dosubot dosubot bot added the bug Something isn't working label May 26, 2025
nic-6443
nic-6443 previously approved these changes May 27, 2025
@AlinsRan AlinsRan requested review from bzp2010 and nic-6443 May 29, 2025 10:15
Copy link
Contributor

@ronething ronething left a comment

Choose a reason for hiding this comment

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

lgtm.

@AlinsRan AlinsRan merged commit 9d2d9cf into apache:master May 30, 2025
32 checks passed
@AlinsRan AlinsRan deleted the fix/consumer-credential-modifiedIndex branch May 30, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: API-driven standalone mode does not properly handle consumer schema checks
4 participants