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

Prevent setting SA monitor configs with invalid endpoint fields #3187

Merged
merged 1 commit into from
May 26, 2023

Conversation

rmfitzpatrick
Copy link
Contributor

Currently the acceptsEndpoints value is used to determine if endpoint-derived host and port values should be used in monitor configs. This logic is invalid where endpoints are accepted but host and port don't exist or are of unexpected string values. These changes ensure the field exists before attempting to set them, and also tries port strings since changing the config field type could be a breaking one.

Resolves #2264.

@rmfitzpatrick rmfitzpatrick requested review from a team as code owners May 26, 2023 13:48
@rmfitzpatrick rmfitzpatrick merged commit 474212d into main May 26, 2023
@delete-merged-branch delete-merged-branch bot deleted the sareceiverendpointbugfix branch May 26, 2023 15:34
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.

Error "Unable to set monitor Port field" when using receiver_creator with smartagent/elasticsearch
2 participants