-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 rule: fixed issue with alertmanager URL containing + #1582
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.
The code looks very good to me and well tested 💪 however a philosophical question/idea: maybe it would be worth to error out if more than one +
has been found in the parsedUrl.Scheme
variable considering that none of the dns.QType
variables have a +
?
Thanks! Yes, good point. The function handles just parsing not validation. The validation is done in the resolver package so it eventually errors out afterwards (below example). This way the rule does not necessarily know all the resolvers types and who knows, maybe there will be some QType with Example:
|
Ah, I haven't checked. Then it should be all good, thanks for the example output. |
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.
Nice! Extremely small nit only =D then LGTM
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
437b5ec
to
bc74f50
Compare
@bwplotka fixed and rebased, thanks for noticing :)) |
* fix rule: fixed issue with alertmanager URL containing + Signed-off-by: Martin Chodur <m.chodur@seznam.cz> * CR: updated changelog Signed-off-by: Martin Chodur <m.chodur@seznam.cz> * CR: add trailing period Signed-off-by: Martin Chodur <m.chodur@seznam.cz> Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
fixes #1564
Changes
+
which can be for example in credentialsVerification