explain me a list notation in postoverflow

Hello,
name: crowdsecurity/cdn-whitelist
description: "Whitelist CDN providers"
whitelist:
reason: "CDN provider"
expression:
- "any(File('cloudflare_ips.txt'), { IpInRange(evt.Overflow.Alert.Source.IP ,#)})"
- "any(File('cloudflare_ip6s.txt'), { IpInRange(evt.Overflow.Alert.Source.IP ,#)})"
data:
- source_url: https://www.cloudflare.com/ips-v4
dest_file: cloudflare_ips.txt
type: string
- source_url: https://www.cloudflare.com/ips-v6
dest_file: cloudflare_ip6s.txt
type: string
name: crowdsecurity/cdn-whitelist
description: "Whitelist CDN providers"
whitelist:
reason: "CDN provider"
expression:
- "any(File('cloudflare_ips.txt'), { IpInRange(evt.Overflow.Alert.Source.IP ,#)})"
- "any(File('cloudflare_ip6s.txt'), { IpInRange(evt.Overflow.Alert.Source.IP ,#)})"
data:
- source_url: https://www.cloudflare.com/ips-v4
dest_file: cloudflare_ips.txt
type: string
- source_url: https://www.cloudflare.com/ips-v6
dest_file: cloudflare_ip6s.txt
type: string
What does mean a list object in expression. Is it AND or OR ? Thanks
5 Replies
CrowdSec
CrowdSec3mo ago
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type /unresolve
© Created By WhyAydan for CrowdSec ❤️
mr1jingles
mr1jinglesOP3mo ago
It looks like OR but I am not sure.. And I didn't find an explicit explanation in the documentation
CrowdSec
CrowdSec3mo ago
Resolving explain me a list notation in postoverflow This has now been resolved. If you think this is a mistake please run /unresolve Unresolving explain me a list notation in postoverflow This has now been unresolved.
mr1jingles
mr1jinglesOP3mo ago
Sorry I have found in the docs
a list of expr expressions : if any expression returns true, event is whitelisted
a list of expr expressions : if any expression returns true, event is whitelisted
so it is OR
CrowdSec
CrowdSec3mo ago
Resolving explain me a list notation in postoverflow This has now been resolved. If you think this is a mistake please run /unresolve

Did you find this page helpful?