Jens L
|
0cad56ec73
|
providers/oauth2: if a redirect_uri cannot be parsed as regex, compare strict (#3070)
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-06-10 23:32:57 +02:00 |
|
Jens Langhammer
|
63dc8fe7dc
|
crypto: set SAN in default generated Certificate to semi-random domain
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
#2462
|
2022-05-22 23:22:06 +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
|
993c6472db
|
crypto: only count discovered when cert was loaded successfully
|
2022-03-28 08:58:23 +00:00 |
|
Angel Nunez Mencias
|
8b95e9f97a
|
crypto: open files in read-only mode for importing (#2536)
closes #2535
|
2022-03-21 10:46:09 +01:00 |
|
Jens Langhammer
|
11e25617bd
|
crypto: fully parse certificate on validation in serializer to prevent invalid certificates from being saved
closes #2082
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2022-01-10 20:36:50 +01:00 |
|
Jens Langhammer
|
c249b55ff5
|
*: use py3.10 syntax for unions, remove old Type[] import when possible
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-30 14:59:01 +01:00 |
|
Jens Langhammer
|
b19da6d774
|
crypto: return private key's type (required for some oauth2 providers)
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-25 16:51:28 +01:00 |
|
Jens Langhammer
|
457e17fec3
|
website/docs: add small let's encrypt docs
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-23 00:59:06 +01:00 |
|
Jens Langhammer
|
f557b2129f
|
*: fix random typos
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-22 23:13:18 +01:00 |
|
Jens Langhammer
|
2bde43e5dc
|
crypto: use older syntax for type union
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-22 22:22:45 +01:00 |
|
Jens Langhammer
|
2f3026084e
|
providers/oauth2: remove jwt_alg field and set algorithm based on selected keypair, select HS256 when no keypair is selected
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-22 22:09:49 +01:00 |
|
Jens Langhammer
|
c1f0833c09
|
crypto: improve support for non-rsa private keys (discovery)
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-22 21:46:22 +01:00 |
|
Jens Langhammer
|
34b11524f1
|
tenants: add web certificate field, make authentik's core certificate configurable based on keypair
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-22 11:43:45 +01:00 |
|
Jens Langhammer
|
2ca115285c
|
crypto: fix private keys not being imported correctly
closes #1945
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-16 21:14:15 +01:00 |
|
Jens Langhammer
|
32ace1bece
|
crypto: add additional validation before importing a certificate
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-14 14:49:25 +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
|
2b78c4ba86
|
*: use request.query_params instead of accessing the django request
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-05 11:14:20 +01:00 |
|
Jens Langhammer
|
426cef998f
|
sources/ldap: make task names more consistent
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-03 18:39:42 +01:00 |
|
Jens Langhammer
|
572f6d4ea0
|
crypto: add certificate discovery to automatically import certificates from lets encrypt
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
#1835
|
2021-12-03 18:27:36 +01:00 |
|
Jens Langhammer
|
20c738c384
|
crypto: fix default API not having an ordering
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-12-02 13:00:41 +01:00 |
|
Jens L
|
9bb0d04aeb
|
root: Random tests (#1825)
* root: add pytest-randomly to randomise tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* *: generate flows for testing instead of relying on existing ones
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* *: generate users for testing instead of relying on existing ones
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* *: use generated certificate
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* tests/e2e: keep containers
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* tests/e2e: use websockets test case
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-11-22 22:56:02 +01:00 |
|
Jens Langhammer
|
4b8b800648
|
stages/*: add more tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-11-15 20:58:34 +01:00 |
|
Jens Langhammer
|
6f9ed001a1
|
crypto: add more tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-11-15 20:38:03 +01:00 |
|
Jens Langhammer
|
72a93c0959
|
root: pin node images to v16
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-10-28 10:29:48 +02:00 |
|
Jens Langhammer
|
dff0613b3d
|
crypto: add managed field, prepare managed JWT cert
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-10-09 19:14:39 +02:00 |
|
Jens Langhammer
|
ba6849f29c
|
*: remove string.format()
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-09-14 12:06:47 +02:00 |
|
Jens L
|
859cf2bd8f
|
lib: move id and key generators to lib (#1286)
* lib: move generators to lib
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* core: bump default token key size
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* *: fix split being used for http basic auth instead of partition
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* web/elements: don't rethrow error in ActionButton
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-08-23 20:27:38 +02:00 |
|
Jens Langhammer
|
9d392931df
|
root: fix lint errors from re-format
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-08-03 18:09:16 +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
|
bf0141acc6
|
crypto: fix linting
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-07-03 19:57:25 +02:00 |
|
Jens Langhammer
|
d07704fdf1
|
crypto: show both sha1 and sha256 fingerprints
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-07-03 19:25:27 +02:00 |
|
dependabot[bot]
|
d102c59654
|
build(deps-dev): bump pylint from 2.8.3 to 2.9.0 (#1095)
* build(deps-dev): bump pylint from 2.8.3 to 2.9.0
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.8.3 to 2.9.0.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.8.3...v2.9.0)
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* *: update source for new pylint version
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-06-30 10:37:28 +02:00 |
|
Jens Langhammer
|
2aa7266688
|
crypto: fix linting
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-06-21 16:24:03 +02:00 |
|
Jens Langhammer
|
c0c246edab
|
crypto: catch error when loading private key
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-06-21 15:57:48 +02:00 |
|
Jens Langhammer
|
3a64d97040
|
crypto: add download links as API fields
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-06-10 13:46:12 +02:00 |
|
Jens L
|
34ae9e6dab
|
API: add endpoint to show by what objects an object is used (#995)
* core: add used_by API to show what objects are affected before deletion
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* web/elements: add support for used_by API
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* core: add authentik_used_by_shadows to shadow other models
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* web: implement used_by API
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* *: fix duplicate imports
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* core: add action field to used_by api
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* web: add UI for used_by action
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* web: add notice to tenant form
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* core: fix naming in used_by
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* web: check length for used_by
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* core: fix used_by for non-pk models
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* *: improve __str__ on models
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
* core: add support for many to many in used_by
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-06-10 11:58:12 +02:00 |
|
Jens Langhammer
|
0bac738090
|
*: fix static response descriptions
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-16 14:07:29 +02:00 |
|
Jens Langhammer
|
1324d03815
|
*: initial migration to openapi v3
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-05-15 23:57:28 +02:00 |
|
Jens Langhammer
|
24f2932777
|
crypto: add ?download flag
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
#861
|
2021-05-11 14:21:35 +02:00 |
|
Jens Langhammer
|
333758d91f
|
crypto: handle encrypted private keys
closes #811
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-04-30 15:25:42 +02:00 |
|
Jens Langhammer
|
cad6c42fdd
|
lib: add more tests
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-04-27 15:43:11 +02:00 |
|
Jens Langhammer
|
d76db3caba
|
*: add missing error codes as swagger annotations
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-04-10 23:55:43 +02:00 |
|
Jens Langhammer
|
1dc01ef857
|
*: add API tests for types endpoints
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-04-02 23:11:53 +02:00 |
|
Jens Langhammer
|
83fc22005c
|
*: remove swagger parameters from functions that don't accept them
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-04-02 13:39:22 +02:00 |
|
Jens Langhammer
|
7a0ebbdc53
|
crypto: add filter for key-pairs with private key
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-04-01 11:38:35 +02:00 |
|
Jens Langhammer
|
41914d9b7a
|
crypto: add tests for builder
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-03-30 16:34:45 +02:00 |
|
Jens Langhammer
|
b1214f6c35
|
*: add new base class for non-model serializers
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-03-30 15:50:00 +02:00 |
|
Jens Langhammer
|
7d74e1d2c4
|
*: revert to drf-yasg upstream
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
|
2021-03-29 21:04:54 +02:00 |
|