Skip to content

Commit

Permalink
chore: Update CROWDSEC_ALWAYS_SEND_TO_APPSEC and CROWDSEC_APPSEC_SSL_…
Browse files Browse the repository at this point in the history
…VERIFY types

This commit updates the default values for the CROWDSEC_ALWAYS_SEND_TO_APPSEC and CROWDSEC_APPSEC_SSL_VERIFY configuration variables in the crowdsec-conf.py file. The values are changed from "false" to "no" to align with the plugin.json file. This ensures consistency and clarity in the configuration options.
  • Loading branch information
TheophileDiot committed Jun 25, 2024
1 parent 27df826 commit afee970
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions crowdsec/jobs/crowdsec-conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
CROWDSEC_APPSEC_CONNECT_TIMEOUT=getenv("CROWDSEC_APPSEC_CONNECT_TIMEOUT", "100"),
CROWDSEC_APPSEC_SEND_TIMEOUT=getenv("CROWDSEC_APPSEC_SEND_TIMEOUT", "100"),
CROWDSEC_APPSEC_PROCESS_TIMEOUT=getenv("CROWDSEC_APPSEC_PROCESS_TIMEOUT", "500"),
CROWDSEC_ALWAYS_SEND_TO_APPSEC=getenv("CROWDSEC_ALWAYS_SEND_TO_APPSEC", "false"),
CROWDSEC_APPSEC_SSL_VERIFY=getenv("CROWDSEC_APPSEC_SSL_VERIFY", "false"),
CROWDSEC_ALWAYS_SEND_TO_APPSEC="true" if getenv("CROWDSEC_ALWAYS_SEND_TO_APPSEC", "no") == "yes" else "false",
CROWDSEC_APPSEC_SSL_VERIFY="true" if getenv("CROWDSEC_APPSEC_SSL_VERIFY", "no") == "yes" else "false",
)
.encode()
)
Expand Down
14 changes: 6 additions & 8 deletions crowdsec/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,23 +144,21 @@
},
"CROWDSEC_ALWAYS_SEND_TO_APPSEC": {
"context": "global",
"default": "false",
"default": "no",
"help": "Send the request to the AppSec Component even if there is a decision for the IP.",
"id": "crowdsec-always-send-to-appsec",
"label": "Always send to AppSec",
"regex": "^(true|false)$",
"type": "select",
"select": ["true", "false"]
"regex": "^(yes|no)$",
"type": "check"
},
"CROWDSEC_APPSEC_SSL_VERIFY": {
"context": "global",
"default": "false",
"default": "no",
"help": "Verify the AppSec Component SSL certificate validity.",
"id": "crowdsec-appsec-ssl-verify",
"label": "AppSec SSL verify",
"regex": "^(true|false)$",
"type": "select",
"select": ["true", "false"]
"regex": "^(yes|no)$",
"type": "check"
}
},
"jobs": [
Expand Down

0 comments on commit afee970

Please sign in to comment.