Commit Graph

1688 Commits

Author SHA1 Message Date
Thomas NOËL 64d973c20e emails: restrict domains for default_from_email (#72173)
gitea-wip/hobo/pipeline/pr-main Something is wrong with the build of this commit Details
gitea/hobo/pipeline/pr-main Something is wrong with the build of this commit Details
gitea/hobo/pipeline/head Something is wrong with the build of this commit Details
2023-02-10 00:38:28 +01:00
Lauréline Guérin 13f0821c66
applications: fix Element type size (#74233)
gitea-wip/hobo/pipeline/pr-main This commit looks good Details
2023-02-06 17:50:05 +01:00
Frédéric Péters 88d1681a12 ci: upgrade isort (#74044) 2023-02-01 09:43:24 +01:00
Benjamin Dauvergne b3520030f5 tests: improve search of a free TCP port (#72645) 2023-01-31 17:36:13 +01:00
Benjamin Dauvergne 842f699e8a django32: change the way Thread are made tenant aware (#67760)
gitea-wip/hobo/pipeline/pr-main This commit looks good Details
Django 3.2. changed the implementation of django.db.ConnectionHandler it
now uses asgiref.local.Local as a thread/asyncio-task local dictionnary
instead of threading.local. This new implementation use
threading.current_thread() to get a reference to the current thread
instead of threading._get_ident(), but inside __bootstrap_inner, the
_active dictionnary is not initialized and current_thread() returns a
dummy value instead of the current thread.

To work around this behaviour I made __bootstrap_inner wrap the run
method with the code needed to setup the tenant, so that it's run after
__boostrap_inner initialization of the current thread in the _active
dictionnary.
2023-01-30 14:54:37 +01: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
Emmanuel Cazenave f05596a088 django32: check message content directly in the page (#67760)
Which is the point of interest anyway.
https://code.djangoproject.com/ticket/32191 for details on why it is not possible anymore to check the plain text in the response header.
2023-01-30 14:53:15 +01:00
Agate 4a1cfa5a16 django32: do not instanciate ServiceBase abstract model (#67760) 2023-01-30 14:53:15 +01:00
Emmanuel Cazenave dbf76af91e django32: run tests against django 3.2 (#67760) 2023-01-30 14:53:15 +01:00
Frédéric Péters 65ff0ad9a6 context processors: return mini-template if there's no skeleton url (#73796) 2023-01-27 08:25:40 +01:00
Benjamin Dauvergne a5acd7e2b2 environment: clean old auto variable for internal ips (#65235) 2023-01-24 16:24:31 +01:00
Frédéric Péters 8a9ad4ffa5 applications: skip unknown services (#73583) 2023-01-19 19:37:25 +01:00
Frédéric Péters 3a6640f8f2 misc: close opened key files in authentic settings loader (#73550) 2023-01-18 13:49:35 +01:00
Benjamin Dauvergne 2e18ac3a78 tox.ini: fix coverage warning
gitea-wip/hobo/pipeline/head There was a failure building this commit Details
py3-django22-coverage-multipublik/lib/python3.9/site-packages/coverage/control.py:687: CoverageWarning: Conflicting dynamic contexts (dynamic-conflict)
	    self._warn("Conflicting dynamic contexts", slug="dynamic-conflict", once=True)
2023-01-16 17:06:30 +01:00
Benjamin Dauvergne f5ebbc4215 debian: fix typo (#73437) 2023-01-16 17:05:00 +01:00
Emmanuel Cazenave aa7d275028 tox: drop django-tables2 (#73271) 2023-01-16 15:34:40 +01:00
Emmanuel Cazenave d022506c33 misc: drop djangorestframework 3.9 compatibility (#73260)
gitea-wip/hobo/pipeline/pr-main Build started... Details
2023-01-16 15:33:50 +01:00
Benjamin Dauvergne ce88277e90 misc: improve get_safe_db_name (#72643) 2023-01-16 15:07:56 +01:00
Benjamin Dauvergne a652576b84 misc: improve jenkins log with parallel tox (#72643) 2023-01-16 15:07:56 +01:00
Benjamin Dauvergne 157a69fab6 misc: fix warning about deprecated connection.get_tenant() (#73294)
gitea-wip/hobo/pipeline/pr-main This commit looks good Details
2023-01-12 12:04:49 +01:00
Benjamin Dauvergne 760a8b1a7c Revert "misc: improve get_safe_db_name (#72643)"
This reverts commit 56c611d77b.
2023-01-12 10:27:18 +01:00
Benjamin Dauvergne be635f1001 Revert "misc: improve jenkins log with parallel tox (#72643)"
This reverts commit 1dc65bde3e.
2023-01-12 10:27:11 +01:00
Benjamin Dauvergne 56c611d77b misc: improve get_safe_db_name (#72643)
gitea-wip/hobo/pipeline/pr-main Build started... Details
2023-01-12 10:17:59 +01:00
Benjamin Dauvergne 1dc65bde3e misc: improve jenkins log with parallel tox (#72643) 2023-01-12 10:17:59 +01:00
Benjamin Dauvergne a917ec7fec agent: limit provisionning to some commands (#72478)
- authentic2.custom_user.management.commands.fix-attributes
- authentic2.management.commands.check-and-repair
- authentic2.management.commands.clean-unused-accounts
- authentic2.management.commands.cleanupauthentic
- authentic2.management.commands.deactivate-orphaned-ldap-users
- authentic2.management.commands.import_site
- authentic2.management.commands.sync-ldap-users
- authentic2_auth_oidc.management.commands.oidc-sync-provider
- hobo.multitenant.management.commands.runscript
2023-01-04 10:54:58 +01:00
Agate 3b11215c9f hobo: store extra user attrs during provisionning (#38703)
gitea-wip/hobo/pipeline/pr-main This commit looks good Details
2023-01-04 08:26:26 +01:00
Frédéric Péters 8eabc9d9d9 ci: only build package for bullseye (#72729) 2022-12-22 17:21:27 +01:00
Frédéric Péters 7cece8ce44 misc: make sure identical hobo in different db have the same key (#72264) 2022-12-17 09:00:50 +01:00
Benjamin Dauvergne 82b7e01caf cook: check disabled service in recipes (#72335) 2022-12-15 15:58:08 +01:00
Benjamin Dauvergne bc8e7a3867 cook: simplify command call in tests (#72335) 2022-12-15 15:57:20 +01:00
Benjamin Dauvergne 50ef55637d cook: always mock notify_agents in tests (#72335) 2022-12-15 15:57:20 +01:00
Benjamin Dauvergne 12b1b5096b hobo: add setting to disable/enable a type of service (#72335)
HOBO_SERVICES_DISABLED is used in hobo/settings.py to list deprecated or
services still not in production.
HOBO_SERVICES_ENABLED is used through config.json to enable a new
service.

ServiceBase.is_enabled() is modified to use those settings
2022-12-15 15:57:20 +01:00
Paul Marillonnet 89096f8def ci: use correct alias as failure notification recipient (#72363) 2022-12-13 16:48:54 +01:00
Benjamin Dauvergne ee9509b003 tests: simplify checks on roles for authentic's hobo-deploy (#72354)
We check the presence of loaded roles and for automatic we check a
mininal number of them are present.
2022-12-13 16:15:14 +01:00
Valentin Deniaud c2aed1b25d misc: remove compatibility code with old authentic version (#72027) 2022-12-12 10:25:57 +01:00
Benjamin Dauvergne 6fb905f17c settings_loaders: set registration URL path to /register/ (#72233) 2022-12-09 15:57:54 +01:00
Benjamin Dauvergne e8cba9a7d4 context_processors: specialize login_url and registration_url on password reset page (#72237) 2022-12-09 13:59:57 +01:00
Thomas NOËL 420ed17e07 multitenant: show ETA on migrate_schemas (#68034) 2022-12-09 12:20:39 +01:00
Frédéric Péters 2dc33f915d translation update
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
2022-12-02 14:00:35 +01:00
Frédéric Péters 727dece839 applications: add menu entry to delete application (#71967) 2022-12-02 13:58:58 +01:00
Frédéric Péters 1d5794ef2a misc: raise 404 on applications that do not exist (#71961) 2022-12-02 11:09:53 +01:00
Paul Marillonnet 7e6a13320b home: remove franceconnect menu entry (#71958) 2022-12-02 10:25:29 +01:00
Thomas NOËL 8d3d8a7db1 debian: do not overwrite existing DATA_UPLOAD_MAX_MEMORY_SIZE (#69604)
for example for Passerelle, where DATA_UPLOAD_MAX_MEMORY_SIZE = 100 * 1024 * 1024
2022-12-01 18:12:03 +01:00
Benjamin Dauvergne 92cdad5f8c tests: make version counting more determinist in applications tests (#71907) 2022-12-01 10:59:42 +01:00
Valentin Deniaud 02df3a7a81 test_authentic: restrict scope of import_template command test (#71867) 2022-11-30 11:00:27 +01:00
Valentin Deniaud 93fc9d9960 authentic2: remove remaining dependencies to RoleAttribute (#71836) 2022-11-29 16:28:40 +01:00
Lauréline Guérin f939e727f0
applications: refresh elements cache on deployment (#70897)
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
2022-11-29 08:41:33 +01:00
Frédéric Péters 244d0dc1bf applications: add background gear image to editable apps (#70989) 2022-11-28 19:46:46 +01:00