events: migrate SystemTasks to DB (#8159)

* events: migrate system tasks to save in DB

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* prefill in app startup

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* cleanup api

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* update web

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* use string for status

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix enum

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* save start and end directly in timestamp from default_timer()

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* improve metrics

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* lint

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix tests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* rename globally to system task

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* recreate migrations, better denote anonymous user

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* events: lookup actual django app instead of using module path, fallback to module path

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix logger call

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2024-01-24 17:23:03 +01:00
committed by GitHub
parent c0562bf860
commit 96b2a1a9ba
65 changed files with 11564 additions and 12080 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-23 08:02+0000\n"
"POT-Creation-Date: 2024-01-24 12:44+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -18,11 +18,6 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: authentik/admin/api/tasks.py:127
#, python-format
msgid "Successfully re-scheduled Task %(name)s!"
msgstr ""
#: authentik/api/schema.py:25
msgid "Generic API Error"
msgstr ""
@ -69,7 +64,7 @@ msgstr ""
msgid "authentik Export - %(date)s"
msgstr ""
#: authentik/blueprints/v1/tasks.py:151 authentik/crypto/tasks.py:93
#: authentik/blueprints/v1/tasks.py:145 authentik/crypto/tasks.py:87
#, python-format
msgid "Successfully imported %(count)d files."
msgstr ""
@ -108,162 +103,162 @@ msgstr ""
msgid "No empty segments in user path allowed."
msgstr ""
#: authentik/core/models.py:85
#: authentik/core/models.py:92
msgid "name"
msgstr ""
#: authentik/core/models.py:87
#: authentik/core/models.py:94
msgid "Users added to this group will be superusers."
msgstr ""
#: authentik/core/models.py:161
#: authentik/core/models.py:168
msgid "Group"
msgstr ""
#: authentik/core/models.py:162
#: authentik/core/models.py:169
msgid "Groups"
msgstr ""
#: authentik/core/models.py:177
#: authentik/core/models.py:184
msgid "User's display name."
msgstr ""
#: authentik/core/models.py:273 authentik/providers/oauth2/models.py:295
#: authentik/core/models.py:280 authentik/providers/oauth2/models.py:295
msgid "User"
msgstr ""
#: authentik/core/models.py:274
#: authentik/core/models.py:281
msgid "Users"
msgstr ""
#: authentik/core/models.py:276
#: authentik/core/models.py:283
#: authentik/stages/email/templates/email/password_reset.html:28
msgid "Reset Password"
msgstr ""
#: authentik/core/models.py:277
#: authentik/core/models.py:284
msgid "Can impersonate other users"
msgstr ""
#: authentik/core/models.py:278 authentik/rbac/models.py:54
#: authentik/core/models.py:285 authentik/rbac/models.py:54
msgid "Can assign permissions to users"
msgstr ""
#: authentik/core/models.py:279 authentik/rbac/models.py:55
#: authentik/core/models.py:286 authentik/rbac/models.py:55
msgid "Can unassign permissions from users"
msgstr ""
#: authentik/core/models.py:293
#: authentik/core/models.py:308
msgid ""
"Flow used for authentication when the associated application is accessed by "
"an un-authenticated user."
msgstr ""
#: authentik/core/models.py:303
#: authentik/core/models.py:318
msgid "Flow used when authorizing this provider."
msgstr ""
#: authentik/core/models.py:315
#: authentik/core/models.py:330
msgid ""
"Accessed from applications; optional backchannel providers for protocols "
"like LDAP and SCIM."
msgstr ""
#: authentik/core/models.py:370
#: authentik/core/models.py:385
msgid "Application's display Name."
msgstr ""
#: authentik/core/models.py:371
#: authentik/core/models.py:386
msgid "Internal application name, used in URLs."
msgstr ""
#: authentik/core/models.py:383
#: authentik/core/models.py:398
msgid "Open launch URL in a new browser tab or window."
msgstr ""
#: authentik/core/models.py:447
#: authentik/core/models.py:462
msgid "Application"
msgstr ""
#: authentik/core/models.py:448
#: authentik/core/models.py:463
msgid "Applications"
msgstr ""
#: authentik/core/models.py:454
#: authentik/core/models.py:469
msgid "Use the source-specific identifier"
msgstr ""
#: authentik/core/models.py:456
#: authentik/core/models.py:471
msgid ""
"Link to a user with identical email address. Can have security implications "
"when a source doesn't validate email addresses."
msgstr ""
#: authentik/core/models.py:460
#: authentik/core/models.py:475
msgid ""
"Use the user's email address, but deny enrollment when the email address "
"already exists."
msgstr ""
#: authentik/core/models.py:463
#: authentik/core/models.py:478
msgid ""
"Link to a user with identical username. Can have security implications when "
"a username is used with another source."
msgstr ""
#: authentik/core/models.py:467
#: authentik/core/models.py:482
msgid ""
"Use the user's username, but deny enrollment when the username already "
"exists."
msgstr ""
#: authentik/core/models.py:474
#: authentik/core/models.py:489
msgid "Source's display Name."
msgstr ""
#: authentik/core/models.py:475
#: authentik/core/models.py:490
msgid "Internal source name, used in URLs."
msgstr ""
#: authentik/core/models.py:494
#: authentik/core/models.py:509
msgid "Flow to use when authenticating existing users."
msgstr ""
#: authentik/core/models.py:503
#: authentik/core/models.py:518
msgid "Flow to use when enrolling new users."
msgstr ""
#: authentik/core/models.py:511
#: authentik/core/models.py:526
msgid ""
"How the source determines if an existing user should be authenticated or a "
"new user enrolled."
msgstr ""
#: authentik/core/models.py:683
#: authentik/core/models.py:698
msgid "Token"
msgstr ""
#: authentik/core/models.py:684
#: authentik/core/models.py:699
msgid "Tokens"
msgstr ""
#: authentik/core/models.py:689
#: authentik/core/models.py:704
msgid "View token's key"
msgstr ""
#: authentik/core/models.py:725
#: authentik/core/models.py:740
msgid "Property Mapping"
msgstr ""
#: authentik/core/models.py:726
#: authentik/core/models.py:741
msgid "Property Mappings"
msgstr ""
#: authentik/core/models.py:763
#: authentik/core/models.py:778
msgid "Authenticated Session"
msgstr ""
#: authentik/core/models.py:764
#: authentik/core/models.py:779
msgid "Authenticated Sessions"
msgstr ""
@ -439,6 +434,11 @@ msgstr ""
msgid "(You are already connected in another tab/window)"
msgstr ""
#: authentik/events/api/tasks.py:99
#, python-format
msgid "Successfully re-scheduled Task %(name)s!"
msgstr ""
#: authentik/events/models.py:289
msgid "Event"
msgstr ""
@ -541,7 +541,19 @@ msgstr ""
msgid "Webhook Mappings"
msgstr ""
#: authentik/events/monitored_tasks.py:207
#: authentik/events/models.py:642
msgid "Rerun task"
msgstr ""
#: authentik/events/models.py:643
msgid "System Task"
msgstr ""
#: authentik/events/models.py:644
msgid "System Tasks"
msgstr ""
#: authentik/events/monitored_tasks.py:128
msgid "Task has not been run yet."
msgstr ""
@ -1573,31 +1585,31 @@ msgstr ""
msgid "SCIM Mappings"
msgstr ""
#: authentik/providers/scim/tasks.py:56
#: authentik/providers/scim/tasks.py:57
msgid "Starting full SCIM sync"
msgstr ""
#: authentik/providers/scim/tasks.py:66
#: authentik/providers/scim/tasks.py:67
#, python-format
msgid "Syncing page %(page)d of users"
msgstr ""
#: authentik/providers/scim/tasks.py:70
#: authentik/providers/scim/tasks.py:71
#, python-format
msgid "Syncing page %(page)d of groups"
msgstr ""
#: authentik/providers/scim/tasks.py:102
#: authentik/providers/scim/tasks.py:103
#, python-format
msgid "Failed to sync user %(user_name)s due to remote error: %(error)s"
msgstr ""
#: authentik/providers/scim/tasks.py:113 authentik/providers/scim/tasks.py:154
#: authentik/providers/scim/tasks.py:114 authentik/providers/scim/tasks.py:155
#, python-format
msgid "Stopping sync due to error: %(error)s"
msgstr ""
#: authentik/providers/scim/tasks.py:143
#: authentik/providers/scim/tasks.py:144
#, python-format
msgid "Failed to sync group %(group_name)s due to remote error: %(error)s"
msgstr ""