Skip to content
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

fix(core): separate plugin server runtime data from kong configuration #14111

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

ProBrian
Copy link
Contributor

@ProBrian ProBrian commented Jan 8, 2025

Summary

Problem: There are some runtime data like proc stored in kong.configuration.pluginservers, which is cdata type and could not be encoded by cjson. Thus when fetching the admin api "/", the response body encoding of configuration will fail and throws 500 error.
Solution: Separate runtime data from configuration, store runtime info like proc inside the plugin servers module, not global configuration.

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix https://konghq.atlassian.net/browse/KAG-6088

@ProBrian ProBrian marked this pull request as draft January 8, 2025 08:52
@ProBrian ProBrian requested a review from gszr January 9, 2025 01:06
@ProBrian ProBrian marked this pull request as ready for review January 9, 2025 01:16
Copy link
Member

@Oyami-Srk Oyami-Srk left a comment

Choose a reason for hiding this comment

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

LGTM

@gszr
Copy link
Member

gszr commented Jan 15, 2025

Please hold on this one, I want to give it a try locally, thanks!

@gszr gszr force-pushed the fix/plugin-server-flaky branch from 0141f46 to e5ca11b Compare January 22, 2025 13:43
@gszr
Copy link
Member

gszr commented Jan 22, 2025

@ProBrian please open a backport to Kong EE and request a review from me. Thanks!
Backports are needed to both Kong EE masters and next/3.9.x.x.

@AndyZhang0707
Copy link
Collaborator

@ProBrian, could you update the PR subject to follow our commit message convention https://github.com/Kong/kong/blob/master/CONTRIBUTING.md#commit-message-format? Thanks

@ProBrian ProBrian force-pushed the fix/plugin-server-flaky branch from e5ca11b to cad5004 Compare January 23, 2025 02:52
@ProBrian ProBrian changed the title separate plugin server runtime data from kong configuration fix(core): separate plugin server runtime data from kong configuration Jan 23, 2025
@gszr gszr merged commit 7a505ea into master Jan 23, 2025
28 checks passed
@gszr gszr deleted the fix/plugin-server-flaky branch January 23, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants