Repository navigation
Prepare 14.0.0: clean dependency audit, WebAuthn on webauthn-lib 5.3, fixes and tests - #133
Open
arusinowski wants to merge 1 commit into
Open
arusinowski wants to merge 1 commit into
arusinowski wants to merge 1 commit into
Conversation
… dependency and tooling updates, bug fixes, tests and docs
arusinowski
force-pushed
the
feature/14.x
branch
from
November 28, 2026 17:11
8c46518 to
8f1f9be
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
14.0.0 for CakePHP 5.4. With this release 14.x is the only maintained version for CakePHP 5, and 11.x the only one for CakePHP 4 (see the README).
composer auditreports no security advisory for the plugin's dependencies. Every change is inCHANGELOG.md; what an application must change is indocs/Documentation/upgrading.md.Breaking changes
web-auth/webauthn-lib^5.3.13 instead of 4.x, andcakedc/users^17.1, which uses the same version. Registered keys keep working and the JSON for clients keeps its shape. A registration or login that is in progress during the deploy must be started again.CakeDC\Api\Webauthn\PublicKeyCredentialLoaderis removed; the adapters and the repository work withWebauthn\CredentialRecord.filesystemmust be aFilesystemOperator,deliverAsset()has a new signature andgetFile()is removed.robthree/twofactorauth^3.0.1 andendroid/qr-code^5 or ^6.firebase/php-jwt^7 only, andcakephp/authentication^4.2 is required directly.lcobucci/jwtandlcobucci/clockare no longer required: tokens are now signed withfirebase/php-jwt, byte for byte the same as before, and tokens issued earlier stay valid. A secret shorter than 64 bytes is refused with anInvalidArgumentExceptioninstead ofLcobucci\JWT\Signer\InvalidKeyProvided. An application that usesLcobucci\JWTitself must require it.crustum/cakephp-attribute-resolver^1.0.3. Older versions can read the same attribute twice, which doubled the path of an#[ApiScope].CakeDC\Api\Plugin(useApiPlugin) andMiddleware\RequestHandlerMiddleware(useBodyParserMiddleware).CakeExceptionthat lists the members, because such an override is never called.Api.legacyMemberGuard => falseturns the check off.OtpVerifyGetAction::onVerifyGetSecret()no longer types its parameter asarray;SecondFactorTrait::hasVerifiedOtp()andhasWebauthnCredential()type theirs asEntityInterface|array|null.patterns,pass,nameanddefaultsof#[ApiRoute], the verb attributes and#[ApiScope]were ignored in 13.x and now take effect.Api.Jwt.enabledandrequire_sslare removed fromconfig/api.php. Neither was ever read.New
ordersetting for a default order; ignored sort fields are logged at debug level.auth_timeclaim and theApi.Jwt.RefreshToken.maxSessionLifetimesetting, which bounds a session however often it is refreshed.config/rector/cakephp-api-13.php). It renames the members that lost their underscore, replaces the removed classes, and adds the native type of every plugin property a subclass redeclares.Service::mapAction()acceptspatterns,passandname;bin/cake service routes --sort.Fixes
FallbackService. Such a version, and the default version, also read the unversionedApi.Service.<service>options, so an option of the service cannot be skipped by asking for another version number.TypeError. A role held as an enum is matched by its value; a role that cannot be matched, such as an array, is denied with a logged warning instead of being treated as the default role.Authorizationheader; a domain without settings answers 400; a credential id that is already registered is refused.$extensions; actions load extensions listed without a plugin prefix.RegisterActiondispatchesUsers.Global.afterRegister;FileRendereranswers 404 for a missing file; pagination values below 1 fall back to the defaults; reCaptcha without a token fails validation;CrudActionaccepts a table name as itstableoption;Action::transform()returns an empty list for an empty list.OptionsHandlerExtension, the request method inLogExtension, dates inXmlRenderer, social login.Documentation
The documentation was checked against the code and corrected in about 70 places, among them:
config/api_permissions.php, not byAuth.allow.Ruleunderallowedis also called for a request without a user.jwt_loginandjwt_refreshactions.Deprecated
The pre-10.0 auth layer:
Service\Auth\Auth,AuthenticateTrait,AuthenticationExtensionandAction::$Auth. They are removed in 15.0.0.How it was tested
--display-all-issues --fail-on-all-issues.composer updatewith advisory blocking on, andcomposer audit: no advisories.hash_hmac. They passed on the oldlcobucci/jwtcode before the switch and pass now.src/Service/Action/Auth.composer update --prefer-lowest) with SQLite: 931 tests pass.