Skip to content

Add error handling for invalid encryption keys with logging #4326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kathap
Copy link
Contributor

@kathap kathap commented Apr 28, 2025

  • A short explanation of the proposed change:
  • Wrapped pbkdf2_hmac in a begin-rescue block to catch encryption key errors.
  • Added detailed error logging for failed key derivation.
  • An explanation of the use cases your change solves

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

- Wrapped pbkdf2_hmac in a begin-rescue block to catch encryption key errors.
- Added detailed error logging for failed key derivation.
@kathap kathap marked this pull request as draft April 28, 2025 15:26
@kathap kathap force-pushed the add-error-log-if-key-label-for-encryption-is-wrong branch from 8d5472d to f984d22 Compare April 30, 2025 06:48
kathap added 2 commits April 30, 2025 17:06
…redential_bindings/:binding_guid/details when encryption-key-label is invalid
@kathap kathap force-pushed the add-error-log-if-key-label-for-encryption-is-wrong branch from e9932a6 to ec88450 Compare May 5, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant