jwt-toolkit 0.1.2__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.github/workflows/publish.yml +5 -1
  2. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/PKG-INFO +4 -4
  3. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/README.md +3 -3
  4. jwt_toolkit-0.1.3/SECURITY.md +40 -0
  5. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/pyproject.toml +14 -1
  6. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/uv.lock +1 -1
  7. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.editorconfig +0 -0
  8. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  9. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  10. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.github/ISSUE_TEMPLATE/documentation.yml +0 -0
  11. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  12. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  13. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.github/dependabot.yml +0 -0
  14. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.github/workflows/ci.yml +0 -0
  15. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.gitignore +0 -0
  16. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.pre-commit-config.yaml +0 -0
  17. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/.python-version +0 -0
  18. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/CONTRIBUTING.md +0 -0
  19. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/LICENSE +0 -0
  20. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/Makefile +0 -0
  21. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/assets/images/demo.jpg +0 -0
  22. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/__init__.py +0 -0
  23. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/cli/__init__.py +0 -0
  24. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/cli/algorithms.py +0 -0
  25. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/cli/banner.py +0 -0
  26. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/cli/console.py +0 -0
  27. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/cli/decoding.py +0 -0
  28. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/cli/panels.py +0 -0
  29. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/commands/__init__.py +0 -0
  30. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/commands/audit.py +0 -0
  31. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/commands/crack.py +0 -0
  32. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/commands/decode.py +0 -0
  33. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/commands/download_wordlists.py +0 -0
  34. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/commands/forge.py +0 -0
  35. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/commands/generate_secret.py +0 -0
  36. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/commands/sign.py +0 -0
  37. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/commands/verify.py +0 -0
  38. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/core/__init__.py +0 -0
  39. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/core/auditor.py +0 -0
  40. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/core/crypto.py +0 -0
  41. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/core/decoder.py +0 -0
  42. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/core/encoding.py +0 -0
  43. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/core/errors.py +0 -0
  44. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/core/forge.py +0 -0
  45. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/jwt_toolkit/core/jwks.py +0 -0
  46. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/__init__.py +0 -0
  47. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/conftest.py +0 -0
  48. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/helpers.py +0 -0
  49. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_auditor.py +0 -0
  50. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_cmd_audit.py +0 -0
  51. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_cmd_crack.py +0 -0
  52. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_cmd_decode.py +0 -0
  53. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_cmd_download_wordlists.py +0 -0
  54. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_cmd_forge.py +0 -0
  55. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_cmd_generate_secret.py +0 -0
  56. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_cmd_sign.py +0 -0
  57. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_cmd_verify.py +0 -0
  58. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_crypto.py +0 -0
  59. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_crypto_asymmetric.py +0 -0
  60. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_decoder.py +0 -0
  61. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_forge.py +0 -0
  62. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/tests/test_jwks.py +0 -0
  63. {jwt_toolkit-0.1.2 → jwt_toolkit-0.1.3}/wordlists/common-secrets.txt +0 -0
@@ -37,11 +37,15 @@ jobs:
37
37
  url: https://pypi.org/p/jwt-toolkit
38
38
  permissions:
39
39
  id-token: write
40
+ attestations: write
41
+ contents: read
40
42
  steps:
41
43
  - name: Download build artifacts
42
44
  uses: actions/download-artifact@v7
43
45
  with:
44
46
  name: dist
45
47
  path: dist/
46
- - name: Publish to PyPI (Trusted Publishing)
48
+ - name: Publish to PyPI (Trusted Publishing + PEP 740 attestations)
47
49
  uses: pypa/gh-action-pypi-publish@release/v1
50
+ with:
51
+ attestations: true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: jwt-toolkit
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: A command-line toolkit for inspecting, verifying, cracking, and securing JSON Web Tokens. Built to expose how JWT signing works and where it breaks.
5
5
  Project-URL: Homepage, https://github.com/KhaledSaeed18/jwt-toolkit
6
6
  Project-URL: Repository, https://github.com/KhaledSaeed18/jwt-toolkit
@@ -40,7 +40,7 @@ Description-Content-Type: text/markdown
40
40
  <a href="https://pypi.org/project/jwt-toolkit/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/jwt-toolkit.svg"></a>
41
41
  <a href="https://github.com/KhaledSaeed18/jwt-toolkit/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/KhaledSaeed18/jwt-toolkit/actions/workflows/ci.yml/badge.svg?branch=main"></a>
42
42
  <a href="https://github.com/KhaledSaeed18/jwt-toolkit/actions/workflows/publish.yml"><img alt="Publish" src="https://github.com/KhaledSaeed18/jwt-toolkit/actions/workflows/publish.yml/badge.svg"></a>
43
- <a href="./LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green.svg"></a>
43
+ <a href="https://github.com/KhaledSaeed18/jwt-toolkit/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green.svg"></a>
44
44
  <a href="https://github.com/KhaledSaeed18/jwt-toolkit"><img alt="Status" src="https://img.shields.io/pypi/status/jwt-toolkit.svg"></a>
45
45
  </p>
46
46
 
@@ -276,8 +276,8 @@ JWT_TOOLKIT_QUIET=1 NO_COLOR=1 jwt-toolkit audit <token> --json
276
276
 
277
277
  ## Contributing
278
278
 
279
- Contributions are welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md) for the codebase layout, development setup, branch and commit conventions, and the pull-request workflow.
279
+ Contributions are welcome. See [CONTRIBUTING.md](https://github.com/KhaledSaeed18/jwt-toolkit/blob/main/CONTRIBUTING.md) for the codebase layout, development setup, branch and commit conventions, and the pull-request workflow.
280
280
 
281
281
  ## License
282
282
 
283
- [MIT](./LICENSE) © Khaled Saeed
283
+ [MIT](https://github.com/KhaledSaeed18/jwt-toolkit/blob/main/LICENSE) © Khaled Saeed
@@ -9,7 +9,7 @@
9
9
  <a href="https://pypi.org/project/jwt-toolkit/"><img alt="Python versions" src="https://img.shields.io/pypi/pyversions/jwt-toolkit.svg"></a>
10
10
  <a href="https://github.com/KhaledSaeed18/jwt-toolkit/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/KhaledSaeed18/jwt-toolkit/actions/workflows/ci.yml/badge.svg?branch=main"></a>
11
11
  <a href="https://github.com/KhaledSaeed18/jwt-toolkit/actions/workflows/publish.yml"><img alt="Publish" src="https://github.com/KhaledSaeed18/jwt-toolkit/actions/workflows/publish.yml/badge.svg"></a>
12
- <a href="./LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green.svg"></a>
12
+ <a href="https://github.com/KhaledSaeed18/jwt-toolkit/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-green.svg"></a>
13
13
  <a href="https://github.com/KhaledSaeed18/jwt-toolkit"><img alt="Status" src="https://img.shields.io/pypi/status/jwt-toolkit.svg"></a>
14
14
  </p>
15
15
 
@@ -245,8 +245,8 @@ JWT_TOOLKIT_QUIET=1 NO_COLOR=1 jwt-toolkit audit <token> --json
245
245
 
246
246
  ## Contributing
247
247
 
248
- Contributions are welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md) for the codebase layout, development setup, branch and commit conventions, and the pull-request workflow.
248
+ Contributions are welcome. See [CONTRIBUTING.md](https://github.com/KhaledSaeed18/jwt-toolkit/blob/main/CONTRIBUTING.md) for the codebase layout, development setup, branch and commit conventions, and the pull-request workflow.
249
249
 
250
250
  ## License
251
251
 
252
- [MIT](./LICENSE) © Khaled Saeed
252
+ [MIT](https://github.com/KhaledSaeed18/jwt-toolkit/blob/main/LICENSE) © Khaled Saeed
@@ -0,0 +1,40 @@
1
+ # Security Policy
2
+
3
+ `jwt-toolkit` is a defensive command-line tool for inspecting, verifying, auditing, and stress-testing JSON Web Tokens. Because it operates on credentials and signing material, we take vulnerability reports seriously and ask that they be handled through the channels below rather than in public issues.
4
+
5
+ ## Supported versions
6
+
7
+ `jwt-toolkit` follows semantic versioning and is pre-1.0 (`0.x.y`). Only the latest published minor on PyPI receives security fixes.
8
+
9
+ | Version | Supported |
10
+ | ---------------------- | ------------------------------------------ |
11
+ | Latest `0.x.y` on PyPI | Yes — fixes ship in the next patch release |
12
+ | Older `0.x.y` lines | No — please upgrade |
13
+
14
+ You can confirm the latest version with `pip index versions jwt-toolkit` or by visiting <https://pypi.org/project/jwt-toolkit/>.
15
+
16
+ ## Reporting a vulnerability
17
+
18
+ **Please do not open a public GitHub issue for security problems.**
19
+
20
+ The preferred channel is **GitHub's private vulnerability reporting**:
21
+
22
+ 1. Go to <https://github.com/KhaledSaeed18/jwt-toolkit/security/advisories/new>.
23
+ 2. Fill in the form with a description, affected versions, and reproduction steps.
24
+ 3. Submit. Only repository maintainers will see the report.
25
+
26
+ This keeps the disclosure private until a fix is available, lets us coordinate a CVE if appropriate, and gives you credit in the published advisory.
27
+
28
+ If GitHub private vulnerability reporting is not available to you for any reason, open a regular issue with a minimal placeholder title (e.g., "Requesting a private security contact") — do **not** include reproduction details — and a maintainer will follow up with a private channel.
29
+
30
+ ## Hardening this project relies on
31
+
32
+ For transparency, the project ships through the following supply-chain controls; reports about weaknesses in any of these are welcome:
33
+
34
+ - **PyPI Trusted Publishing (OIDC)** from `KhaledSaeed18/jwt-toolkit`'s `publish.yml` workflow, gated by a manual approval on the `pypi` GitHub Environment. No long-lived PyPI tokens.
35
+ - **PEP 740 artifact attestations** on the wheel and sdist, signed via sigstore through the publish workflow.
36
+ - **`pip-audit`** runs in CI against `uv.lock` on every push and PR; releases are blocked on a clean audit.
37
+ - **`bandit`** runs in CI at medium severity; new findings block the gate.
38
+ - **Dependabot** opens grouped weekly PRs for runtime and CI dependency bumps.
39
+
40
+ If any of these stop working as described, that itself is a reportable issue.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "jwt-toolkit"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = "A command-line toolkit for inspecting, verifying, cracking, and securing JSON Web Tokens. Built to expose how JWT signing works and where it breaks."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.13"
@@ -53,6 +53,19 @@ build-backend = "hatchling.build"
53
53
 
54
54
  [tool.hatch.build.targets.wheel]
55
55
  packages = ["jwt_toolkit"]
56
+ exclude = [
57
+ "**/CLAUDE.md",
58
+ "**/__pycache__",
59
+ ]
60
+
61
+ [tool.hatch.build.targets.sdist]
62
+ exclude = [
63
+ ".claude/",
64
+ ".cspell.json",
65
+ "CLAUDE.md",
66
+ "jwt_toolkit/core/CLAUDE.md",
67
+ "**/__pycache__",
68
+ ]
56
69
 
57
70
  [dependency-groups]
58
71
  dev = [
@@ -431,7 +431,7 @@ wheels = [
431
431
 
432
432
  [[package]]
433
433
  name = "jwt-toolkit"
434
- version = "0.1.0"
434
+ version = "0.1.2"
435
435
  source = { editable = "." }
436
436
  dependencies = [
437
437
  { name = "click" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes