saltext.vault.utils.vault.exceptions

Exceptions that are raised by saltext.vault utilities

class saltext.vault.utils.vault.exceptions.VaultException(*args: Any, **kwargs: Any)[source]

Base class for exceptions raised by this module

class saltext.vault.utils.vault.exceptions.VaultLeaseExpired(*args: Any, **kwargs: Any)[source]

Raised when a cached lease is reported to be expired locally.

class saltext.vault.utils.vault.exceptions.VaultAuthExpired(*args: Any, **kwargs: Any)[source]

Raised when cached authentication data is reported to be outdated locally.

class saltext.vault.utils.vault.exceptions.VaultConfigExpired(*args: Any, **kwargs: Any)[source]

Raised when secret authentication data queried from the master reports a different server configuration than locally cached or an explicit cache TTL set in the configuration has been reached.

class saltext.vault.utils.vault.exceptions.VaultUnwrapException(*args: Any, **kwargs: Any)[source]

Raised when an expected creation path for a wrapping token differs from the reported one. This has to be taken seriously as it indicates tampering.

class saltext.vault.utils.vault.exceptions.VaultInvocationError(*args: Any, **kwargs: Any)[source]

HTTP 400 and InvalidArgumentException for this module

class saltext.vault.utils.vault.exceptions.VaultPermissionDeniedError(*args: Any, **kwargs: Any)[source]

HTTP 403

class saltext.vault.utils.vault.exceptions.VaultNotFoundError(*args: Any, **kwargs: Any)[source]

HTTP 404 In some cases, this is also raised when the client does not have the correct permissions for the requested endpoint.

class saltext.vault.utils.vault.exceptions.VaultUnsupportedOperationError(*args: Any, **kwargs: Any)[source]

HTTP 405

class saltext.vault.utils.vault.exceptions.VaultPreconditionFailedError(*args: Any, **kwargs: Any)[source]

HTTP 412

class saltext.vault.utils.vault.exceptions.VaultRateLimitExceededError(*args: Any, **kwargs: Any)[source]

HTTP 429

class saltext.vault.utils.vault.exceptions.VaultServerError(*args: Any, **kwargs: Any)[source]

HTTP 500 HTTP 502

class saltext.vault.utils.vault.exceptions.VaultUnavailableError(*args: Any, **kwargs: Any)[source]

HTTP 503 Indicates maintenance or sealed status.