management.securityΒΆ

Security management package.

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[str, dict[str, Any]]]ΒΆ
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, trustpoint.logger.LoggerMixin

Manages the auto-generated local CAs (PKI).

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

Returns True if the auto-generated PKI is enabled.

Return type:

bool

classmethod enable(**kwargs)[source]ΒΆ

Starts a thread that enables the auto-generated PKI.

Parameters:

kwargs (object)

Return type:

None

classmethod disable(**_kwargs)[source]ΒΆ

Starts a thread that disables the auto-generated PKI.

Parameters:

_kwargs (object)

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]ΒΆ