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

Bug/crowdsec : in whitelist config, statics are applied even if the whitelist not succeed #124

Closed
erenJag opened this issue Jul 7, 2020 · 0 comments · Fixed by #127
Closed
Labels
kind/bug Something isn't working

Comments

@erenJag
Copy link
Contributor

erenJag commented Jul 7, 2020

Describe the bug
In a whitelist configuration, if we want to add a static in meta, the static will be applied even if the whitelist not succeed.

To Reproduce

# cat /etc/crowdsec/config/parsers/s02-enrich/mywhitelists.yaml
name: crowdsecurity/whitelists
description: "Whitelist events from my ip addresses"
debug: true
whitelist:
  reason: "my ip ranges"
  ip:
    - "1.2.3.4"
statics:
  - meta: toto
    value: lol

Expected behavior
The statics should be applied only if the whitelist is a success

@erenJag erenJag added the kind/bug Something isn't working label Jul 7, 2020
erenJag pushed a commit that referenced this issue Jul 8, 2020
@erenJag erenJag mentioned this issue Jul 8, 2020
erenJag added a commit that referenced this issue Jul 9, 2020
registergoofy pushed a commit that referenced this issue Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant