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

fix: output hostname when json_output is enabled and correct env var name #2174

Merged
merged 4 commits into from
Aug 25, 2022

Conversation

leogr
Copy link
Member

@leogr leogr commented Aug 23, 2022

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

Any specific area of the project related to this PR?

/area engine

What this PR does / why we need it:

#1989 did not actually fix the problem as reported in #1520 (comment) by @adnankobir 🙏

I have also fixed the naming of the env var that can be used to override the hostname value.

Which issue(s) this PR fixes:

Fixes #1520

Special notes for your reviewer:

/milestone 0.33.0

cc @adnankobir

Does this PR introduce a user-facing change?:

fix: hostname was not present when `json_output: true`
update: use `FALCO_HOSTNAME` env var to override the hostname value

leogr added 3 commits August 23, 2022 16:46
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@jasondellaluce
Copy link
Contributor

/milestone 0.33.0

jasondellaluce
jasondellaluce previously approved these changes Aug 23, 2022
Copy link
Contributor

@jasondellaluce jasondellaluce left a comment

Choose a reason for hiding this comment

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

/approve

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Copy link
Contributor

@jasondellaluce jasondellaluce left a comment

Choose a reason for hiding this comment

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

/approve

Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link
Contributor

poiana commented Aug 25, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, jasondellaluce, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [FedeDP,jasondellaluce,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 8e8491f into master Aug 25, 2022
@poiana poiana deleted the fix/hostname branch August 25, 2022 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hostname of alert origin not present in HTTP output
4 participants