Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pkg/plugin/keystore/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ var (
StatusKeyNotFound = status.New(
codes.NotFound, "key not found in the keystore provider")

// StatusKeyGenericErr indicates a generic error occurred while trying to get the key from the keystore provider.
StatusKeyGenericErr = status.New(codes.Unknown, "failed to get key")

// StatusImportKeyMaterialFailed indicates that the import of key material failed cryptographically, typically
// due to invalid or incorrectly wrapped key material.
StatusImportKeyMaterialFailed = status.New(
codes.InvalidArgument, "key material decryption failed: invalid or incorrectly wrapped key material")
)

// NewGrpcErrorWithDetails creates a gRPC error with the given status and metadata mapping.
Expand Down
Loading