Jens L
|
9568f4dbd6
|
root: improve code style (#4436)
* cleanup pylint comments
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* remove more
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix url name
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* *: use ExtractHour instead of ExtractDay
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
|
2023-01-15 17:02:31 +01:00 |
|
Jens L
|
36822c128c
|
admin: include task duration in API (#4428)
include task duration in API
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
|
2023-01-13 13:21:49 +01:00 |
|
Jens L
|
67a6fa6399
|
events: rework metrics (#4407)
* rework metrics
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* change graphs to be over last week
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix Apps with most usage card
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
|
2023-01-11 12:21:07 +01:00 |
|
Jens Langhammer
|
fde848ee51
|
admin: remove unused import
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2023-01-02 00:12:14 +01:00 |
|
Jens Langhammer
|
e9d52282b7
|
admin: use matching environment for system API
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2023-01-01 23:58:12 +01:00 |
|
Jens L
|
b06a3a8f9f
|
admin: add authorisations metric (#3811)
add authorizations metric
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-10-19 00:06:45 +02:00 |
|
Jens Langhammer
|
7f8afad528
|
*: fix API Schema generation warnings
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-09-11 23:08:31 +02:00 |
|
Jens Langhammer
|
0ff2ac7dc2
|
api: fix schema not referencing errors correctly
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-09-11 23:01:26 +02:00 |
|
Jens L
|
54ba3e9616
|
blueprints: add meta model to apply blueprint within blueprint for dependencies (#3486)
* add meta model to apply blueprint within blueprint for dependencies
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* use custom registry
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix again
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* move ManagedAppConfig to apps.py
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* rename manager to registry
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* ci: use full tag in comment
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-08-29 21:20:58 +02:00 |
|
Jens L
|
d1004e3798
|
blueprints: webui (#3356)
|
2022-08-03 00:05:49 +02:00 |
|
Jens Langhammer
|
2bd29e2fdd
|
*: improve error handling for startup tasks
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-08-01 23:31:47 +02:00 |
|
Jens L
|
a023eee9bf
|
blueprints: migrate from managed (#3338)
* test all bundled blueprints
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix empty title
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix default blueprints
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* add script to generate dev config
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* migrate managed to blueprints
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* add more to blueprint instance
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* migrated away from ObjectManager
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix lint errors
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* migrate things
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* migrate tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix some tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix a bit more
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix more tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* whops
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix missing name
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* *sigh*
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix more tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* add tasks
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* scheduled
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* run discovery on start
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* oops this test should stay
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-08-01 23:05:58 +02:00 |
|
Jens L
|
89c84f10d0
|
blueprints: v1 (#1573)
* managed: move flowexporter to managed
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* *: implement SerializerModel in all models
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* managed: add initial api
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* managed: start blueprint
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* managed: spec
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* version blueprint
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* yep
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* remove v2, improve v1
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* start custom tag, more rebrand
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* add default flows
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* move blueprints out of website
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* try new things
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* add !lookup, fix web
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* update and cleanup default
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix tags in lists
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* don't save field if its set to default value
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* more flow cleanup
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* format web
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix missing serializer for sms
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* ignore _set fields
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* remove custom file extension
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* migrate default flow to tenant
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* include blueprints
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* fix tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-07-31 17:11:44 +02:00 |
|
Jens Langhammer
|
90e3ae9457
|
*: define prometheus metrics in apps to prevent re-import
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-07-01 16:49:24 +02:00 |
|
Jens L
|
0c591a50e3
|
*: don't dispatch tasks on startup of server (#3033)
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-06-03 18:29:24 +02:00 |
|
Jens Langhammer
|
5080840ed9
|
admin: ensure disable_update_check is set to false for tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-05-17 10:00:26 +02:00 |
|
Jens Langhammer
|
0b4ac54363
|
*: default to max 60 for fqdn_rand
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-04-20 20:07:25 +02:00 |
|
Jens Langhammer
|
1a1434bfda
|
*: decrease frequency of background tasks, smear tasks based on name and fqdn
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
#2159
|
2022-04-20 18:43:40 +02:00 |
|
Jens Langhammer
|
21efee8f44
|
admin: add additional logging when restarting a task
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-02-12 18:40:21 +01:00 |
|
Jens Langhammer
|
111fbf119b
|
*: refactor prometheus gauges to directly updating metrics view
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-01-16 13:57:07 +01:00 |
|
Jens Langhammer
|
fae6d83f27
|
*: simplify extracting current version info
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-01-13 17:47:31 +01:00 |
|
Jens Langhammer
|
6e53f1689d
|
policies/reputation: rework reputation to use a single entry, include geo_ip data
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-01-05 21:02:33 +01:00 |
|
Jens Langhammer
|
30386cd899
|
events: add custom manager with helpers for metrics
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-14 21:49:33 +01:00 |
|
Jens Langhammer
|
a9bd34f3c5
|
events: revert to @prefill_task decorator since base class doesn't get executed until task runs
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-09 10:18:00 +01:00 |
|
Jens Langhammer
|
cf78c89830
|
events: replace @prefill_task with custom base class to prefill
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-02 13:47:35 +01:00 |
|
Jens Langhammer
|
f0d7edb963
|
*: fix @prefill_task
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-02 10:05:51 +01:00 |
|
Jens Langhammer
|
638e8d741f
|
*: fix multiple tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-11-16 10:38:21 +01:00 |
|
Jens Langhammer
|
e4095dfffe
|
admin: add more tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-11-15 20:10:09 +01:00 |
|
Jens Langhammer
|
12735cc14c
|
admin: improve check to remove version notifications
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-11-07 18:03:06 +01:00 |
|
Jens Langhammer
|
8eddb4b95b
|
admin: check for debug in worker count api
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-10-14 12:32:30 +02:00 |
|
Jens Langhammer
|
4b7399f454
|
*: add @prefill_task() decorator to "pre-fill" tasks in cache, so they can be executed even before their schedule would do so
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-10-14 12:21:28 +02:00 |
|
Jens Langhammer
|
fa6df84de2
|
admin: clear update notification when notification's version matches current version
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-10-05 20:36:38 +02:00 |
|
Jens Langhammer
|
79b92e764e
|
*: fix typos in code
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-09-25 00:01:11 +02:00 |
|
Jens Langhammer
|
c779ad2e3b
|
*: use common user agent for all outgoing requests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-09-11 21:08:26 +02:00 |
|
Jens Langhammer
|
7e7ef289ba
|
admin: migrate to new update check, add option to disable update check
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-09-11 20:35:23 +02:00 |
|
Jens Langhammer
|
9733caf3b7
|
admin: use copy for environ api
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-08-24 11:39:49 +02:00 |
|
Jens Langhammer
|
b0efab6d6d
|
admin: add env to API
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-08-24 10:55:46 +02:00 |
|
Jens Langhammer
|
de9d483b9f
|
admin: add API to show embedded outpost status, add notice when its not configured properly
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-08-10 19:16:11 +02:00 |
|
Jens Langhammer
|
77ed25ae34
|
root: reformat to 100 line width
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-08-03 17:45:16 +02:00 |
|
Jens Langhammer
|
1f35f73c66
|
api: add CAN_BACKUP capability
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-06-06 12:44:43 +02:00 |
|
Jens Langhammer
|
0eaabbc0f3
|
admin: fix upgrading deletion of tasks when listing
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-06-03 17:42:13 +02:00 |
|
Jens Langhammer
|
80adafdb48
|
admin: fix attribute error when loading old taskinfo
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-30 16:22:13 +02:00 |
|
Jens Langhammer
|
0e8d9aa45d
|
api: add System info API
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-30 14:01:20 +02:00 |
|
Jens L
|
53e2b2c784
|
Prometheus metrics (#914)
* admin: add worker metrics
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* admin: add version metrics
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* events: add gauge for system tasks
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* outposts: add gauge for last hello and connection status
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* root: re-add prometheus metrics to database
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* root: allow access to metrics without credentials when debug is on
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* root: add UpdatingGauge to auto-set value on load
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* flows: add metrics for cache and building
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* policies: add metrics for policy engine
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* events: add histogram for task durations
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* events: revert to gauge because values are updated on export view
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* core: add gauge to count all models
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* events: add metrics for events
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-23 20:29:34 +02:00 |
|
Jens Langhammer
|
f9ce41229d
|
api: fix unittests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-16 22:36:26 +02:00 |
|
Jens Langhammer
|
07dc648470
|
web: fix mixed Static/TOTP pages
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-16 18:59:33 +02:00 |
|
Jens Langhammer
|
d0f1daf025
|
admin: make tasks's retry api not ask for a body
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-16 18:43:47 +02:00 |
|
Jens Langhammer
|
ab07113530
|
admin: migrate WorkerViewSet to APIView
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-16 18:06:46 +02:00 |
|
Jens Langhammer
|
a7d7b46747
|
admin: migrate version view to APIView
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-16 18:00:02 +02:00 |
|
Jens Langhammer
|
9a44088d2b
|
admin: migrate metrics viewset to APIView
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-16 17:49:37 +02:00 |
|