mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-08 20:33:41 +00:00
* 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
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Django settings
|
|
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
|
|
DJANGO_BIND_ADDRESS=0.0.0.0
|
|
DJANGO_PORT=8000
|
|
DJANGO_DEBUG=False
|
|
# select one of [production|devel]
|
|
DJANGO_SETTINGS_MODULE=config.django.[production|devel]
|
|
# select one of [ndjson|human_readable]
|
|
DJANGO_LOGGING_FORMATTER=[ndjson|human_readable]
|
|
# select one of [DEBUG|INFO|WARNING|ERROR|CRITICAL]
|
|
# applies to both Django and Celery Workers
|
|
DJANGO_LOGGING_LEVEL=INFO
|
|
DJANGO_WORKERS=4 # Defaults to the maximum available based on CPU cores if not set.
|
|
DJANGO_TOKEN_SIGNING_KEY=""
|
|
DJANGO_TOKEN_VERIFYING_KEY=""
|
|
# Token lifetime is in minutes
|
|
DJANGO_ACCESS_TOKEN_LIFETIME=30
|
|
DJANGO_REFRESH_TOKEN_LIFETIME=1440
|
|
DJANGO_CACHE_MAX_AGE=3600
|
|
DJANGO_STALE_WHILE_REVALIDATE=60
|
|
|
|
# PostgreSQL settings
|
|
# If running django and celery on host, use 'localhost', else use 'postgres-db'
|
|
POSTGRES_HOST=[localhost|postgres-db]
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_ADMIN_USER=prowler
|
|
POSTGRES_ADMIN_PASSWORD=S3cret
|
|
POSTGRES_USER=prowler_user
|
|
POSTGRES_PASSWORD=S3cret
|
|
POSTGRES_DB=prowler_db
|
|
|
|
# Valkey settings
|
|
# If running django and celery on host, use localhost, else use 'valkey'
|
|
VALKEY_HOST=[localhost|valkey]
|
|
VALKEY_PORT=6379
|
|
VALKEY_DB=0
|