Skip to content
qibdo qibdo
Theme
Book a demo

Errors

Every Vault error carries a stable numeric error_code and a machine-readable reason. This page lists the logical (domain) error codes Vault can return. For the full error envelope (the google.rpc.Status shape, the reason and metadata fields, and how codes are structured) see Errors.

Vault codes begin with 2 (for example 2301003, read as 2_301_003: service, group, specific error). The wire value is always the flat integer; you can match on either error_code or reason, both are stable.

The Status column is the canonical gRPC status the error maps to, which the gateway renders as the matching HTTP status (see the status codes table).

CodeReasonStatusDescription
2300001VAULT_OPERATION_PROGRESS_OUT_OF_RANGEINVALID_ARGUMENTVault operation progress must be between 0 and 100.
2300002VAULT_OPERATION_END_TIME_BEFORE_START_TIMEINVALID_ARGUMENTVault operation end time must not be before start time.
2300003VAULT_OPERATION_NOT_FOUNDNOT_FOUNDVault operation not found.
2301001SECRET_NAME_NOT_VALIDINVALID_ARGUMENTSecret name must match ^[a-z0-9][a-z0-9/\-_]{1,254}[a-z0-9]$ (3 to 256 chars).
2301002SECRET_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTSecret workspace ID is required.
2301003SECRET_NOT_FOUNDNOT_FOUNDSecret not found.
2301004SECRET_ALREADY_EXISTSALREADY_EXISTSA secret with this name already exists in the workspace.
2301005SECRET_NOT_MARKED_FOR_DELETIONFAILED_PRECONDITIONSecret is not marked for deletion.
2301006SECRET_VERSION_NOT_FOUNDNOT_FOUNDSecret version not found.
2301007SECRET_VERSION_ALREADY_DESTROYEDFAILED_PRECONDITIONSecret version is already destroyed.
2301009SECRET_WORKSPACE_NOT_FOUNDNOT_FOUNDThe workspace this secret belongs to does not exist.
2302001SECRET_VERSION_SECRET_ID_NOT_VALIDINVALID_ARGUMENTSecret version’s parent secret ID is required.
2302002SECRET_VERSION_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTSecret version’s workspace ID is required.
2302003SECRET_VERSION_NUMBER_NOT_VALIDINVALID_ARGUMENTSecret version number must be a positive, monotonically increasing integer.
2302004SECRET_VERSION_NOT_MARKED_FOR_DELETIONFAILED_PRECONDITIONSecret version is not marked for deletion.
2303001ACCESS_POLICY_NAME_NOT_VALIDINVALID_ARGUMENTAccess policy name must match ^[a-z0-9][a-z0-9/\-_]{1,254}[a-z0-9]$ (3 to 256 chars).
2303002ACCESS_POLICY_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTAccess policy workspace ID is required.
2303003ACCESS_POLICY_NOT_FOUNDNOT_FOUNDAccess policy not found.
2303004ACCESS_POLICY_ALREADY_EXISTSALREADY_EXISTSAn access policy with this name already exists in the workspace.
2303005ACCESS_POLICY_NOT_MARKED_FOR_DELETIONFAILED_PRECONDITIONAccess policy is not marked for deletion.
2303006ACCESS_POLICY_DOCUMENT_HAS_CONFLICTING_RULESINVALID_ARGUMENTAccess policy document contains rules that share the same resource name pattern.
2303007ACCESS_POLICY_WORKSPACE_NOT_FOUNDNOT_FOUNDThe workspace this access policy belongs to does not exist.
2304001CRYPTO_KEY_NAME_NOT_VALIDINVALID_ARGUMENTCrypto key name must match ^[a-z0-9][a-z0-9/\-_]{1,254}[a-z0-9]$ (3 to 256 chars).
2304002CRYPTO_KEY_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTCrypto key workspace ID is required.
2304003CRYPTO_KEY_ALGORITHM_DOES_NOT_MATCH_PURPOSEINVALID_ARGUMENTCrypto key algorithm is not compatible with its purpose.
2304004CRYPTO_KEY_MIN_DECRYPTABLE_VERSION_NOT_VALIDINVALID_ARGUMENTCrypto key minimum decryptable version must be >= 1.
2304005CRYPTO_KEY_NOT_FOUNDNOT_FOUNDCrypto key not found.
2304006CRYPTO_KEY_ALREADY_EXISTSALREADY_EXISTSA crypto key with this name already exists in the workspace.
2304007CRYPTO_KEY_NOT_MARKED_FOR_DELETIONFAILED_PRECONDITIONCrypto key is not marked for deletion.
2304009CRYPTO_KEY_WORKSPACE_NOT_FOUNDNOT_FOUNDThe workspace this crypto key belongs to does not exist.
2305001CRYPTO_KEY_VERSION_CRYPTO_KEY_ID_NOT_VALIDINVALID_ARGUMENTCrypto key version’s parent crypto key ID is required.
2305002CRYPTO_KEY_VERSION_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTCrypto key version’s workspace ID is required.
2305003CRYPTO_KEY_VERSION_NUMBER_NOT_VALIDINVALID_ARGUMENTCrypto key version number must be a positive, monotonically increasing integer.
2305004CRYPTO_KEY_VERSION_NOT_MARKED_FOR_DELETIONFAILED_PRECONDITIONCrypto key version is not marked for deletion.
2305006CRYPTO_KEY_VERSION_NOT_FOUNDNOT_FOUNDCrypto key version not found.
2305007CRYPTO_KEY_VERSION_ALREADY_DESTROYEDFAILED_PRECONDITIONCrypto key version is already destroyed.
2306001LEASE_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTLease workspace ID is required.
2306002LEASE_PRINCIPAL_ID_NOT_VALIDINVALID_ARGUMENTLease principal ID is required.
2306003LEASE_TTL_EXCEEDS_MAXINVALID_ARGUMENTLease TTL must be positive and not exceed max TTL.
2306004LEASE_EXPIRES_BEFORE_ISSUEDINVALID_ARGUMENTLease expires_at must be after issued_at.
2306005LEASE_NOT_FOUNDNOT_FOUNDLease not found.
2306006LEASE_NOT_RENEWABLEFAILED_PRECONDITIONLease is not renewable.
2306007LEASE_NOT_REVOCABLEFAILED_PRECONDITIONLease is not revocable.
2306008LEASE_ALREADY_TERMINALFAILED_PRECONDITIONLease is already in a terminal state.
2306009LEASE_WORKSPACE_NOT_FOUNDNOT_FOUNDThe workspace this lease belongs to does not exist.
2306010LEASE_SOURCE_ROLE_NOT_VALIDINVALID_ARGUMENTLease source role is required and must be non-blank.
2307001CERTIFICATE_AUTHORITY_NAME_NOT_VALIDINVALID_ARGUMENTCertificate authority name must match ^[a-z0-9][a-z0-9\-_]{1,254}[a-z0-9]$ (3 to 256 chars).
2307002CERTIFICATE_AUTHORITY_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTCertificate authority workspace ID is required.
2307003CERTIFICATE_AUTHORITY_INTERMEDIATE_MISSING_PARENTINVALID_ARGUMENTIntermediate certificate authority requires a parent CA reference.
2307004CERTIFICATE_AUTHORITY_VALIDITY_WINDOW_NOT_VALIDINVALID_ARGUMENTCertificate authority valid_until must be strictly after valid_from.
2307005CERTIFICATE_AUTHORITY_NOT_FOUNDNOT_FOUNDCertificate authority not found.
2307006CERTIFICATE_AUTHORITY_ALREADY_EXISTSALREADY_EXISTSA certificate authority with this name already exists in the workspace.
2307008CERTIFICATE_AUTHORITY_PARENT_NOT_FOUNDNOT_FOUNDParent certificate authority referenced by this intermediate does not exist.
2307010CERTIFICATE_AUTHORITY_WORKSPACE_NOT_FOUNDNOT_FOUNDThe workspace this certificate authority belongs to does not exist.
2307011CERTIFICATE_AUTHORITY_TYPE_NOT_VALIDINVALID_ARGUMENTCertificate authority type must be ROOT or INTERMEDIATE.
2307012CERTIFICATE_AUTHORITY_IS_REVOKEDFAILED_PRECONDITIONCertificate authority is revoked and cannot issue new certificates.
2307013CERTIFICATE_AUTHORITY_NOT_MARKED_FOR_DELETIONFAILED_PRECONDITIONCertificate authority must be marked for deletion before removal.
2308001CERTIFICATE_SERIAL_NOT_VALIDINVALID_ARGUMENTCertificate serial is required and must be at most 128 characters.
2308002CERTIFICATE_SUBJECT_NOT_VALIDINVALID_ARGUMENTCertificate subject is required.
2308003CERTIFICATE_VALIDITY_WINDOW_NOT_VALIDINVALID_ARGUMENTCertificate not_after must be strictly after not_before.
2308004CERTIFICATE_NOT_FOUNDNOT_FOUNDCertificate not found.
2308006CERTIFICATE_ALREADY_REVOKEDFAILED_PRECONDITIONCertificate has already been revoked.
2308007CERTIFICATE_ALREADY_TERMINALFAILED_PRECONDITIONCertificate is already in a terminal state and cannot be revoked.
2308008CERTIFICATE_REVOCATION_REASON_NOT_VALIDINVALID_ARGUMENTCertificate revocation reason must be a valid RFC 5280 reason.
2309001CLOUD_PROVIDER_NOT_VALIDINVALID_ARGUMENTCloud provider must be AWS, GCP, or AZURE.
2310001WRAPPING_PAYLOAD_NOT_VALIDINVALID_ARGUMENTWrapping payload must be non-empty.
2310002WRAPPING_TTL_IS_NOT_VALIDINVALID_ARGUMENTWrapping TTL must be positive.
2310003WRAPPING_TOKEN_IS_BLANKINVALID_ARGUMENTWrapping token must be non-blank.
2310004WRAPPING_TOKEN_NOT_FOUNDFAILED_PRECONDITIONWrapping token does not exist or has already been redeemed.
2311001APPLICATION_CREDENTIAL_NAME_NOT_VALIDINVALID_ARGUMENTApplication credential name is not valid.
2311002APPLICATION_CREDENTIAL_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTApplication credential workspace ID is required.
2311003APPLICATION_CREDENTIAL_NOT_FOUNDNOT_FOUNDApplication credential not found.
2311004APPLICATION_CREDENTIAL_ALREADY_EXISTSALREADY_EXISTSAn application credential with this name already exists in the workspace.
2311005APPLICATION_CREDENTIAL_IS_REVOKEDFAILED_PRECONDITIONApplication credential is revoked.
2311006APPLICATION_CREDENTIAL_AUTHENTICATION_FAILEDUNAUTHENTICATEDApplication credential authentication failed.
2311007APPLICATION_CREDENTIAL_WORKSPACE_NOT_FOUNDNOT_FOUNDThe workspace this application credential belongs to does not exist.
2312001DATABASE_ROLE_NAME_NOT_VALIDINVALID_ARGUMENTDatabase role name is not valid.
2312002DATABASE_ROLE_CREATION_STATEMENTS_NOT_VALIDINVALID_ARGUMENTDatabase role creation statements are required and must be non-blank.
2312003DATABASE_ROLE_REVOCATION_STATEMENTS_NOT_VALIDINVALID_ARGUMENTDatabase role revocation statements are required and must be non-blank.
2312004DATABASE_ROLE_NOT_FOUNDNOT_FOUNDDatabase role not found.
2312005DATABASE_ROLE_ALREADY_EXISTSALREADY_EXISTSA database role with this name already exists in the workspace.
2312006DATABASE_ROLE_DRY_RUN_FAILEDINVALID_ARGUMENTDatabase role dry-run validation failed.
2312007DATABASE_ROLE_STATEMENT_CONTAINS_FORBIDDEN_KEYWORDINVALID_ARGUMENTDatabase role statement contains a forbidden keyword.
2312008DATABASE_ROLE_NOT_MARKED_FOR_DELETIONFAILED_PRECONDITIONDatabase role is not marked for deletion.
2312009DATABASE_ROLE_HAS_ACTIVE_LEASESFAILED_PRECONDITIONDatabase role has active leases and cannot be deleted.
2312010DATABASE_ROLE_WORKSPACE_NOT_FOUNDNOT_FOUNDThe workspace this database role belongs to does not exist.
2312011DATABASE_ROLE_DB_ENGINE_NOT_VALIDINVALID_ARGUMENTDatabase engine is not valid.
2312012DATABASE_ROLE_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTDatabase role workspace ID is required.
2313001PKI_ROLE_NAME_NOT_VALIDINVALID_ARGUMENTPKI role name is not valid.
2313002PKI_ROLE_ALLOWED_DOMAINS_NOT_VALIDINVALID_ARGUMENTPKI role allowed_domains must contain at least one valid domain pattern.
2313003PKI_ROLE_MAX_TTL_NOT_VALIDINVALID_ARGUMENTPKI role max_ttl must be positive and not exceed the parent CA validity remaining.
2313004PKI_ROLE_ALLOWED_KEY_TYPES_NOT_VALIDINVALID_ARGUMENTPKI role allowed_key_types must contain at least one entry.
2313005PKI_ROLE_ALLOWED_EXTENDED_KEY_USAGES_NOT_VALIDINVALID_ARGUMENTPKI role allowed_extended_key_usages must contain at least one entry.
2313006PKI_ROLE_NOT_FOUNDNOT_FOUNDPKI role not found.
2313007PKI_ROLE_ALREADY_EXISTSALREADY_EXISTSA PKI role with this name already exists for the certificate authority.
2313008PKI_ROLE_NOT_MARKED_FOR_DELETIONFAILED_PRECONDITIONPKI role is not marked for deletion.
2313009PKI_ROLE_WORKSPACE_ID_NOT_VALIDINVALID_ARGUMENTPKI role workspace ID is required.
2313010PKI_ROLE_CERTIFICATE_AUTHORITY_NOT_FOUNDNOT_FOUNDThe certificate authority this PKI role belongs to does not exist.
2313011PKI_ROLE_DOMAIN_NOT_ALLOWEDINVALID_ARGUMENTRequested certificate domain is not in the role’s allowed_domains list.
2313012PKI_ROLE_TTL_EXCEEDS_MAXINVALID_ARGUMENTRequested certificate TTL exceeds the role’s max_ttl.
2313013PKI_ROLE_KEY_TYPE_NOT_ALLOWEDINVALID_ARGUMENTRequested certificate key type is not in the role’s allowed_key_types list.
2313014PKI_ROLE_EXTENDED_KEY_USAGE_NOT_ALLOWEDINVALID_ARGUMENTRequested certificate extended key usage is not in the role’s allowed_extended_key_usages list.