Branch: refs/heads/master
  Home:   https://github.com/jenkinsci/bouncycastle-api-plugin
  Commit: e306e5379dd08876fcece3b01576dc25af056138
      
https://github.com/jenkinsci/bouncycastle-api-plugin/commit/e306e5379dd08876fcece3b01576dc25af056138
  Author: James Nord <jtn...@users.noreply.github.com>
  Date:   2024-07-05 (Fri, 05 Jul 2024)

  Changed paths:
    M src/main/java/jenkins/bouncycastle/api/PEMEncodable.java

  Log Message:
  -----------
  Handle BC-FIPS related exception and propagate exception causes

When testing with BC-FIPS PEMEncodeable was failing in some unexpected
ways.

in the first if we could not convert due to a PKCSException or 
InvalidKeySpecException
then the cause was logged and a new exception without details was thrown.
This means the underlying cause is lost when using any exception in a
FormValidation.

In the second case when using a key that had too short of salt an
org.bouncycastle.crypto.fips.FipsUnapprovedOperationError was thrown
which being an error would ripple up and cause an unexpected error.

We now catch this error and wrap it in an UnrecoverableKeyException so
it can be handled by the caller


  Commit: e27176eb46cbe94c1d1de6a9f318e3d538c34a4a
      
https://github.com/jenkinsci/bouncycastle-api-plugin/commit/e27176eb46cbe94c1d1de6a9f318e3d538c34a4a
  Author: James Nord <jtn...@users.noreply.github.com>
  Date:   2024-07-05 (Fri, 05 Jul 2024)

  Changed paths:
    M src/main/java/jenkins/bouncycastle/api/PEMEncodable.java

  Log Message:
  -----------
  Merge pull request #155 from jtnord/better-exception-handling

Handle BC-FIPS related exception and propagate exception causes


Compare: 
https://github.com/jenkinsci/bouncycastle-api-plugin/compare/e1089fe22055...e27176eb46cb

To unsubscribe from these emails, change your notification settings at 
https://github.com/jenkinsci/bouncycastle-api-plugin/settings/notifications

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-commits+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/bouncycastle-api-plugin/push/refs/heads/master/e1089f-e27176%40github.com.

Reply via email to