Skip to content

Merge release 3.3.0 into 4.0.x #527

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

Merged
merged 45 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b346ddd
Add IsEqualChecker and CallableChecker (#462)
danielburger1337 Jun 6, 2023
4b6065e
Rector 0.17 + PHPSTAN baseline updated (#463)
Spomky Jun 6, 2023
7ce7695
Update matthiasnoback/symfony-config-test requirement || ^5.0.0 (#464)
dependabot[bot] Jun 6, 2023
9a8f28a
To PHPUnit 10 (#466)
Spomky Jul 2, 2023
227990b
Support new symfony serializer's getSupportedTypes (#470)
rmikalkenas Aug 19, 2023
4ab8741
Remove extra \0 byte if present (#476)
Spomky Aug 23, 2023
36bf60a
Revert "Remove extra \0 byte if present (#476)" (#477)
Spomky Aug 23, 2023
bfceee5
Remove extra \0 byte if present (#478)
Spomky Aug 23, 2023
74e75f3
SF7, other deps and code refactoring (#493)
Spomky Jan 2, 2024
ab7c59e
Fix detached and non-encoded non-UTF8 string (#495)
Spomky Jan 4, 2024
c417d45
Phpdoc/incorrect header description (#496)
Spomky Jan 4, 2024
679ab72
Fix the presence of padding (#497)
Spomky Jan 4, 2024
4822cb8
Merge up
Spomky Jan 7, 2024
bdf1984
Fix test namespaces/classname, ECS and Rector
Spomky Jan 7, 2024
96239e7
Merge pull request #499 from web-token/temporary-branchiS6rNjZW
Spomky Jan 7, 2024
ed2a6d4
Bump actions/checkout from 3 to 4
dependabot[bot] Jan 7, 2024
f4b1590
Merge pull request #483 from web-token/dependabot/github_actions/acti…
Spomky Jan 7, 2024
1e1ab7a
Merge all experimental algorithms into a new package and bundle folde…
Spomky Jan 7, 2024
4eb3429
Merge ECC to jwt-core (#507)
Spomky Jan 30, 2024
a6bb861
Merge small libs to jwt-library
Spomky Feb 1, 2024
5e6882f
Merge pull request #508 from web-token/features/group-small-libs
Spomky Feb 1, 2024
bfa1102
Features/merge algorithms (#509)
Spomky Feb 1, 2024
c601529
Rename bundle and library folders (#510)
Spomky Feb 1, 2024
80361f4
Deps/remove useless checks (#511)
Spomky Feb 1, 2024
bc76770
Fix openssl error reporting (#512)
Spomky Feb 1, 2024
a19ebf7
Ensure JWS serializers only throw InvalidArgumentException (#513)
Spomky Feb 1, 2024
01fceb8
Fix README file
Spomky Feb 1, 2024
7ac6d95
Allows Symfony Http Client (#514)
Spomky Feb 1, 2024
d963e42
Fix openssl requirements for existing dependencies
Spomky Feb 1, 2024
af20c1c
Fix suggestion
Spomky Feb 1, 2024
ed863a6
Ensure OpenSSL or Sodium are available before cypher operation
Spomky Feb 2, 2024
2e0a0aa
Ensure AES-KW library is available before cypher operation
Spomky Feb 2, 2024
cd826e7
Fix ECDH-SS alg and AlgorithmManagerFactory construct method
Spomky Feb 2, 2024
3db0ca8
To Rector 1.0 (#516)
Spomky Feb 9, 2024
81d17ce
Stan error (#518)
Spomky Feb 9, 2024
adb2c57
PHPStan+ECs error fixed (#517)
Spomky Feb 9, 2024
cf7700f
Exp: try to fix Merge-Up
Spomky Feb 10, 2024
0f75469
Do not load KW algorithms if the dependency is not available (#520)
Spomky Feb 12, 2024
9dd48a8
Update release-on-milestone-closed.yml
Spomky Feb 12, 2024
4b762e7
Fix typos (#521)
szepeviktor Feb 13, 2024
fbcbfe8
Bugs/fix ed25519 (#522)
Spomky Feb 13, 2024
46ac028
Update SECURITY.md (#523)
Spomky Feb 13, 2024
4e2678a
Fix deprecated packages dependencies (#524)
Spomky Feb 22, 2024
9a6db48
Simplified Algorithm Manager for Encryption/Decryption (#525)
Spomky Feb 22, 2024
f4c0e0e
Remove old packages references (#526)
Spomky Feb 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ block_comment_end = */
[{*.yml,*.yaml}]
indent_size = 2

[*.neon]
indent_style = tab

[*.md]
trim_trailing_whitespace = false

Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/infection.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

name: "Integrate"

on:
push:
branches:
- "*.x"

jobs:
mutation_testing:
name: "5️⃣ Mutation Testing"
needs:
- "byte_level"
- "syntax_errors"
runs-on: "ubuntu-latest"
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"

- name: "Checkout code"
uses: "actions/checkout@v4"

- name: "Fetch Git base reference"
run: "git fetch --depth=1 origin ${GITHUB_BASE_REF}"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
composer-options: "--optimize-autoloader"

- name: "Execute Infection"
run: "make ci-mu"
44 changes: 9 additions & 35 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Check file permissions"
run: |
Expand All @@ -34,7 +34,7 @@ jobs:
php-version: "8.1"

- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
Expand All @@ -55,6 +55,8 @@ jobs:
- "ubuntu-latest"
php-version:
- "8.1"
- "8.2"
- "8.3"
dependencies:
- "lowest"
- "highest"
Expand All @@ -68,7 +70,7 @@ jobs:
coverage: "xdebug"

- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
Expand Down Expand Up @@ -101,7 +103,7 @@ jobs:
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"

- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Validate Composer configuration"
run: "composer validate --strict"
Expand Down Expand Up @@ -129,7 +131,7 @@ jobs:
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"

- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Check adherence to EditorConfig"
uses: "greut/eclint-action@v0"
Expand All @@ -143,34 +145,6 @@ jobs:
- name: "Check coding style"
run: "make ci-cs"

mutation_testing:
name: "5️⃣ Mutation Testing"
needs:
- "byte_level"
- "syntax_errors"
runs-on: "ubuntu-latest"
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
extensions: "json, mbstring, openssl, sqlite3, curl, uuid"

- name: "Checkout code"
uses: "actions/checkout@v3"

- name: "Fetch Git base reference"
run: "git fetch --depth=1 origin ${GITHUB_BASE_REF}"

- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "highest"
composer-options: "--optimize-autoloader"

- name: "Execute Infection"
run: "make ci-mu"

rector_checkstyle:
name: "6️⃣ Rector Checkstyle"
needs:
Expand All @@ -186,7 +160,7 @@ jobs:
coverage: "xdebug"

- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Fetch Git base reference"
run: "git fetch --depth=1 origin ${GITHUB_BASE_REF}"
Expand All @@ -208,7 +182,7 @@ jobs:
runs-on: "ubuntu-20.04"
steps:
- name: "Checkout code"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"

- name: "Check exported files"
run: |
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/merge-me.yml

This file was deleted.

18 changes: 13 additions & 5 deletions .github/workflows/release-on-milestone-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Release"
uses: "laminas/[email protected]"
Expand All @@ -35,7 +37,9 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Create Merge-Up Pull Request"
uses: "laminas/[email protected]"
Expand All @@ -56,7 +60,9 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Create and/or Switch to new Release Branch"
uses: "laminas/[email protected]"
Expand All @@ -77,7 +83,7 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

Expand All @@ -100,7 +106,9 @@ jobs:

steps:
- name: "Checkout"
uses: "actions/checkout@v3"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Create new milestones"
uses: "laminas/[email protected]"
Expand Down
66 changes: 35 additions & 31 deletions .gitsplit.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,59 @@
splits:
- prefix: "src/Component/Core"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-core.git"
- prefix: "src/Component/Checker"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-checker.git"
- prefix: "src/Component/Signature"
- prefix: "src/Bundle"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-bundle.git"
- prefix: "src/Library"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-library.git"
- prefix: "src/Experimental"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-experimental.git"
- prefix: "src/Deprecated/Signature"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature.git"
- prefix: "src/Component/Encryption"
- prefix: "src/Deprecated/Checker"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-checker.git"
- prefix: "src/Deprecated/Console"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-console.git"
- prefix: "src/Deprecated/Core"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-core.git"
- prefix: "src/Deprecated/Ecc"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-util-ecc.git"
- prefix: "src/Deprecated/Encryption"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption.git"
- prefix: "src/Component/KeyManagement"
- prefix: "src/Deprecated/KeyManagement"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-key-mgmt.git"
- prefix: "src/Component/Console"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-console.git"
- prefix: "src/Component/NestedToken"
- prefix: "src/Deprecated/NestedToken"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-nested-token.git"
- prefix: "src/Bundle/JoseFramework"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-bundle.git"
- prefix: "src/EncryptionAlgorithm/ContentEncryption/AESCBC"
- prefix: "src/Deprecated/EncryptionAlgorithm/ContentEncryption/AESCBC"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-aescbc.git"
- prefix: "src/EncryptionAlgorithm/ContentEncryption/AESGCM"
- prefix: "src/Deprecated/EncryptionAlgorithm/ContentEncryption/AESGCM"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-aesgcm.git"
- prefix: "src/EncryptionAlgorithm/KeyEncryption/AESGCMKW"
- prefix: "src/Deprecated/EncryptionAlgorithm/KeyEncryption/AESGCMKW"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-aesgcmkw.git"
- prefix: "src/EncryptionAlgorithm/KeyEncryption/AESKW"
- prefix: "src/Deprecated/EncryptionAlgorithm/KeyEncryption/AESKW"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-aeskw.git"
- prefix: "src/EncryptionAlgorithm/KeyEncryption/Direct"
- prefix: "src/Deprecated/EncryptionAlgorithm/KeyEncryption/Direct"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-dir.git"
- prefix: "src/EncryptionAlgorithm/KeyEncryption/ECDHES"
- prefix: "src/Deprecated/EncryptionAlgorithm/KeyEncryption/ECDHES"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-ecdh-es.git"
- prefix: "src/EncryptionAlgorithm/KeyEncryption/PBES2"
- prefix: "src/Deprecated/EncryptionAlgorithm/KeyEncryption/PBES2"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-pbes2.git"
- prefix: "src/EncryptionAlgorithm/KeyEncryption/RSA"
- prefix: "src/Deprecated/EncryptionAlgorithm/KeyEncryption/RSA"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-rsa.git"
- prefix: "src/SignatureAlgorithm/ECDSA"
- prefix: "src/Deprecated/SignatureAlgorithm/ECDSA"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-ecdsa.git"
- prefix: "src/SignatureAlgorithm/EdDSA"
- prefix: "src/Deprecated/SignatureAlgorithm/EdDSA"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-eddsa.git"
- prefix: "src/SignatureAlgorithm/None"
- prefix: "src/Deprecated/SignatureAlgorithm/None"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-none.git"
- prefix: "src/SignatureAlgorithm/HMAC"
- prefix: "src/Deprecated/SignatureAlgorithm/HMAC"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-hmac.git"
- prefix: "src/SignatureAlgorithm/RSA"
- prefix: "src/Deprecated/SignatureAlgorithm/RSA"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-rsa.git"
- prefix: "src/SignatureAlgorithm/Experimental"
- prefix: "src/Deprecated/SignatureAlgorithm/Experimental"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-signature-algorithm-experimental.git"
- prefix: "src/EncryptionAlgorithm/Experimental"
- prefix: "src/Deprecated/EncryptionAlgorithm/Experimental"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-encryption-algorithm-experimental.git"
- prefix: "src/Ecc"
target: "https://${GH_TOKEN}@github.com/web-token/jwt-util-ecc.git"
- prefix: "packs/encryption"
- prefix: "src/Deprecated/Pack/Encryption"
target: "https://${GH_TOKEN}@github.com/web-token/encryption-pack.git"
- prefix: "packs/signature"
- prefix: "rc/Deprecated/Pack/Signature"
target: "https://${GH_TOKEN}@github.com/web-token/signature-pack.git"

origins:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ st: vendor ## Run static analyse

################################################

ci-mu: vendor ## Mutation tests (for Github only)
ci-mu: vendor ## Mutation tests (for GitHub only)
vendor/bin/infection --logger-github -s --threads=$$(nproc) --min-msi=45 --min-covered-msi=60

ci-cc: vendor ## Show test coverage rates (console)
Expand Down
5 changes: 2 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
| Version | Supported |
|---------|--------------------|
| 4.0.x | :white_check_mark: |
| 3.1.x | :white_check_mark: |
| 3.0.x | :white_check_mark: |
| < 3.0.0 | :x: |
| 3.3.x | :white_check_mark: |
| < 3.3.0 | :x: |

## Reporting a Vulnerability

Expand Down
Loading