-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[filebeat] Add base64Decode template functions to httpjson #28385
Conversation
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
09a0e7d
to
38557b8
Compare
|
||
func base64DecodeNoPad(enc string) string { | ||
dec, _ := base64.RawStdEncoding.DecodeString(enc) | ||
return string(dec) |
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.
Maybe emit and obviously incorrect string if err != nil? (also above)
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.
Not sure here, what would you suggest? maybe a no-op is better in this case (and document accordingly)?
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
💚 Flaky test reportTests succeeded. 🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
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, also agree that maybe some sort of check would be nice
(cherry picked from commit 6ad8689)
(cherry picked from commit 6ad8689) Co-authored-by: Marc Guasch <[email protected]>
What does this PR do?
Adds template functions to decode base64 strings.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.