Skip to content

Conversation

@michalsn
Copy link
Member

@michalsn michalsn commented Jan 4, 2026

Description
This PR adds support for encryption key rotation through the new previousKeys config option. When decryption with the current key fails, the system automatically falls back to trying previous keys, allowing seamless key rotation without losing access to data encrypted with old keys.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added enhancement PRs that improve existing functionalities 4.7 labels Jan 4, 2026
@michalsn michalsn requested a review from paulbalandan January 4, 2026 20:45
michalsn and others added 4 commits January 6, 2026 09:04
Co-authored-by: patel-vansh <developer.patelvansh@gmail.com>
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
Co-authored-by: John Paul E. Balandan, CPA <paulbalandan@gmail.com>
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
@michalsn michalsn merged commit 12cf2b4 into codeigniter4:4.7 Jan 6, 2026
50 checks passed
@michalsn
Copy link
Member Author

michalsn commented Jan 6, 2026

Thank you everyone, for the reviews!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.7 enhancement PRs that improve existing functionalities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants