ksail icon indicating copy to clipboard operation
ksail copied to clipboard

Embedded error should bubble up

Open rvangsgaard opened this issue 1 year ago • 0 comments

Description

Whenever ksail uses an external tool, for example sops, let errors from external tools bubble up.

Currently if a sops operation fails, I get this error "SOPS decryption failed". If I run the native sops CLI, I get this error:

Failed to get the data key required to decrypt the SOPS file.

Group 0: FAILED
  age12n0a8cl5e0y9cef9hnde5jhzzqqv3u9enyrdjg94jw6rpc5e2e3s5l5y74: FAILED
    - | failed to create reader for decrypting sops data key with
      | age: no identity matched any of the recipients

Recovery failed because no master key was able to decrypt the file. In
order for SOPS to recover the file, at least one key has to be successful,
but none were.

This "embedded" error should bubble up, as I now have more information to fix the error.

Preconditions

No response

Expected work done

No response

Postconditions

No response

rvangsgaard avatar Jul 01 '24 07:07 rvangsgaard