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

feature(webhook): add template and content type #3622

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

josedonizetti
Copy link
Contributor

1. Explain what the PR does

Fix #3448

This PR adds support to gotemplate and contentType to the webhook printer.

2. Explain how to test it

sudo ./dist/tracee -p examples/policies/dig.yaml -o webhook:"http://localhost:8081?gotemplate=/path/to/template/test.tmpl&contentType=application/json"

example tmpl:

{
        "test": {{ .EventName }}
}

3. Other comments

This PR adds support for gotemplate and contentType to the webhook
printer.
@geyslan geyslan changed the title feature(webgook): add template and content type feature(webhook): add template and content type Oct 26, 2023
@geyslan
Copy link
Member

geyslan commented Oct 26, 2023

to @geyslan from the future: This affects #3612.

Copy link
Member

@geyslan geyslan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josedonizetti josedonizetti merged commit 623ba96 into aquasecurity:main Oct 29, 2023
28 checks passed
@josedonizetti josedonizetti deleted the add-webhook-template branch October 29, 2023 01:17
geyslan added a commit to geyslan/tracee that referenced this pull request Oct 30, 2023
Since aquasecurity#3622, webhooks can be configured with a gotemplate and a
content-type. This commit adds these two fields to the config file.
rafaeldtinoco pushed a commit that referenced this pull request Oct 30, 2023
Since #3622, webhooks can be configured with a gotemplate and a
content-type. This commit adds these two fields to the config file.
AnaisUrlichs pushed a commit to AnaisUrlichs/tracee that referenced this pull request Nov 2, 2023
Since aquasecurity#3622, webhooks can be configured with a gotemplate and a
content-type. This commit adds these two fields to the config file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Webhook Template in Tracee
2 participants