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

Create a macro to whitelist terminal usage in containers #1154

Merged
merged 1 commit into from
Jun 23, 2020
Merged

Create a macro to whitelist terminal usage in containers #1154

merged 1 commit into from
Jun 23, 2020

Conversation

marier-nico
Copy link
Contributor

What type of PR is this?

/kind feature
/kind rule-update

Any specific area of the project related to this PR?

/area rules

What this PR does / why we need it:

This PR simply adds a macro to allow exclusion conditions to be set for the Terminal shell in container rule. There are some use-cases under which this is normal and should be ignored. For example, some configuration management tools can be run inside docker and operate with an interactive terminal. Falco generates an alert from this, but it's expected to happen for the configuration manager, so it would be nice to be able to whitelist just the configuration management tool.

Which issue(s) this PR fixes:

No issues open for this.

Does this PR introduce a user-facing change?:

rule(macro user_expected_terminal_shell_in_container_conditions): allow whitelisting terminals in containers under specific conditions

…ate the macro

A macro like this is useful because configuration management software
may need to run containers with an attached terminal to perform some of
its duties, and users may want to ignore this behavior.

Signed-off-by: Nicolas Marier <nmarier@coveo.com>
@poiana poiana requested review from fntlnz and leodido April 20, 2020 15:39
@marier-nico marier-nico changed the title rule(macro user_expected_terminal_shell_in_container_conditions): create the macro Create a macro to whitelist terminal usage in containers Apr 20, 2020
@leogr leogr added this to the 0.24.0 milestone May 18, 2020
@Kaizhe
Copy link
Contributor

Kaizhe commented Jun 23, 2020

/lgtm

@poiana poiana added the lgtm label Jun 23, 2020
@leodido leodido closed this Jun 23, 2020
@leodido leodido reopened this Jun 23, 2020
@poiana
Copy link
Contributor

poiana commented Jun 23, 2020

LGTM label has been added.

Git tree hash: 23602b911f986cdcf63b3bfffa9be76643297da9

@poiana poiana merged commit dbd8623 into falcosecurity:master Jun 23, 2020
@poiana
Copy link
Contributor

poiana commented Jun 23, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fntlnz, Kaizhe, leodido

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:

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

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.

6 participants