mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-22 11:24:17 +00:00
* chore(db providers): db providers first version * chore(db provider): added db provider setup into Readme * fix(csv_line): csv_line out of conditional * fix(README): text instead of varchar in table * fix(help): help message extended Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com> * fix(typo): Update README.md Co-authored-by: Pepe Fagoaga <pepe@verica.io> * fix(table): add if not exists Co-authored-by: Pepe Fagoaga <pepe@verica.io> * fix(typo): Readme postgreSQL Co-authored-by: Pepe Fagoaga <pepe@verica.io> * fix(db_connector): details to add a new provider * fix(typo): Uppercase Prowler Co-authored-by: Toni de la Fuente <toni@blyx.com> * fix(prowler): deleted unused variable * chore(checks): test db connector previous to send data * chore(input tests): input tests moved to main * fix(typo): Readme typos * chore(table): table name from pgpass file * fix(grep test): Added missing -E flag * chore(table): check of table name and Readme * chore(error colors): Added error colors * chore(inputcheck): checks about mode and output inputs into main * fix(inputs) custom output file name * fix(outputs): comment profile * chore(textXXX): both 3 textfunctions using general * fix(allowlist): allowlist check included as function * fix(headers): Add headers to certain output files * fix(reformulate): change structure and delete comments * fix(testing): Input test after load includes * fix(variables): Added named vars * fix(colors): Deleted unused colors * fix(outputs): fine tuning * fix(outputs): allowlist parameters read * fix(allowlist): allowlist logic reformulated * fix(REPREGION): REPREGION change by REGION_FROM_CHECK Co-authored-by: Sergio Garcia <38561120+sergargar@users.noreply.github.com> Co-authored-by: Pepe Fagoaga <pepe@verica.io> Co-authored-by: Toni de la Fuente <toni@blyx.com>
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
# Prowler - the handy cloud security tool (copyright 2018) by Toni de la Fuente
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
# use this file except in compliance with the License. You may obtain a copy
|
|
# of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software distributed
|
|
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations under the License.
|
|
|
|
|
|
# Colors
|
|
# NOTE: Your editor may NOT show the 0x1b / escape character left of the '['
|
|
NORMAL="[0;39m"
|
|
WARNING="[0;33m" # Warning (brown)
|
|
NOTICE="[1;33m" # Notice (yellow)
|
|
OK="[1;32m" # Ok (green)
|
|
BAD="[1;31m" # Bad (red)
|
|
CYAN="[0;36m"
|
|
BLUE="[0;34m"
|
|
BROWN="[0;33m"
|
|
MAGENTA="[1;35m"
|
|
RED="[1;31m"
|
|
YELLOW="[1;33m"
|
|
|
|
printColorsCode(){
|
|
if [[ $MONOCHROME -eq 0 ]]; then
|
|
echo -e "\n$NORMAL Color code for results: "
|
|
echo -e " - $NOTICE INFO (Information)$NORMAL"
|
|
echo -e " - $OK PASS (Recommended value)$NORMAL"
|
|
echo -e " - $WARNING WARNING (Ignored by allowlist)$NORMAL"
|
|
echo -e " - $BAD FAIL (Fix required)$NORMAL"
|
|
fi
|
|
}
|