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

Ignore unexported struct fields in config struct #69

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

ctrox
Copy link
Contributor

@ctrox ctrox commented Jun 3, 2021

I noticed that the server parses unexported struct fields and adds them to the config. I don't think that was intended, since json.Unmarshal won't work on unexported fields anyway. It also lead to an infinite loop with some structs (and filled my whole computers memory).

Fixes #68

Signed-off-by: Cyrill Troxler <cyrill@nine.ch>
@CLAassistant
Copy link

CLAassistant commented Jun 3, 2021

CLA assistant check
All committers have signed the CLA.

@javierguerragiraldez javierguerragiraldez added the bug Something isn't working label Jun 9, 2021
@kikito kikito merged commit eee848e into Kong:master Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexported struct fields in the Config can lead to crash on startup
4 participants