Skip to content

Commit

Permalink
Merge branch 'master' of github.com:prowler-cloud/prowler into global…
Browse files Browse the repository at this point in the history
…-provider-in-class
  • Loading branch information
jfagoagas committed May 17, 2024
2 parents 0bde02d + 53cfcff commit c3ef16d
Show file tree
Hide file tree
Showing 58 changed files with 2,855 additions and 376 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Safety
if: steps.are-non-ignored-files-changed.outputs.any_changed == 'true'
run: |
poetry run safety check
poetry run safety check --ignore 67599
- name: Vulture
if: steps.are-non-ignored-files-changed.outputs.any_changed == 'true'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ repos:
- id: safety
name: safety
description: "Safety is a tool that checks your installed dependencies for known security vulnerabilities"
entry: bash -c 'safety check'
entry: bash -c 'safety check --ignore 67599'
language: system

- id: vulture
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ It contains hundreds of controls covering CIS, NIST 800, NIST CSF, CISA, RBI, Fe

| Provider | Checks | Services | [Compliance Frameworks](https://docs.prowler.com/projects/prowler-open-source/en/latest/tutorials/compliance/) | [Categories](https://docs.prowler.com/projects/prowler-open-source/en/latest/tutorials/misc/#categories) |
|---|---|---|---|---|
| AWS | 322 | 62 -> `prowler aws --list-services` | 28 -> `prowler aws --list-compliance` | 7 -> `prowler aws --list-categories` |
| GCP | 77 | 13 -> `prowler gcp --list-services` | 2 -> `prowler gcp --list-compliance` | 2 -> `prowler gcp --list-categories`|
| Azure | 127 | 16 -> `prowler azure --list-services` | 3 -> `prowler azure --list-compliance` | 2 -> `prowler azure --list-categories` |
| AWS | 326 | 63 -> `prowler aws --list-services` | 28 -> `prowler aws --list-compliance` | 6 -> `prowler aws --list-categories` |
| GCP | 75 | 11 -> `prowler gcp --list-services` | 1 -> `prowler gcp --list-compliance` | 2 -> `prowler gcp --list-categories`|
| Azure | 127 | 16 -> `prowler azure --list-services` | 2 -> `prowler azure --list-compliance` | 2 -> `prowler azure --list-categories` |
| Kubernetes | 83 | 7 -> `prowler kubernetes --list-services` | 1 -> `prowler kubernetes --list-compliance` | 7 -> `prowler kubernetes --list-categories` |

# 💻 Installation
Expand Down
11 changes: 7 additions & 4 deletions dashboard/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# Initialize the app - incorporate css
dashboard = dash.Dash(
__name__,
external_stylesheets=[dbc.themes.DARKLY],
external_stylesheets=[dbc.themes.FLATLY],
use_pages=True,
suppress_callback_exceptions=True,
title="Prowler Dashboard",
Expand Down Expand Up @@ -60,7 +60,9 @@ def generate_nav_links(current_path):
link_content = html.Span(
[
html.Img(src=icon_url, className="w-5"),
html.Span(page["name"], className="font-medium text-base leading-6"),
html.Span(
page["name"], className="font-medium text-base leading-6 text-white"
),
],
className="flex justify-center lg:justify-normal items-center gap-x-3 py-2 px-3",
)
Expand Down Expand Up @@ -96,7 +98,8 @@ def generate_help_menu():
[
html.Img(src=link["icon"], className="w-5"),
html.Span(
link["title"], className="font-medium text-base leading-6"
link["title"],
className="font-medium text-base leading-6 text-white",
),
],
className="flex items-center gap-x-3 py-2 px-3",
Expand Down Expand Up @@ -160,7 +163,7 @@ def update_nav_bar(pathname):
html.Img(src="assets/favicon.ico", className="w-5"),
"Subscribe to prowler SaaS",
],
className="flex items-center gap-x-3",
className="flex items-center gap-x-3 text-white",
),
],
href="https://prowler.com/",
Expand Down
1 change: 1 addition & 0 deletions dashboard/assets/images/icons/arrows.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dashboard/assets/images/icons/dropdown.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
175 changes: 140 additions & 35 deletions dashboard/assets/styles/dist/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* Use this file to add custom styles using Tailwind's utility classes. */

/*
! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com */
! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
Expand Down Expand Up @@ -216,6 +216,8 @@ textarea {
/* 1 */
line-height: inherit;
/* 1 */
letter-spacing: inherit;
/* 1 */
color: inherit;
/* 1 */
margin: 0;
Expand All @@ -239,9 +241,9 @@ select {
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
-webkit-appearance: button;
/* 1 */
background-color: transparent;
Expand Down Expand Up @@ -497,6 +499,10 @@ video {
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}

::backdrop {
Expand Down Expand Up @@ -547,14 +553,18 @@ video {
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}

.custom-grid {
grid-template-columns: minmax(0, 16fr) repeat(11, minmax(0, 11fr));
}

.visible {
visibility: visible;
.collapse {
visibility: collapse;
}

.relative {
Expand Down Expand Up @@ -594,6 +604,10 @@ video {
margin-right: auto;
}

.mb-0 {
margin-bottom: 0px;
}

.mb-2 {
margin-bottom: 0.5rem;
}
Expand All @@ -618,6 +632,14 @@ video {
margin-top: auto;
}

.mb-\[30px\] {
margin-bottom: 30px;
}

.mt-\[30px\] {
margin-top: 30px;
}

.block {
display: block;
}
Expand All @@ -634,14 +656,6 @@ video {
display: inline-flex;
}

.min-w-36 {
min-width: 9rem;
}

.min-w-44 {
min-width: 11rem;
}

.table {
display: table;
}
Expand All @@ -662,6 +676,10 @@ video {
max-height: 300px;
}

.w-3 {
width: 0.75rem;
}

.w-5 {
width: 1.25rem;
}
Expand All @@ -670,6 +688,50 @@ video {
width: 2rem;
}

.w-\[10\%\] {
width: 10%;
}

.w-\[10\.5\%\] {
width: 10.5%;
}

.w-\[11\%\] {
width: 11%;
}

.w-\[13\.5\%\] {
width: 13.5%;
}

.w-\[14\.5\%\] {
width: 14.5%;
}

.w-\[15\%\] {
width: 15%;
}

.w-\[36\%\] {
width: 36%;
}

.w-\[4\%\] {
width: 4%;
}

.w-\[40\.5\%\] {
width: 40.5%;
}

.w-\[9\%\] {
width: 9%;
}

.w-\[9\.5\%\] {
width: 9.5%;
}

.w-fit {
width: -moz-fit-content;
width: fit-content;
Expand All @@ -679,6 +741,10 @@ video {
width: 100%;
}

.min-w-36 {
min-width: 9rem;
}

.grid-cols-12 {
grid-template-columns: repeat(12, minmax(0, 1fr));
}
Expand Down Expand Up @@ -796,30 +862,31 @@ video {
}

.bg-gradient-failed {
background-image: linear-gradient(127.43deg, #F1F5F8 -177.68%, #e67272 87.35%);
background-image: linear-gradient(127.43deg, #F1F5F8 -177.68%, #EF4444 87.35%);
}

.bg-gradient-passed {
background-image: linear-gradient(127.43deg, #F1F5F8 -177.68%, #54d283 87.35%);
background-image: linear-gradient(127.43deg, #F1F5F8 -177.68%, #4ADE80 87.35%);
}

.bg-gradient-muted {
background-image: linear-gradient(127.43deg, #F1F5F8 -177.68%, #636c78 87.35%);
.p-2 {
padding: 0.5rem;
}

.p-3 {
padding: 0.75rem;
}

.p-2 {
padding: 0.5rem;
}

.px-10 {
padding-left: 2.5rem;
padding-right: 2.5rem;
}

.px-2 {
padding-left: 0.5rem;
padding-right: 0.5rem;
}

.px-3 {
padding-left: 0.75rem;
padding-right: 0.75rem;
Expand Down Expand Up @@ -854,6 +921,10 @@ video {
padding-bottom: 0.75rem;
}

.pr-2 {
padding-right: 0.5rem;
}

.text-center {
text-align: center;
}
Expand Down Expand Up @@ -929,6 +1000,11 @@ video {
color: rgb(41 37 36 / var(--tw-text-opacity));
}

.text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}

.opacity-90 {
opacity: 0.9;
}
Expand Down Expand Up @@ -992,19 +1068,6 @@ video {
/* Firefox */
}

/*Styles for previous-vext-container from table*/
.previous-next-container {
margin-top: 1rem;
color: #000;
}

/*Style for input in filter table*/
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner input:not([type=radio]):not([type=checkbox]) {
color: #FFF !important;
opacity: 1 !important;
}


#_dash-app-content {
--tw-bg-opacity: 1;
background-color: rgb(231 229 228 / var(--tw-bg-opacity));
Expand Down Expand Up @@ -1041,6 +1104,10 @@ video {
color: rgb(41 37 36 / var(--tw-text-opacity));
}

#_dash-app-content .accordion .accordion-collapse.collapse {
visibility: visible;
}

#_dash-app-content .accordion .accordion-button:not(.collapsed) {
--tw-bg-opacity: 1;
background-color: rgb(231 229 228 / var(--tw-bg-opacity));
Expand Down Expand Up @@ -1157,6 +1224,10 @@ video {
width: auto;
}

.overview-table .card .collapse {
visibility: visible;
}

@media (min-width: 1536px) {
.\32xl\:container {
width: 100%;
Expand Down Expand Up @@ -1299,3 +1370,37 @@ video {
row-gap: 0px;
}
}

@media (min-width: 1536px) {
.\32xl\:w-\[10\%\] {
width: 10%;
}

.\32xl\:w-\[12\.5\%\] {
width: 12.5%;
}

.\32xl\:w-\[14\%\] {
width: 14%;
}

.\32xl\:w-\[15\.5\%\] {
width: 15.5%;
}

.\32xl\:w-\[2\%\] {
width: 2%;
}

.\32xl\:w-\[48\%\] {
width: 48%;
}

.\32xl\:w-\[71\.5\%\] {
width: 71.5%;
}

.\32xl\:w-\[9\%\] {
width: 9%;
}
}

0 comments on commit c3ef16d

Please sign in to comment.