management.securityΒΆ

SubmodulesΒΆ

AttributesΒΆ

ClassesΒΆ

SecurityConfig

Security Configuration model.

AutoGenPkiFeature

Manages the auto-generated local CAs (PKI).

Package ContentsΒΆ

class management.security.SecurityConfig(*args, **kwargs)[source]ΒΆ

Bases: django.db.models.Model

Security Configuration model.

class SecurityModeChoices(*args, **kwds)ΒΆ

Bases: django.db.models.TextChoices

Types of security modes.

DEVΒΆ
LOWΒΆ
MEDIUMΒΆ
HIGHΒΆ
HIGHESTΒΆ
security_modeΒΆ
auto_gen_pkiΒΆ
auto_gen_pki_key_algorithmΒΆ
NOTIFICATION_CONFIGURATIONS: ClassVar[dict]ΒΆ
notification_configΒΆ
__str__()[source]ΒΆ

Output as string.

Return type:

str

apply_security_settings()[source]ΒΆ

Apply appropriate configuration values based on the security mode.

Return type:

None

class management.security.AutoGenPkiFeature[source]ΒΆ

Bases: SecurityFeature

Manages the auto-generated local CAs (PKI).

verbose_name = 'Local Auto-Generated PKI'ΒΆ
db_field_name = 'auto_gen_pki'ΒΆ
static is_enabled()[source]ΒΆ

Returns True if the auto-generated PKI is enabled.

Return type:

bool

static enable(key_alg)[source]ΒΆ

Starts a thread that enables the auto-generated PKI.Pass thread arguments as a tuple to avoid any issues.

Parameters:

key_alg (pki.util.keys.AutoGenPkiKeyAlgorithm)

Return type:

None

static disable()[source]ΒΆ

Starts a thread that disables the auto-generated PKI.

Return type:

None

management.security.HIGHEST_FEATURES[source]ΒΆ
management.security.HIGH_FEATURES[source]ΒΆ
management.security.MEDIUM_FEATURES[source]ΒΆ
management.security.LOW_FEATURES[source]ΒΆ
management.security.DEV_FEATURES[source]ΒΆ
management.security.LEVEL_FEATURE_MAP[source]ΒΆ