blueprints: adjust wording on managed field (#5558)

This commit is contained in:
Jens L 2023-05-09 23:41:42 +02:00 committed by GitHub
parent b5b1ed5887
commit 92fd6a55db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 177 additions and 109 deletions

View File

@ -17,4 +17,15 @@ class Migration(migrations.Migration):
name="name", name="name",
field=models.TextField(unique=True), field=models.TextField(unique=True),
), ),
migrations.AlterField(
model_name="blueprintinstance",
name="managed",
field=models.TextField(
default=None,
help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.",
null=True,
unique=True,
verbose_name="Managed by authentik",
),
),
] ]

View File

@ -22,15 +22,15 @@ class BlueprintRetrievalFailed(SentryIgnoredException):
class ManagedModel(models.Model): class ManagedModel(models.Model):
"""Model which can be managed by authentik exclusively""" """Model that can be managed by authentik exclusively"""
managed = models.TextField( managed = models.TextField(
default=None, default=None,
null=True, null=True,
verbose_name=_("Managed by authentik"), verbose_name=_("Managed by authentik"),
help_text=_( help_text=_(
"Objects which are managed by authentik. These objects are created and updated " "Objects that are managed by authentik. These objects are created and updated "
"automatically. This is flag only indicates that an object can be overwritten by " "automatically. This flag only indicates that an object can be overwritten by "
"migrations. You can still modify the objects via the API, but expect changes " "migrations. You can still modify the objects via the API, but expect changes "
"to be overwritten in a later update." "to be overwritten in a later update."
), ),

View File

@ -46,4 +46,37 @@ class Migration(migrations.Migration):
field=models.BooleanField(default=False), field=models.BooleanField(default=False),
), ),
migrations.RunPython(backport_is_backchannel), migrations.RunPython(backport_is_backchannel),
migrations.AlterField(
model_name="propertymapping",
name="managed",
field=models.TextField(
default=None,
help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.",
null=True,
unique=True,
verbose_name="Managed by authentik",
),
),
migrations.AlterField(
model_name="source",
name="managed",
field=models.TextField(
default=None,
help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.",
null=True,
unique=True,
verbose_name="Managed by authentik",
),
),
migrations.AlterField(
model_name="token",
name="managed",
field=models.TextField(
default=None,
help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.",
null=True,
unique=True,
verbose_name="Managed by authentik",
),
),
] ]

View File

@ -77,6 +77,7 @@ class TestTokenAPI(APITestCase):
def test_list(self): def test_list(self):
"""Test Token List (Test normal authentication)""" """Test Token List (Test normal authentication)"""
Token.objects.all().delete()
token_should: Token = Token.objects.create( token_should: Token = Token.objects.create(
identifier="test", expiring=False, user=self.user identifier="test", expiring=False, user=self.user
) )
@ -88,6 +89,7 @@ class TestTokenAPI(APITestCase):
def test_list_admin(self): def test_list_admin(self):
"""Test Token List (Test with admin auth)""" """Test Token List (Test with admin auth)"""
Token.objects.all().delete()
self.client.force_login(self.admin) self.client.force_login(self.admin)
token_should: Token = Token.objects.create( token_should: Token = Token.objects.create(
identifier="test", expiring=False, user=self.user identifier="test", expiring=False, user=self.user

View File

@ -17,4 +17,15 @@ class Migration(migrations.Migration):
name="name", name="name",
field=models.TextField(unique=True), field=models.TextField(unique=True),
), ),
migrations.AlterField(
model_name="certificatekeypair",
name="managed",
field=models.TextField(
default=None,
help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.",
null=True,
unique=True,
verbose_name="Managed by authentik",
),
),
] ]

View File

@ -17,4 +17,15 @@ class Migration(migrations.Migration):
default="proxy", default="proxy",
), ),
), ),
migrations.AlterField(
model_name="outpost",
name="managed",
field=models.TextField(
default=None,
help_text="Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update.",
null=True,
unique=True,
verbose_name="Managed by authentik",
),
),
] ]

View File

@ -3068,7 +3068,7 @@
], ],
"minLength": 1, "minLength": 1,
"title": "Managed by authentik", "title": "Managed by authentik",
"description": "Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update." "description": "Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update."
} }
}, },
"required": [] "required": []
@ -3544,7 +3544,7 @@
], ],
"minLength": 1, "minLength": 1,
"title": "Managed by authentik", "title": "Managed by authentik",
"description": "Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update." "description": "Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update."
}, },
"name": { "name": {
"type": "string", "type": "string",
@ -4525,7 +4525,7 @@
], ],
"minLength": 1, "minLength": 1,
"title": "Managed by authentik", "title": "Managed by authentik",
"description": "Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update." "description": "Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update."
}, },
"name": { "name": {
"type": "string", "type": "string",
@ -4609,7 +4609,7 @@
], ],
"minLength": 1, "minLength": 1,
"title": "Managed by authentik", "title": "Managed by authentik",
"description": "Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update." "description": "Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update."
}, },
"name": { "name": {
"type": "string", "type": "string",
@ -4792,7 +4792,7 @@
], ],
"minLength": 1, "minLength": 1,
"title": "Managed by authentik", "title": "Managed by authentik",
"description": "Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update." "description": "Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update."
}, },
"name": { "name": {
"type": "string", "type": "string",
@ -8267,7 +8267,7 @@
], ],
"minLength": 1, "minLength": 1,
"title": "Managed by authentik", "title": "Managed by authentik",
"description": "Objects which are managed by authentik. These objects are created and updated automatically. This is flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update." "description": "Objects that are managed by authentik. These objects are created and updated automatically. This flag only indicates that an object can be overwritten by migrations. You can still modify the objects via the API, but expect changes to be overwritten in a later update."
}, },
"identifier": { "identifier": {
"type": "string", "type": "string",

View File

@ -27942,10 +27942,10 @@ components:
readOnly: true readOnly: true
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
required: required:
- cert_expiry - cert_expiry
- cert_subject - cert_subject
@ -30628,10 +30628,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
expression: expression:
@ -30672,10 +30672,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
minLength: 1 minLength: 1
@ -30920,10 +30920,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
readOnly: true readOnly: true
user_path_template: user_path_template:
type: string type: string
@ -31826,10 +31826,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
readOnly: true readOnly: true
user_path_template: user_path_template:
type: string type: string
@ -32076,10 +32076,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
required: required:
- config - config
- name - name
@ -32164,10 +32164,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
required: required:
- config - config
- name - name
@ -36225,10 +36225,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
minLength: 1 minLength: 1
@ -36677,10 +36677,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
PatchedPasswordExpiryPolicyRequest: PatchedPasswordExpiryPolicyRequest:
type: object type: object
description: Password Expiry Policy Serializer description: Password Expiry Policy Serializer
@ -37097,10 +37097,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
minLength: 1 minLength: 1
@ -37302,10 +37302,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
minLength: 1 minLength: 1
@ -37362,10 +37362,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
minLength: 1 minLength: 1
@ -37463,10 +37463,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
identifier: identifier:
type: string type: string
minLength: 1 minLength: 1
@ -37726,10 +37726,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
readOnly: true readOnly: true
user_path_template: user_path_template:
type: string type: string
@ -38322,10 +38322,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
expression: expression:
@ -39156,10 +39156,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
expression: expression:
@ -39203,10 +39203,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
minLength: 1 minLength: 1
@ -39548,10 +39548,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
readOnly: true readOnly: true
user_path_template: user_path_template:
type: string type: string
@ -39740,10 +39740,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
expression: expression:
@ -39781,10 +39781,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
minLength: 1 minLength: 1
@ -39941,10 +39941,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
expression: expression:
@ -39990,10 +39990,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
name: name:
type: string type: string
minLength: 1 minLength: 1
@ -40214,10 +40214,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
readOnly: true readOnly: true
user_path_template: user_path_template:
type: string type: string
@ -40740,10 +40740,10 @@ components:
type: string type: string
nullable: true nullable: true
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
identifier: identifier:
type: string type: string
maxLength: 255 maxLength: 255
@ -40812,10 +40812,10 @@ components:
nullable: true nullable: true
minLength: 1 minLength: 1
title: Managed by authentik title: Managed by authentik
description: Objects which are managed by authentik. These objects are created description: Objects that are managed by authentik. These objects are created
and updated automatically. This is flag only indicates that an object and updated automatically. This flag only indicates that an object can
can be overwritten by migrations. You can still modify the objects via be overwritten by migrations. You can still modify the objects via the
the API, but expect changes to be overwritten in a later update. API, but expect changes to be overwritten in a later update.
identifier: identifier:
type: string type: string
minLength: 1 minLength: 1