-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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]: ./checks/check_extra715: line 41: ${SEARCH_SLOWLOG_ENABLED,,}: bad substitution #1058
Comments
Would you give more details about your bash version and environment? |
Hi @yadox666 could you please provide more information? Exact error, bash version, environment ... |
Darwin XXXXXXXXXXXX 20.6.0 Darwin Kernel Version 20.6.0: Wed Jan 12 22:22:42 PST 2022; root:xnu-7195.141.19~2/RELEASE_X86_64 x86_64 GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20) |
We need also information about the error, it is easier if you fill the default template |
Basically to reproduce it and test it |
I have two versions of bash on my machine. As you can see below. $ /bin/bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
Copyright (C) 2007 Free Software Foundation, Inc. $ bash --version
GNU bash, version 5.1.8(1)-release (x86_64-apple-darwin19.6.0)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. The version $ /bin/bash prowler -p default -f sa-east-1 -c extra715
_
_ __ _ __ _____ _| | ___ _ __
| '_ \| '__/ _ \ \ /\ / / |/ _ \ '__|
| |_) | | | (_) \ V V /| | __/ |
| .__/|_| \___/ \_/\_/ |_|\___|_|v2.7.0-24January2022
|_| the handy cloud security tool
Date: Mon Mar 7 11:57:51 -03 2022
Color code for results:
- INFO (Information)
- PASS (Recommended value)
- WARNING (Ignored by whitelist)
- FAIL (Fix required)
This report is being generated using credentials below:
AWS-CLI Profile: [default] AWS API Region: [sa-east-1] AWS Filter Region: [sa-east-1]
AWS Account: [****5262] UserId: [AROA****:****]
Caller Identity ARN: [arn:aws:sts::****5262:assumed-role/****/****]
7.15 [extra715] Check if Amazon Elasticsearch Service (ES) domains have logging enabled - es [Medium]
./checks/check_extra715: line 41: ${SEARCH_SLOWLOG_ENABLED,,}: bad substitution The version $ ./prowler -p default -f sa-east-1 -c extra715
_
_ __ _ __ _____ _| | ___ _ __
| '_ \| '__/ _ \ \ /\ / / |/ _ \ '__|
| |_) | | | (_) \ V V /| | __/ |
| .__/|_| \___/ \_/\_/ |_|\___|_|v2.7.0-24January2022
|_| the handy cloud security tool
Date: Mon Mar 7 11:45:13 -03 2022
Color code for results:
- INFO (Information)
- PASS (Recommended value)
- WARNING (Ignored by whitelist)
- FAIL (Fix required)
This report is being generated using credentials below:
AWS-CLI Profile: [default] AWS API Region: [sa-east-1] AWS Filter Region: [sa-east-1]
AWS Account: [****5262] UserId: [AROA****:****]
Caller Identity ARN: [arn:aws:sts::****5262:assumed-role/****/****]
7.15 [extra715] Check if Amazon Elasticsearch Service (ES) domains have logging enabled - es [Medium]
FAIL! sa-east-1: Amazon ES domain test SEARCH_SLOW_LOGS disabled!
FAIL! sa-east-1: Amazon ES domain test INDEX_SLOW_LOGS disabled! So I believe macOS original bash version is too old to support modern bash variable expansion features. I see two options here.
Just let me know what is the best option and If necessary I can fix the code. |
Thanks @lazize !!! |
Just ran into the same issue today. Any ideas on when this will be resolved? |
Hi @ShadySQL we are going to review it and get this done asap ! |
Fixed in #1064 closing it |
Error message after running:
./prowler -M html,csv,json,json-asff,mono
Prowler 2.7.0-24January2022
The text was updated successfully, but these errors were encountered: