Page MenuHomeDevCentral

Add convenience XHubSignature256 class to default to SHA-256
ClosedPublic

Authored by dereckson on Sun, Apr 19, 18:48.
Tags
None
Referenced Files
F27069172: D4086.id10714.diff
Tue, Apr 28, 21:10
F26986145: D4086.id10714.diff
Tue, Apr 28, 09:39
Unknown Object (File)
Mon, Apr 27, 11:00
Unknown Object (File)
Mon, Apr 27, 02:59
Unknown Object (File)
Mon, Apr 27, 02:28
Unknown Object (File)
Mon, Apr 27, 01:54
Unknown Object (File)
Sun, Apr 26, 21:15
Unknown Object (File)
Sun, Apr 26, 17:18
Subscribers
None

Details

Summary

To update the default algo doesn't a good approach, especially as GitHub
has chosen to update the header from X-Hub-Signature to X-Hub-Signature-256.

This is a weird inheritance case where we would like to impose SHA-256
as algorithm but where the parent class allows algorithm override.

Ref T2310

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

To put tests in a namespace is certainly a good idea, but that will be in a follow-up commit.

Unit tests

WindRiver
$ phpunit github
Switching to Composer phpunit:
PHPUnit 12.5-dev by Sebastian Bergmann and contributors.

Runtime:       PHP 8.3.30
Configuration: /home/dereckson/dev/keruald/_monorepo/core/phpunit.xml

........                                                            8 / 8 (100%)

Time: 00:00.016, Memory: 16.00 MB

OK (8 tests, 14 assertions)

Tests seem to require 8111582dd667f98fc11bd50e98b7a9e2d33ff149 to work, but change isn't rebased.

This revision is now accepted and ready to land.Sat, Apr 25, 17:29
This revision was landed with ongoing or failed builds.Sat, Apr 25, 17:30
This revision was automatically updated to reflect the committed changes.