Skip to content
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

Merge up 3.4.x to 4.0.x #551

Merged
merged 5 commits into from
Apr 9, 2024
Merged

Merge up 3.4.x to 4.0.x #551

merged 5 commits into from
Apr 9, 2024

Conversation

Spomky
Copy link
Member

@Spomky Spomky commented Apr 9, 2024

No description provided.

Spomky and others added 5 commits March 24, 2024 10:57
* Refactor encryption algorithms configuration

Deprecated 'key_encryption_algorithms' and 'content_encryption_algorithms' have been replaced with a unified 'encryption_algorithms' across multiple classes and configurations. Warning messages have been added to any deprecated usages to ensure smooth transition in future versions. Update test assertions accordingly to reflect these changes.

* Update code to avoid use of deprecated encryption algorithms

Replaced 'key_encryption_algorithms' and 'content_encryption_algorithms' with 'encryption_algorithms'. Deprecated warning messages have now been included in code to guide future updates. Test cases have been adjusted to validate these changes.
* Update and improve RSA keys handling and support

This update enhances the RSA keys handling in the KeyConverter class, adding support for RSASSA-PSS encryption. It includes a new test case for RSASSA-PSS keys and upgrades the "spomky-labs/pki-framework" dependency, which provides underlying support for encryption algorithms. Key errors are now clarified with enhanced exception handling.

* Update PHPStan baseline with new types rules

The PHPStan baseline is updated to include newly identified type issues concerning return value types in iterable arrays for getSupportedTypes() method in both JWESerializer and JWSSerializer classes. Also, remove irrelevant default property type issues of various command classes thus reducing noise in the baseline file.
Implemented caching in the UrlKeySetFactory to store and retrieve URL data. This is accomplished by adding the PSR Cache package to the composer.json file and incorporating it with the CacheItemPoolInterface in the UrlKeySetFactory class. This addition intends to improve performance by storing data from previous URL requests and reusing them, if available, instead of making repeated URL requests.

Co-authored-by: Florent Morselli <[email protected]>
The PHPStan baseline is updated to include newly identified type issues concerning return value types in iterable arrays for getSupportedTypes() method in both JWESerializer and JWSSerializer classes. Also, remove irrelevant default property type issues of various command classes thus reducing noise in the baseline file.
This commit updates the 'spomky-labs/pki-framework' dependency to version 1.2.1 in both 'src/Library/composer.json' and 'composer.json' files. It also adds an exception dump in 'src/Library/KeyManagement/KeyConverter/KeyConverter.php' file for better error debugging.~
@Spomky Spomky merged commit c0aecbd into 4.0.x Apr 9, 2024
9 checks passed
@Spomky Spomky deleted the temp-1ef6ba branch April 9, 2024 17:13
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.

2 participants