mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-14 07:24:15 +00:00
* feat(Findings): initial findings model * fix(Findings): add view, serializers, migration for enums * fix(Findings): incomplete jsonb_to_tsvector wrapper will not run as written * fix(Findings): use Severity and Status enums from prowler SDK * tests(Findings): add failing view tests * fix(Finding): add resource relationship not returning correct data from serializer, missing links * fix(FindingSerializer): get Scan & Resource relationships to show up * fix(FindingFilter): add more filter fields * fix(FindingFilter): filter on provider id * fix(FindingSerializer): return Resource in relationship not ResourceFindingMapping * fix(FindingModel): update migration * fix(FindingFilter): full text search on findings * fix(Resources): include Findings in ResourceSerializer * fix(FindingFilter): expand text search columns * fix(DbUtils): docstring, not comment * fix(BaseViews): remove TODO comment not applicable right now * fix(Fixtures): add more findings to fixture file and change on_delete behavior for resource_finding_mapping * fix(Resources): rename index to match others * fix(Findings): update Findigns RLS to allow for full CRUD eventually we'll let users enter a manual finding which implies INSERT, UPDATE, DELETE * fix(Findings): use TextChoices directly for Status enum * fix(FindingSerializer): build a set instead of a list * consistency in fixtures Co-authored-by: Víctor Fernández Poyatos <victor@prowler.com> * fix(API): update v1 spec for findings * feat(Findings): store findings in a partitioned table * fix(Settings): change unit of partition max age to match unit when creating * docs(Partitions): document how to manage partitions via manage.py * fix(Findings): add tag for spec/docs * fix(Findings): clean up migrations * fix(Findings): convert scan_id and inserted_at filters into finding.id filters * fix(Findings): add default filter for today and set default sort order * fix(Findings): add default filter for today and set default sort order * fix(Findings): update fixtures so datetime matches id * fix(Findings): partition the ResourceFindingMapping table to match Findings * docs(Partitions): document postgres config values more * docs(UUIDUtils): do not use raw query strigns (typo) * docs(Partitions): change unit in comment description * fix(Findings): change resource_name & tags to be Finding * docs(Partitions): change unit in partitions settings docstring * fix(Findings): remove conflicting logic & filters * chore: apply suggested changes * chore: optimize imports --------- Co-authored-by: Víctor Fernández Poyatos <victor@prowler.com>
54 lines
1.3 KiB
TOML
54 lines
1.3 KiB
TOML
[build-system]
|
|
build-backend = "poetry.core.masonry.api"
|
|
requires = ["poetry-core"]
|
|
|
|
[tool.poetry]
|
|
authors = ["Prowler Team"]
|
|
description = "Prowler's API (Django/DRF)"
|
|
license = "AGPL-3.0"
|
|
name = "prowler-api"
|
|
package-mode = false
|
|
version = "1.0.0"
|
|
|
|
[tool.poetry.dependencies]
|
|
celery = {extras = ["pytest"], version = "^5.4.0"}
|
|
django = "5.0.8"
|
|
django-celery-results = "^2.5.1"
|
|
django-cors-headers = "4.4.0"
|
|
django-environ = "0.11.2"
|
|
django-filter = "24.2"
|
|
django-guid = "3.5.0"
|
|
django-postgres-extra = "^2.0.8"
|
|
djangorestframework = "3.15.2"
|
|
djangorestframework-jsonapi = "7.0.2"
|
|
djangorestframework-simplejwt = "^5.3.1"
|
|
drf-spectacular = "0.27.2"
|
|
drf-spectacular-jsonapi = "0.4.1"
|
|
gunicorn = "23.0.0"
|
|
prowler = {git = "https://github.com/prowler-cloud/prowler.git", branch = "master"}
|
|
psycopg2-binary = "2.9.9"
|
|
pytest-celery = {extras = ["redis"], version = "^1.0.1"}
|
|
# Needed for prowler compatibility
|
|
python = ">=3.11,<3.13"
|
|
uuid6 = "2024.7.10"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
bandit = "1.7.9"
|
|
coverage = "7.5.4"
|
|
docker = "7.1.0"
|
|
freezegun = "1.5.1"
|
|
mypy = "1.10.1"
|
|
pylint = "3.2.5"
|
|
pytest = "8.2.2"
|
|
pytest-cov = "5.0.0"
|
|
pytest-django = "4.8.0"
|
|
pytest-env = "1.1.3"
|
|
pytest-randomly = "3.15.0"
|
|
pytest-xdist = "3.6.1"
|
|
ruff = "0.5.0"
|
|
safety = "3.2.3"
|
|
vulture = "2.11"
|
|
|
|
[tool.poetry.scripts]
|
|
celery = "src.backend.config.settings.celery"
|