Commit Graph

105 Commits

Author SHA1 Message Date
Benjamin Dauvergne c9b19e9306 misc: send debug logs to journald (#87556)
- remove all code related to sending/parsing debug logs in
  /var/log/<app>/debug.
- add test on DebugLogFilter.
- configure JournalHandler to take debug logs if settings.DEBUG_LOG is True
2024-02-28 12:36:49 +01:00
Frédéric Péters e6c0555f78 misc: always declare lingo_url if lingo is deployed (#86405)
gitea/hobo/pipeline/head This commit looks good Details
2024-02-01 08:55:10 +01:00
Frédéric Péters 2052668f72 debian: set TENANT_LIMIT_SET_CALLS (#84710)
gitea/hobo/pipeline/head There was a failure building this commit Details
2023-12-18 13:19:29 +01:00
Frédéric Péters 95da23e8b7 agent: use wcs-manage to run hobo_deploy/notify commands (#81976)
gitea/hobo/pipeline/head This commit looks good Details
2023-10-27 09:47:02 +02:00
Valentin Deniaud 1b3c26ba2a misc: apply double-quote-string-fixer (#79788) 2023-08-16 10:01:25 +02:00
Frédéric Péters 35179bd7d4 trivial: adjust for pylint (#79712)
gitea/hobo/pipeline/head This commit looks good Details
2023-07-17 12:06:19 +02:00
Thomas NOËL bc2fc251ba middleware: handle X-Real-IP in xforwardedfor (#79390)
gitea/hobo/pipeline/head This commit looks good Details
2023-07-17 12:02:14 +02:00
Frédéric Péters 2fcc947c29 misc: remove obsolete CookiesSameSiteFixMiddleware (#79711)
gitea/hobo/pipeline/head This commit looks good Details
2023-07-17 09:31:07 +02:00
Valentin Deniaud c03b743a58 agent: save role slug during provisionning (#77487)
gitea/hobo/pipeline/head This commit looks good Details
2023-05-11 17:25:06 +02:00
Valentin Deniaud 4c419c0695 misc: bump black version (#75442) 2023-03-29 14:49:55 +02:00
Valentin Deniaud cebdcf5bbf misc: change django-upgrade target version to 3.2 (#75442) 2023-03-29 14:49:55 +02:00
Emmanuel Cazenave 9bc96520ac django32: use public API to clear caches (#67760) 2023-01-30 14:53:15 +01:00
Emmanuel Cazenave b9e4dab140 django32: honor django's generated error formats (#67760) 2023-01-30 14:53:15 +01:00
Benjamin Dauvergne 3ac54aa650 django32: implement clear_tenants_settings as a global function (#67760)
Django 3.2 introduced a constraint on the access of settings object
attributes, they can only be in uppercase. As clear_tenants_settings is
only used by tests on the multitenant framework, clear_tenants_settings
is reimplemented as a global function using a global variable
_tenant_settings_wrapper to access the global multitenant aware wrapper
around the setting object.
2023-01-30 14:53:15 +01:00
Thomas NOËL 420ed17e07 multitenant: show ETA on migrate_schemas (#68034) 2022-12-09 12:20:39 +01:00
Benjamin Dauvergne 11ad397384 misc: move tenant conservation in Thread.start (#69942) 2022-10-06 11:11:41 +02:00
Valentin Deniaud a107b7ef0e misc: apply pyupgrade (#69708) 2022-09-29 15:23:49 +02:00
Agate 5e5125c97d tox: fixed inconsistent / obscure db names during tests (#67933) 2022-08-08 09:42:52 +02:00
Agate d2b5a32997 Parallelize tests in CI (#67911) 2022-08-03 13:56:05 +02:00
Emmanuel Cazenave 69c7759bdb multitenant: add legacy urls settings loader (#64347) 2022-05-05 14:49:18 +02:00
Frédéric Péters 9877b65265 misc: remove usage of django.utils.six (#63684) 2022-04-15 18:28:51 +02:00
Emmanuel Cazenave e0f7576d84 multitenant: give up 'unsecure' file mechanism (#63119) 2022-03-29 11:59:51 +02:00
Benjamin Dauvergne fc2c4ee794 add uwsgidecorators module (#57019) 2022-01-28 17:58:21 +01:00
Benjamin Dauvergne 7817af0ded tests: refactor multitenant conftest (#57019) 2022-01-28 17:58:21 +01:00
Benjamin Dauvergne 1d26faf22b tests: fix number of queries in test (#59794) 2021-12-16 17:50:38 +01:00
Emmanuel Cazenave ac0079c68a multitenant: add --legacy-hostname option to create_tenant (#59094) 2021-12-15 12:10:20 +01:00
Emmanuel Cazenave b915308d74 multitenant: use TENANT_DISABLE_CRON_JOBS to disable cron for a specific tenant (#57527) 2021-11-02 13:55:42 +01:00
Benjamin Dauvergne add04ecadb provisionning: log received provisionning messages and actions (#56907) 2021-10-01 00:02:01 +02:00
Emmanuel Cazenave 6e896dbcdd provisionning: delete roles in one query when deprovisionning (#55043)
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
gitea/hobo/pipeline/head Something is wrong with the build of this commit Details
2021-09-28 15:19:16 +02:00
Emmanuel Cazenave 5dc88fc9a7 provisionning: delete superfluous roles in one query (#55043) 2021-09-28 15:15:53 +02:00
Emmanuel Cazenave 32ce076834 provisionning: grab existing roles by uuid in one query (#55043) 2021-09-28 15:15:53 +02:00
Emmanuel Cazenave 438b79dc7e provisionning: count db queries (#55043) 2021-09-28 15:15:53 +02:00
Benjamin Dauvergne 44fc912ab4 provisionning: integrate changes to UserSAMLIdentifier (#57084)
Cf. #56819
2021-09-20 12:35:17 +02:00
Paul Marillonnet ded8905ebc logging: filter out http 403 messages in request context filter (#56711) 2021-09-16 12:20:26 +02:00
Emmanuel Cazenave f9de8f6f6d multitenant: enable DISABLE_CRON_JOBS for a specific tenant (#56595) 2021-09-13 16:26:22 +02:00
Benjamin Dauvergne cd1e3ce53e provisionning: use actual field's max_length when truncating (#56411) 2021-08-27 19:18:54 +02:00
Benjamin Dauvergne 739bffb78b provisionning: add hex digest to truncated role's name (#56295)
Max length of role's name is also augmented to 150 starting with Django
2.2.
2021-08-23 14:05:47 +02:00
Frédéric Péters 3252785cd0 agent: look for wcs tenant in both old and new directories (#54614) 2021-06-07 12:25:17 +02:00
Frédéric Péters 872f39774a trivial: apply black 2021-05-14 18:40:09 +02:00
Benjamin Dauvergne 1d712335ef tests: truncate database name to 63 characters 2021-03-05 15:25:43 +01:00
Frédéric Péters d5b56715f3 general: remove python2-only code (#51515) 2021-03-01 16:33:22 +01:00
Benjamin Dauvergne d1636eeece misc: log DisallowedHost as warnings (#42824) 2021-02-08 14:52:18 +01:00
Benjamin Dauvergne 17ee1bf6d5 middleware: define setting for CSRF cookie SameSite value (#48767) 2020-12-14 16:20:33 +01:00
Benjamin Dauvergne d41a4e3409 multitenant: use real tenant in migration commands (#48071) 2020-10-29 16:32:57 +01:00
Lauréline Guérin 3ead547aa1
settings: remove old MIDDLEWARE_CLASSES support (#45671)
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
gitea/hobo/pipeline/head There was a failure building this commit Details
2020-10-13 09:31:15 +02:00
Benjamin Dauvergne e1647d8f56 debian: add InternalIpMiddleware (#29149)
It sets DEBUG=True when current request IP is in settings.INTERNAL_IPS.
2020-08-25 10:37:36 +02:00
Benjamin Dauvergne afe4b98f64 debian: add debug log in /var/log/<app>/debug (#29149)
It's configured through the DEBUG_LOG settings:
* DEBUG_LOG = False, no debug log
* DEBUG_LOG = True, all debug log go to /var/log/<app>/debug
* DEBUG_LOG = app1,app2, only debug log of logger app1 and app2
  go to /var/log/<app>/debug

/var/log/<app>/debug is emptied everyday at midnight.
2020-08-25 10:37:34 +02:00
Nicolas Roche 7ce95390ac tests: insert log filter on correct handler (#45615) 2020-07-31 17:12:46 +02:00
Thomas NOËL ad23d09e3a multitenant: show domain and schema in tenant object str method (#45343) 2020-07-28 15:18:08 +02:00
Valentin Deniaud 88c06f1df0 agent: save role emails during provisionning (#44754) 2020-07-10 16:26:36 +02:00