mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-24 04:14:18 +00:00
* feat(Backend): PRWLR-3989 add RLS to postgresql db and base models * feat(API): PRWLR-3989 add TenantMiddleware * chore(API, Backend): PRWLR-3989 create new db user without RLS bypass on migrations * chore(Backend): PRWLR-3989 fix RLS bypasser for POST requests * fix(Backend): PRWLR-3989 fix user permissions when migrating new models * chore(Backend): PRWLR-3989 add testing view for RLS manual tests * feat(API): PRWLR-3989 add tenant_id to API logging * chore(API, Backend): PRWLR-3989 add TODOs * test(API): PRWLR-3989 add new middleware unit tests * chore(API): PRWLR-3989 refactor RLS code * fix(tests): PRWLR-3989 fix testing db connector * chore: PRWLR-3989 add references to JIRA tickets * fix: PRWLR-3989 remove bypass logic and fix serializers * fix: PRWLR-3989 improve drop SQL query for RLS models * feat(Backend): PRWLR-3989 add specific permissions on each model * fix(Backend): PRWLR-3989 fix database routing and grant select perms * fix(test): PRWLR-3989 fix routing issues with unit tests * chore: PRWLR-3989 remove references to JIRA tickets * chore(Backend): PRWLR-3989 adjust privileges for user on table tenant * chore: PRWLR-3989 add comments on migrations
20 lines
573 B
Bash
20 lines
573 B
Bash
# Django settings
|
|
DJANGO_ALLOWED_HOSTS=localhost,127.0.0.1
|
|
DJANGO_BIND_ADDRESS=0.0.0.0
|
|
DJANGO_PORT=8000
|
|
DJANGO_DEBUG=False
|
|
DJANGO_SETTINGS_MODULE=config.django.[production|devel]
|
|
DJANGO_LOGGING_FORMATTER=[ndjson|human_readable]
|
|
DJANGO_WORKERS=4 # Defaults to the maximum available based on CPU cores if not set.
|
|
DJANGO_CACHE_MAX_AGE=3600
|
|
DJANGO_STALE_WHILE_REVALIDATE=60
|
|
|
|
# PostgreSQL settings
|
|
POSTGRES_HOST=postgres-db
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_ADMIN_USER=prowler
|
|
POSTGRES_ADMIN_PASSWORD=S3cret
|
|
POSTGRES_USER=prowler_user
|
|
POSTGRES_PASSWORD=S3cret
|
|
POSTGRES_DB=prowler_db
|