Skip to content
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

Merge new components: API and UI #5875

Merged
merged 599 commits into from
Nov 25, 2024
Merged

Merge new components: API and UI #5875

merged 599 commits into from
Nov 25, 2024

Conversation

snaow
Copy link
Member

@snaow snaow commented Nov 25, 2024

Hello, Prowler community!

In this pull request, we’re excited to introduce two new components to Prowler: The ui and the api.

ui: This new UI will empower any user with full access to all Prowler capabilities via a web interface written in NextJS and NextUI.
api: Which houses an API built with Django and Django DRF. This API layer connects Prowler scanner with Prowler UI. It also manages all data storage and retrieval, utilizing a PostgreSQL database.

All of this is currently WORK IN PROGRESS, and once it’s ready, we’ll be launching Prowler v5, complete with updated documentation, installation guides, and much more.

Stay tuned—we’ll be sharing more exciting updates soon!

Thanks for your support. The Prowler team is highly motivated and thrilled to continue leading the Open Cloud Security movement.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

paabloLC and others added 30 commits October 1, 2024 14:29
…nd findings/resources in database (#48)

* feat(Users): PRWLR-4718 make user email the default login username

* feat(Token): PRWLR-4718 add serializers, views and urls for access and refresh tokens

* feat(Token): PRWLR-4718 add first membership tenant in token if not present in json body

* feat(Users): PRWLR-4718 add company_name to model

* feat(Users): PRWLR-4718 create tenant and membership when creating new user

* fix(BaseView): PRWLR-4718 add tenant_id to serializer context

* fix(Tests): PRWLR-4718 use authorization with unit tests

* fix(Views): PRWLR-4718 fix tenant retrieval from request

* fix(Tests): PRWLR-4718 fix tests

* fix(Fixtures): PRWLR-4718 fix tenant memberships ordering

* chore(Tokens): PRWLR-4718 update token url

* chore(Spec): PRWLR-4718 update API spec

* feat(Tokens): PRWLR-4718 enable token refresh blacklisting

* feat(Tokens): PRWLR-4718 implement RS256 algorithm and dev valid keys

* chore(env): PRWLR-4718 update .env.example

* chore(Deps): PRWLR-4015 update prowler dep

* fix(Resources, Findings): PRWLR-4015 fix permission issues on models and migrations

* feat(Scans, Tasks, Resources, Findings): PRWLR-4015 perform whole flow when executing scans

* fix(Settings): PRWLR-4015 fix devel JWT settings

* chore(Scans, Tasks): PRWLR-4015 improve docs and responses format

* test(Scan, Provider): PRWLR-4015 fix unit tests

* chore(Environment): PRWLR-4015 fix .env.example values

* test(Scan): PRWLR-4015 add unit tests for scan task

* chore(Task): PRWLR-4015 give proper format to task result on scan perform

* feat(Provider, Scan): PRWLR-4015 add all provider types to connection check and scan

* fix(Logging): PRWLR-4015 fix API logger middleware to include tenant and user IDs
…nd race conditions (#49)

* fix(Task): PRWLR-4970 add TaskResult entry to database when task reaches broker

* fix(Task, Scan): PRWLR-4970 remove race conditions using atomic transactions

* chore(Django): PRWLR-4970 bump Django version to 5.1.1
…y and improve docs (#50)

* chore(Django-filter): PRWLR-4948 bump django-filter version to 24.3

* fix(Middleware): PRWLR-4948 fix logging middleware when auth is not present in request

* fix(Task): PRWLR-4948 fix serializer state values

* chore(Filters): PRWLR-4948 use ChoiceFilter instead of implementing method for basic filters

* chore(Filters): PRWLR-4948 refactor complex filters to reduce complexity
…ult ordering in viewsets (#51)

* chore(Tenant, Provider, Scan, Task, Resource): PRWLR-4966 set default ordering to -inserted_at

* chore: PRWLR-4966 update API schema
…tication-endpoint-OSS-bg-2

Styling signIn and signUp pages
…tication-endpoint-OSS

Integrate authentication endpoint oss
paabloLC and others added 17 commits November 20, 2024 16:06
…e-final-tweaks-for-Findings-page

Tweaks for findings details and filters
* feat(Overview): PRWLR-5433 add overviews/providers views and serializers

* test(Overview): PRWLR-5433 add unit tests

* chore(Schema): update API schema

* feat(Overview): PRWLR-5433 order by -findings_failed by default

* test(Tenant): PRWLR-5433 fix unit test
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.10.8 to 3.10.11.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](aio-libs/aiohttp@v3.10.8...v3.10.11)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…dd-Provider-Remove-Start-now

feat(providers) providers page add provider remove start now
…ovider-Overview

feat(overview): overview page provider overview
@snaow snaow requested review from a team as code owners November 25, 2024 13:06
@github-actions github-actions bot added the github_actions Pull requests that update GitHub Actions code label Nov 25, 2024
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 91.71364% with 294 lines in your changes missing coverage. Please review.

Project coverage is 93.69%. Comparing base (26a9748) to head (04d99f1).
Report is 608 commits behind head on master.

Files with missing lines Patch % Lines
api/src/backend/api/partitions.py 0.00% 66 Missing ⚠️
api/src/backend/config/custom_logging.py 42.37% 34 Missing ⚠️
api/src/backend/api/v1/serializers.py 94.14% 27 Missing ⚠️
api/src/backend/config/guniconf.py 0.00% 24 Missing ⚠️
api/src/backend/api/v1/views.py 96.22% 19 Missing ⚠️
api/src/backend/api/rls.py 83.13% 14 Missing ⚠️
api/src/backend/tasks/jobs/scan.py 89.70% 14 Missing ⚠️
api/src/backend/api/filters.py 94.68% 11 Missing ⚠️
api/src/backend/manage.py 0.00% 11 Missing ⚠️
api/src/backend/api/db_utils.py 93.57% 9 Missing ⚠️
... and 14 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5875      +/-   ##
==========================================
+ Coverage   89.84%   93.69%   +3.85%     
==========================================
  Files        1139       58    -1081     
  Lines       35483     4663   -30820     
==========================================
- Hits        31878     4369   -27509     
+ Misses       3605      294    -3311     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link
Member

@jfagoagas jfagoagas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is an honor to approve this PR, a bright future is ahead of us! 🚀 🚀 🚀 🚀

@snaow snaow merged commit 94c6253 into master Nov 25, 2024
14 checks passed
@snaow snaow deleted the merge-api-ui branch November 25, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants