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

[7.x](backport #24918) [Filebeat] Enable HMAC Signature Validation for http_endpoint input #25702

Merged
merged 1 commit into from
May 18, 2021

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 13, 2021

This is an automatic backport of pull request #24918 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

…24918)

* Enable HMAC Signature Validation for http_endpoint input

* Fix error message for invalid HmacType

* Update changelog

* Correct variable names to better follow conventions

* Don't capitalize error messages

Error strings should not be capitalized. https://github.com/golang/go/wiki/CodeReviewComments#error-strings

* Avoid manual JSON encoding

Use Go's JSON encoder to ensure proper escaping.

* Refactor HMAC validation

Validate the HMAC header before progressing to the HMAC calculation.

Avoid copying body contents twice.

* Fix changelog merge

* Add punctuation to docs

Co-authored-by: Andrew Kroh <[email protected]>
(cherry picked from commit 68d8948)
@mergify mergify bot added the backport label May 13, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label May 13, 2021
@botelastic
Copy link

botelastic bot commented May 13, 2021

This pull request doesn't have a Team:<team> label.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Pull request #25702 opened

  • Start Time: 2021-05-13T11:27:40.782+0000

  • Duration: 109 min 16 sec

  • Commit: f45b070

Test stats 🧪

Test Results
Failed 0
Passed 7002
Skipped 1193
Total 8195

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 7002
Skipped 1193
Total 8195

@andrewkroh andrewkroh merged commit 684b77d into 7.x May 18, 2021
@mergify mergify bot deleted the mergify/bp/7.x/pr-24918 branch May 18, 2021 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants