management.security.featuresΒΆ

ClassesΒΆ

SecurityFeature

Abstract base class for a security feature.

AutoGenPkiFeature

Manages the auto-generated local CAs (PKI).

Module ContentsΒΆ

class management.security.features.SecurityFeature[source]ΒΆ

Bases: abc.ABC

Abstract base class for a security feature.

verbose_name = None[source]ΒΆ
db_field_name = None[source]ΒΆ
abstractmethod enable(*_args)[source]ΒΆ

Enables the feature.

Parameters:

_args (dict)

Return type:

None

abstractmethod disable(*_args)[source]ΒΆ

Disables the feature.

Parameters:

_args (dict)

Return type:

None

abstractmethod is_enabled()[source]ΒΆ

Returns True if the feature is currently enabled.

Return type:

bool

class management.security.features.AutoGenPkiFeature[source]ΒΆ

Bases: SecurityFeature

Manages the auto-generated local CAs (PKI).

verbose_name = 'Local Auto-Generated PKI'[source]ΒΆ
db_field_name = 'auto_gen_pki'[source]ΒΆ
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