yera.creds.exceptions
Credential exception hierarchy.
Symbols
CredentialError
YeraErrorCredentialGroupAlreadyExistsError, CredentialGroupNameError, CredentialGroupNotAuthorisedError, CredentialGroupNotFoundError, CredentialGroupNotSpecifiedError, CredentialInvalidError, CredentialKeyError, CredentialStoreCorruptError, CredentialVersionError, SecretStoreErrorBase for all credential-related errors.
CredentialGroupAlreadyExistsError
CredentialErrorTarget credential group name already exists during rename.
Methods
CredentialGroupAlreadyExistsError.__init__
__init__(
group_name: str,
credential_count: int,
authorised_roots: list[str],
) → NoneBuild an error describing the credential group name conflict.
Parameters
Existing credential group that blocks the operation.
Number of credentials held by the existing group.
Project roots allowed to use the existing group.
CredentialGroupNameError
CredentialErrorA credential group name failed structural validation.
CredentialGroupNotAuthorisedError
CredentialErrorThis project root is not in authorised_roots for the requested credential group.
Methods
CredentialGroupNotAuthorisedError.__init__
__init__(
group_name: str,
authorised_roots: list[str],
current_root: Path | None,
) → NoneBuild an error describing why a project cannot use a credential group.
Parameters
Credential group denied to the current project.
Project roots allowed to use the group.
Current project root, or None when unresolved.
CredentialGroupNotFoundError
CredentialErrorA named credential group has no entry in credential_groups.
Methods
CredentialGroupNotFoundError.__init__
__init__(
group_name: str,
) → NoneBuild an error identifying the missing credential group.
Parameters
Name of the credential group that was requested.
CredentialGroupNotSpecifiedError
CredentialErrorNo active credential group is configured for this project.
Methods
CredentialGroupNotSpecifiedError.__init__
__init__() → NoneBuild an error explaining how to select a credential group.
CredentialStoreCorruptError
CredentialErrorThe credentials file cannot be parsed (invalid JSON or wrong top-level type).
CredentialVersionError
CredentialErrorThe credentials file has an unsupported version number.
SecretAccessDeniedError
SecretStoreErrorThe caller is not authorized to access the requested secret.
SecretConflictError
SecretStoreErrorA conditional secret mutation conflicts with current stored state.
SecretStoreBusyError
SecretStoreErrorThe secret store could not be locked within the allowed time.
SecretStoreError
CredentialErrorSecretAccessDeniedError, SecretConflictError, SecretNotFoundError, SecretStoreBusyError, SecretStoreCorruptError, SecretStoreUnavailableError, SecretStoreUnsafeErrorBase for failures raised through the secret-store interface.
SecretStoreUnsafeError
SecretStoreErrorThe secret store fails its required security checks.