-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please hold on this one, I want to give it a try locally, thanks! |
changelog/unreleased/kong/fix-admin-api-route-path-response-error.yml
Outdated
Show resolved
Hide resolved
0141f46
to
e5ca11b
Compare
@ProBrian please open a backport to Kong EE and request a review from me. Thanks! |
@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 |
… which could not be cjson encoded
…e-path-response-error.yml
e5ca11b
to
cad5004
Compare
Summary
Problem: There are some runtime data like
proc
stored inkong.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
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix https://konghq.atlassian.net/browse/KAG-6088