apsig 0.5.2__tar.gz → 0.5.4__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.
- apsig-0.5.4/.github/workflows/lint.yml +67 -0
- apsig-0.5.4/.github/workflows/publish.yml +60 -0
- apsig-0.5.4/.github/workflows/test.yml +34 -0
- apsig-0.5.4/.gitignore +162 -0
- apsig-0.5.4/.vscode/launch.json +16 -0
- apsig-0.5.4/CHANGELOG.md +171 -0
- {apsig-0.5.2 → apsig-0.5.4}/PKG-INFO +14 -10
- apsig-0.5.4/SECURITY.md +15 -0
- apsig-0.5.4/Taskfile.yaml +34 -0
- apsig-0.5.4/cliff.toml +94 -0
- apsig-0.5.4/dev/e2e/faker/actor.py +38 -0
- apsig-0.5.4/dev/e2e/server_ld.py +98 -0
- apsig-0.5.4/dev/e2e/server_proof.py +104 -0
- apsig-0.5.4/docs/README.md +8 -0
- apsig-0.5.4/docs/httpsig.md +2 -0
- apsig-0.5.4/docs/ldsignature.md +2 -0
- apsig-0.5.4/docs/proof.md +2 -0
- apsig-0.5.4/pdm.lock +1202 -0
- apsig-0.5.4/pyproject.toml +66 -0
- apsig-0.5.4/renovate.json +6 -0
- apsig-0.5.4/src/apsig/_version.py +34 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/draft/sign.py +42 -29
- apsig-0.5.4/src/apsig/draft/tools.py +22 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/draft/verify.py +21 -19
- apsig-0.5.4/uv.lock +1316 -0
- apsig-0.5.2/pyproject.toml +0 -64
- apsig-0.5.2/src/apsig/_version.py +0 -1
- apsig-0.5.2/src/apsig/draft/tools.py +0 -18
- {apsig-0.5.2 → apsig-0.5.4}/COPYING.md +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/LICENSE +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/README.md +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/__init__.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/__polyfill/datetime.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/actor/keytools.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/draft/__init__.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/exceptions.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/ld_signature.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/proof/sign.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/proof/verify.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/src/apsig/tools.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/tests/__init__.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/tests/test_draft.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/tests/test_ld.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/tests/test_multibase_ed25519.py +0 -0
- {apsig-0.5.2 → apsig-0.5.4}/tests/test_proof.py +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: Lint Check
|
|
2
|
+
permissions:
|
|
3
|
+
contents: read
|
|
4
|
+
pull-requests: write
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
run-ruff:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
contents: write
|
|
14
|
+
pull-requests: write
|
|
15
|
+
name: Run Ruff
|
|
16
|
+
steps:
|
|
17
|
+
- name: Check out source repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
ref: ${{ github.head_ref }}
|
|
21
|
+
|
|
22
|
+
- name: Format code
|
|
23
|
+
uses: astral-sh/ruff-action@v3.2.2
|
|
24
|
+
with:
|
|
25
|
+
args: "format"
|
|
26
|
+
src: "scripts/"
|
|
27
|
+
continue-on-error: true
|
|
28
|
+
|
|
29
|
+
- name: Commit Formatted Code
|
|
30
|
+
run: |
|
|
31
|
+
git config --global user.name "github-actions[bot]"
|
|
32
|
+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
33
|
+
git add .
|
|
34
|
+
git commit -m "refactor: auto formatted by ruff" || exit 0
|
|
35
|
+
git push origin HEAD:${{ github.head_ref }}
|
|
36
|
+
env:
|
|
37
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
38
|
+
|
|
39
|
+
- uses: astral-sh/ruff-action@v3
|
|
40
|
+
with:
|
|
41
|
+
src: "./src/apsig"
|
|
42
|
+
args: "check --output-file ruff_check_output.txt --output-format full"
|
|
43
|
+
continue-on-error: true
|
|
44
|
+
|
|
45
|
+
- name: Output
|
|
46
|
+
run: |
|
|
47
|
+
echo "#### Lint Result" > ruff_output.txt
|
|
48
|
+
|
|
49
|
+
# Add format output
|
|
50
|
+
echo "<details><summary>Not fixable checks</summary>" >> ruff_output.txt
|
|
51
|
+
echo "" >> ruff_output.txt
|
|
52
|
+
echo '```' >> ruff_output.txt
|
|
53
|
+
cat ruff_check_output.txt >> ruff_output.txt
|
|
54
|
+
echo '```' >> ruff_output.txt
|
|
55
|
+
echo "" >> ruff_output.txt
|
|
56
|
+
echo "</details>" >> ruff_output.txt
|
|
57
|
+
|
|
58
|
+
file_size=$(wc -m <ruff_output.txt)
|
|
59
|
+
if [ "$file_size" -gt 65000 ]; then
|
|
60
|
+
head -c 65000 ruff_output.txt > temp_ruff_output.txt
|
|
61
|
+
mv temp_ruff_output.txt ruff_output.txt
|
|
62
|
+
fi
|
|
63
|
+
|
|
64
|
+
gh issue comment ${{ github.event.number }} --body-file ruff_output.txt
|
|
65
|
+
env:
|
|
66
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
67
|
+
GH_REPO: ${{ github.repository }}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Publish Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [created]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
merge:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout code
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
fetch-depth: 0
|
|
17
|
+
|
|
18
|
+
- name: Set up Git
|
|
19
|
+
run: |
|
|
20
|
+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
21
|
+
git config --local user.name "github-actions[bot]"
|
|
22
|
+
|
|
23
|
+
- name: Merge main into stable
|
|
24
|
+
run: |
|
|
25
|
+
git checkout origin/stable
|
|
26
|
+
git merge -m "build: merge latest main branch" origin/main
|
|
27
|
+
git push origin HEAD:stable
|
|
28
|
+
env:
|
|
29
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
30
|
+
|
|
31
|
+
pypi-publish:
|
|
32
|
+
name: Upload release to PyPI
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
environment:
|
|
35
|
+
name: pypi
|
|
36
|
+
url: https://pypi.org/p/apsig
|
|
37
|
+
permissions:
|
|
38
|
+
id-token: write
|
|
39
|
+
steps:
|
|
40
|
+
- name: Checkout code
|
|
41
|
+
uses: actions/checkout@v4
|
|
42
|
+
|
|
43
|
+
- name: Setup uv
|
|
44
|
+
uses: astral-sh/setup-uv@v6
|
|
45
|
+
with:
|
|
46
|
+
version: ">=0.7.21,<0.8"
|
|
47
|
+
|
|
48
|
+
- name: Set SETUPTOOLS_SCM_PRETEND_VERSION
|
|
49
|
+
run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
|
|
50
|
+
|
|
51
|
+
- name: Display SETUPTOOLS_SCM_PRETEND_VERSION
|
|
52
|
+
run: echo "SETUPTOOLS_SCM_PRETEND_VERSION is $SETUPTOOLS_SCM_PRETEND_VERSION"
|
|
53
|
+
|
|
54
|
+
- name: Build Package
|
|
55
|
+
run: |
|
|
56
|
+
uv sync --locked
|
|
57
|
+
uv build
|
|
58
|
+
|
|
59
|
+
- name: Publish package distributions to PyPI
|
|
60
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
permissions:
|
|
3
|
+
contents: read
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
pull_request:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
test:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
python-version: ["3.10", 3.11, 3.12, 3.13]
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Setup uv
|
|
21
|
+
uses: astral-sh/setup-uv@v6
|
|
22
|
+
with:
|
|
23
|
+
version: ">=0.7.21,<0.8"
|
|
24
|
+
|
|
25
|
+
- name: Install Task
|
|
26
|
+
uses: arduino/setup-task@v2
|
|
27
|
+
with:
|
|
28
|
+
version: 3.x
|
|
29
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
30
|
+
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: task
|
|
33
|
+
- name: Run tests
|
|
34
|
+
run: task test
|
apsig-0.5.4/.gitignore
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
110
|
+
.pdm.toml
|
|
111
|
+
.pdm-python
|
|
112
|
+
.pdm-build/
|
|
113
|
+
|
|
114
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
115
|
+
__pypackages__/
|
|
116
|
+
|
|
117
|
+
# Celery stuff
|
|
118
|
+
celerybeat-schedule
|
|
119
|
+
celerybeat.pid
|
|
120
|
+
|
|
121
|
+
# SageMath parsed files
|
|
122
|
+
*.sage.py
|
|
123
|
+
|
|
124
|
+
# Environments
|
|
125
|
+
.env
|
|
126
|
+
.venv
|
|
127
|
+
env/
|
|
128
|
+
venv/
|
|
129
|
+
ENV/
|
|
130
|
+
env.bak/
|
|
131
|
+
venv.bak/
|
|
132
|
+
|
|
133
|
+
# Spyder project settings
|
|
134
|
+
.spyderproject
|
|
135
|
+
.spyproject
|
|
136
|
+
|
|
137
|
+
# Rope project settings
|
|
138
|
+
.ropeproject
|
|
139
|
+
|
|
140
|
+
# mkdocs documentation
|
|
141
|
+
/site
|
|
142
|
+
|
|
143
|
+
# mypy
|
|
144
|
+
.mypy_cache/
|
|
145
|
+
.dmypy.json
|
|
146
|
+
dmypy.json
|
|
147
|
+
|
|
148
|
+
# Pyre type checker
|
|
149
|
+
.pyre/
|
|
150
|
+
|
|
151
|
+
# pytype static type analyzer
|
|
152
|
+
.pytype/
|
|
153
|
+
|
|
154
|
+
# Cython debug symbols
|
|
155
|
+
cython_debug/
|
|
156
|
+
|
|
157
|
+
# PyCharm
|
|
158
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
159
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
160
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
161
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
162
|
+
#.idea/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
// IntelliSense を使用して利用可能な属性を学べます。
|
|
3
|
+
// 既存の属性の説明をホバーして表示します。
|
|
4
|
+
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
|
|
8
|
+
{
|
|
9
|
+
"name": "Python デバッガー: 現在のファイル",
|
|
10
|
+
"type": "debugpy",
|
|
11
|
+
"request": "launch",
|
|
12
|
+
"program": "${file}",
|
|
13
|
+
"console": "integratedTerminal"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
apsig-0.5.4/CHANGELOG.md
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
## [unreleased]
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- Rewrite draft
|
|
6
|
+
- Migrate to uv
|
|
7
|
+
|
|
8
|
+
### 🐛 Bug Fixes
|
|
9
|
+
|
|
10
|
+
- Lock
|
|
11
|
+
|
|
12
|
+
### 💼 Other
|
|
13
|
+
|
|
14
|
+
- Rfc9421 (remove miss)
|
|
15
|
+
|
|
16
|
+
### ⚙️ Miscellaneous Tasks
|
|
17
|
+
|
|
18
|
+
- Update version
|
|
19
|
+
- Rfc関連の実装は消す
|
|
20
|
+
## [0.5.3](https://github.com/fedi-libs/apsig/releases/tag/0.5.3) - 2025-05-02
|
|
21
|
+
|
|
22
|
+
### 🐛 Bug Fixes
|
|
23
|
+
|
|
24
|
+
- Unable to verify on fedify
|
|
25
|
+
## [0.5.2](https://github.com/fedi-libs/apsig/releases/tag/0.5.2) - 2025-05-02
|
|
26
|
+
|
|
27
|
+
### 🚀 Features
|
|
28
|
+
|
|
29
|
+
- Support sign to get request
|
|
30
|
+
- Add test cases
|
|
31
|
+
- 0.5.2
|
|
32
|
+
|
|
33
|
+
### 🐛 Bug Fixes
|
|
34
|
+
|
|
35
|
+
- To accept RSAPublicKey format, and body also supports dictionary format.
|
|
36
|
+
- Formatting json if argument is dict
|
|
37
|
+
|
|
38
|
+
### ⚙️ Miscellaneous Tasks
|
|
39
|
+
|
|
40
|
+
- Migrate document
|
|
41
|
+
- Remove debug code
|
|
42
|
+
- Remove debug code
|
|
43
|
+
- Update commit version
|
|
44
|
+
## [0.5.0](https://github.com/fedi-libs/apsig/releases/tag/0.5.0) - 2025-03-15
|
|
45
|
+
|
|
46
|
+
### 🚀 Features
|
|
47
|
+
|
|
48
|
+
- To make only the analysis available
|
|
49
|
+
- Unless otherwise specified, “None” is returned if verification fails. On success, return keyId.
|
|
50
|
+
|
|
51
|
+
### 🐛 Bug Fixes
|
|
52
|
+
|
|
53
|
+
- Incorrect changelog
|
|
54
|
+
|
|
55
|
+
### ⚙️ Miscellaneous Tasks
|
|
56
|
+
|
|
57
|
+
- Update changelog
|
|
58
|
+
## [0.4.0](https://github.com/fedi-libs/apsig/releases/tag/0.4.0) - 2025-02-28
|
|
59
|
+
|
|
60
|
+
### 🚀 Features
|
|
61
|
+
|
|
62
|
+
- Rewriting DraftSigner
|
|
63
|
+
- Rewriting Verifier
|
|
64
|
+
- Release action
|
|
65
|
+
- 0.4.0
|
|
66
|
+
- __version__
|
|
67
|
+
- Fix main to origin/main
|
|
68
|
+
|
|
69
|
+
### 🐛 Bug Fixes
|
|
70
|
+
|
|
71
|
+
- *(draft)* Fixed problem with HTTP signatures not being accepted in some implementations (re)
|
|
72
|
+
- No type-hint for self
|
|
73
|
+
- Fix test
|
|
74
|
+
- Fix action
|
|
75
|
+
- Fix broken actions
|
|
76
|
+
- *(draft)* Include Host header in signatures
|
|
77
|
+
- Fix actions
|
|
78
|
+
- Fix workflow
|
|
79
|
+
- Set fetch-depth
|
|
80
|
+
- Refspec
|
|
81
|
+
- Permission
|
|
82
|
+
|
|
83
|
+
### ⚙️ Miscellaneous Tasks
|
|
84
|
+
|
|
85
|
+
- Rename DraftSigner to Signer
|
|
86
|
+
- Update dependencies
|
|
87
|
+
## [0.3.2](https://github.com/fedi-libs/apsig/releases/tag/0.3.2) - 2025-02-27
|
|
88
|
+
|
|
89
|
+
### 🚀 Features
|
|
90
|
+
|
|
91
|
+
- 0.3.2
|
|
92
|
+
|
|
93
|
+
### 🐛 Bug Fixes
|
|
94
|
+
|
|
95
|
+
- *(draft)* Convert header keys to case-insensitive key names during validation
|
|
96
|
+
## [0.3.1](https://github.com/fedi-libs/apsig/releases/tag/0.3.1) - 2025-02-27
|
|
97
|
+
|
|
98
|
+
### 🚀 Features
|
|
99
|
+
|
|
100
|
+
- 0.3.1
|
|
101
|
+
|
|
102
|
+
### 🐛 Bug Fixes
|
|
103
|
+
|
|
104
|
+
- Fixed problem with HTTP signatures not being accepted in some implementations
|
|
105
|
+
|
|
106
|
+
### ⚙️ Miscellaneous Tasks
|
|
107
|
+
|
|
108
|
+
- Drop 0.2.0 support
|
|
109
|
+
- 2025
|
|
110
|
+
## [0.3.0](https://github.com/fedi-libs/apsig/releases/tag/0.3.0) - 2025-02-08
|
|
111
|
+
|
|
112
|
+
### 🚀 Features
|
|
113
|
+
|
|
114
|
+
- Multibase encode/decode (for publicKeyMultibase)
|
|
115
|
+
- E2e test on fedify
|
|
116
|
+
- Private key support
|
|
117
|
+
- Requires pin
|
|
118
|
+
- Wip
|
|
119
|
+
- Add comment on lint
|
|
120
|
+
- A working implementation of Linked Data Signature 1.0
|
|
121
|
+
- Document
|
|
122
|
+
- Document
|
|
123
|
+
- Alpha to Beta
|
|
124
|
+
- Unittest without test_runner.py
|
|
125
|
+
- 0.3.0
|
|
126
|
+
- 0.3.0
|
|
127
|
+
- 0.3.0
|
|
128
|
+
|
|
129
|
+
### 🐛 Bug Fixes
|
|
130
|
+
|
|
131
|
+
- Implementing the correct LD Signature
|
|
132
|
+
- Correct FEP-8b32 Implemention
|
|
133
|
+
- Use pkcs#1 der on encodeing public key
|
|
134
|
+
- Remove "Z"
|
|
135
|
+
- FEP-8b32 implementation verifiable with Fedify
|
|
136
|
+
- Remove key_type
|
|
137
|
+
- Line break
|
|
138
|
+
- Set permissions to workflows
|
|
139
|
+
- No dispatch
|
|
140
|
+
- Lint
|
|
141
|
+
- Use pdm with --frozen-lockfile
|
|
142
|
+
- Lint markdown broken
|
|
143
|
+
- Install production dependencies only
|
|
144
|
+
|
|
145
|
+
### 🚜 Refactor
|
|
146
|
+
|
|
147
|
+
- Add typehint
|
|
148
|
+
- Remove unused imports
|
|
149
|
+
|
|
150
|
+
### ⚙️ Miscellaneous Tasks
|
|
151
|
+
|
|
152
|
+
- Remove unused dependencies
|
|
153
|
+
- Add link to spec
|
|
154
|
+
- 0.2.0
|
|
155
|
+
- Create SECURITY.md
|
|
156
|
+
- Update hash
|
|
157
|
+
- Drop 3.9
|
|
158
|
+
- Remove develop codes, use multiformats lib
|
|
159
|
+
- Dependencies
|
|
160
|
+
- Remove oip classes
|
|
161
|
+
- E2e
|
|
162
|
+
- Add thanks, badges
|
|
163
|
+
- Ld signature is broken :(
|
|
164
|
+
- Update e2e
|
|
165
|
+
- Add takahe authors to thanks
|
|
166
|
+
- Add link to author
|
|
167
|
+
- Add link to fep-8b32
|
|
168
|
+
- Add description for http signature
|
|
169
|
+
- Add link list
|
|
170
|
+
- Line break
|
|
171
|
+
- Update dep (e2e)
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: apsig
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.4
|
|
4
4
|
Summary: Signature implementation used in ActivityPub.
|
|
5
|
-
|
|
5
|
+
Project-URL: Repository, https://github.com/fedi-libs/apsig
|
|
6
|
+
Project-URL: Issues, https://github.com/fedi-libs/apsig/issues
|
|
7
|
+
Project-URL: Changelog, https://github.com/fedi-libs/apsig/blob/main/CHANGELOG.md
|
|
8
|
+
Author-email: AmaseCocoa <amase.cocoa@gmail.com>
|
|
6
9
|
License: MIT
|
|
10
|
+
License-File: COPYING.md
|
|
11
|
+
License-File: LICENSE
|
|
7
12
|
Classifier: Development Status :: 4 - Beta
|
|
8
13
|
Classifier: Intended Audience :: Developers
|
|
9
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Natural Language :: English
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
10
17
|
Classifier: Programming Language :: Python :: 3
|
|
11
18
|
Classifier: Programming Language :: Python :: 3.9
|
|
12
19
|
Classifier: Programming Language :: Python :: 3.10
|
|
13
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
23
|
Classifier: Topic :: Security
|
|
19
|
-
Classifier:
|
|
20
|
-
Project-URL: Source, https://github.com/AmaseCocoa/apsig
|
|
24
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
25
|
Requires-Python: >=3.10
|
|
22
26
|
Requires-Dist: cryptography>=43.0.1
|
|
23
|
-
Requires-Dist: multiformats>=0.3.1.post4
|
|
24
27
|
Requires-Dist: jcs>=0.2.1
|
|
25
|
-
Requires-Dist:
|
|
28
|
+
Requires-Dist: multiformats>=0.3.1.post4
|
|
26
29
|
Requires-Dist: pyfill>=0.1.3
|
|
27
|
-
Requires-Dist:
|
|
30
|
+
Requires-Dist: pyld[aiohttp,requests]>=2.0.4
|
|
28
31
|
Requires-Dist: pytz>=2025.1
|
|
32
|
+
Requires-Dist: typing-extensions>=4.12.2
|
|
29
33
|
Description-Content-Type: text/markdown
|
|
30
34
|
|
|
31
35
|
# apsig
|
apsig-0.5.4/SECURITY.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
apsig supports the following versions:
|
|
6
|
+
|
|
7
|
+
| Version | Supported |
|
|
8
|
+
| ------- | ------------------ |
|
|
9
|
+
| 0.3.x | :white_check_mark: |
|
|
10
|
+
| < 0.2.x | :x: |
|
|
11
|
+
|
|
12
|
+
## Reporting a Vulnerability
|
|
13
|
+
You can create an apsig vulnerability report at [This form](https://github.com/AmaseCocoa/apsig/security/advisories/new).
|
|
14
|
+
|
|
15
|
+
If the vulnerability can be fixed, please create a Pull Request with a private fork.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
version: '3'
|
|
2
|
+
|
|
3
|
+
tasks:
|
|
4
|
+
default:
|
|
5
|
+
cmds:
|
|
6
|
+
- uv sync --locked --all-extras --dev
|
|
7
|
+
silent: true
|
|
8
|
+
sync:
|
|
9
|
+
cmds:
|
|
10
|
+
- uv sync --all-extras --dev
|
|
11
|
+
silent: true
|
|
12
|
+
upgrade:
|
|
13
|
+
cmds:
|
|
14
|
+
- uv lock --upgrade
|
|
15
|
+
- uv sync --locked --all-extras --dev
|
|
16
|
+
silent: true
|
|
17
|
+
test:
|
|
18
|
+
cmds:
|
|
19
|
+
- uv run python -m unittest discover -s tests
|
|
20
|
+
silent: true
|
|
21
|
+
build:
|
|
22
|
+
cmds:
|
|
23
|
+
- cmd: rm --rf dist
|
|
24
|
+
platforms: [linux, darwin]
|
|
25
|
+
- cmd: rmdir /s /q dist
|
|
26
|
+
platforms: [windows]
|
|
27
|
+
- uv build
|
|
28
|
+
silent: true
|
|
29
|
+
changelog:
|
|
30
|
+
cmds:
|
|
31
|
+
- uv run git cliff -o CHANGELOG.md
|
|
32
|
+
- git add CHANGELOG.md
|
|
33
|
+
- 'git commit -m "chore: update changelog [skip ci]"'
|
|
34
|
+
silent: true
|
apsig-0.5.4/cliff.toml
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# git-cliff ~ configuration file
|
|
2
|
+
# https://git-cliff.org/docs/configuration
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
[changelog]
|
|
6
|
+
# A Tera template to be rendered for each release in the changelog.
|
|
7
|
+
# See https://keats.github.io/tera/docs/#introduction
|
|
8
|
+
body = """
|
|
9
|
+
{% if version %}\
|
|
10
|
+
## [{{ version | trim_start_matches(pat="v") }}](https://github.com/fedi-libs/apsig/releases/tag/{{ version | trim_start_matches(pat="v") }}) - {{ timestamp | date(format="%Y-%m-%d") }}
|
|
11
|
+
{% else %}\
|
|
12
|
+
## [unreleased]
|
|
13
|
+
{% endif %}\
|
|
14
|
+
{% for group, commits in commits | group_by(attribute="group") %}
|
|
15
|
+
### {{ group | striptags | trim | upper_first }}
|
|
16
|
+
{% for commit in commits %}
|
|
17
|
+
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
|
|
18
|
+
{% if commit.breaking %}[**breaking**] {% endif %}\
|
|
19
|
+
{{ commit.message | upper_first }}\
|
|
20
|
+
{% endfor %}
|
|
21
|
+
{% endfor %}
|
|
22
|
+
"""
|
|
23
|
+
# Remove leading and trailing whitespaces from the changelog's body.
|
|
24
|
+
trim = true
|
|
25
|
+
# Render body even when there are no releases to process.
|
|
26
|
+
render_always = true
|
|
27
|
+
# An array of regex based postprocessors to modify the changelog.
|
|
28
|
+
postprocessors = [
|
|
29
|
+
# Replace the placeholder <REPO> with a URL.
|
|
30
|
+
#{ pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" },
|
|
31
|
+
]
|
|
32
|
+
# render body even when there are no releases to process
|
|
33
|
+
# render_always = true
|
|
34
|
+
# output file path
|
|
35
|
+
# output = "test.md"
|
|
36
|
+
|
|
37
|
+
[git]
|
|
38
|
+
# Parse commits according to the conventional commits specification.
|
|
39
|
+
# See https://www.conventionalcommits.org
|
|
40
|
+
conventional_commits = true
|
|
41
|
+
# Exclude commits that do not match the conventional commits specification.
|
|
42
|
+
filter_unconventional = true
|
|
43
|
+
# Require all commits to be conventional.
|
|
44
|
+
# Takes precedence over filter_unconventional.
|
|
45
|
+
require_conventional = false
|
|
46
|
+
# Split commits on newlines, treating each line as an individual commit.
|
|
47
|
+
split_commits = false
|
|
48
|
+
# An array of regex based parsers to modify commit messages prior to further processing.
|
|
49
|
+
commit_preprocessors = [
|
|
50
|
+
# Replace issue numbers with link templates to be updated in `changelog.postprocessors`.
|
|
51
|
+
#{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
|
|
52
|
+
# Check spelling of the commit message using https://github.com/crate-ci/typos.
|
|
53
|
+
# If the spelling is incorrect, it will be fixed automatically.
|
|
54
|
+
#{ pattern = '.*', replace_command = 'typos --write-changes -' },
|
|
55
|
+
]
|
|
56
|
+
# Prevent commits that are breaking from being excluded by commit parsers.
|
|
57
|
+
protect_breaking_commits = false
|
|
58
|
+
# An array of regex based parsers for extracting data from the commit message.
|
|
59
|
+
# Assigns commits to groups.
|
|
60
|
+
# Optionally sets the commit's scope and can decide to exclude commits from further processing.
|
|
61
|
+
commit_parsers = [
|
|
62
|
+
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
|
|
63
|
+
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
|
|
64
|
+
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
|
|
65
|
+
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
|
|
66
|
+
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
|
|
67
|
+
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
|
|
68
|
+
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
|
|
69
|
+
{ message = "^chore\\(release\\): prepare for", skip = true },
|
|
70
|
+
{ message = "^chore\\(dep\\)", skip = true },
|
|
71
|
+
{ message = "^chore\\(deps.*\\)", skip = true },
|
|
72
|
+
{ message = "^chore\\(pr\\)", skip = true },
|
|
73
|
+
{ message = "^chore\\(pull\\)", skip = true },
|
|
74
|
+
{ message = "^chore|^ci", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
|
|
75
|
+
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
|
|
76
|
+
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
|
|
77
|
+
{ message = ".*", group = "<!-- 10 -->💼 Other" },
|
|
78
|
+
{ message = "^gh-auto", skip = true },
|
|
79
|
+
]
|
|
80
|
+
# Exclude commits that are not matched by any commit parser.
|
|
81
|
+
filter_commits = false
|
|
82
|
+
# An array of link parsers for extracting external references, and turning them into URLs, using regex.
|
|
83
|
+
link_parsers = []
|
|
84
|
+
# Include only the tags that belong to the current branch.
|
|
85
|
+
use_branch_tags = false
|
|
86
|
+
# Order releases topologically instead of chronologically.
|
|
87
|
+
topo_order = false
|
|
88
|
+
# Order releases topologically instead of chronologically.
|
|
89
|
+
topo_order_commits = true
|
|
90
|
+
# Order of commits in each group/release within the changelog.
|
|
91
|
+
# Allowed values: newest, oldest
|
|
92
|
+
sort_commits = "oldest"
|
|
93
|
+
# Process submodules commits
|
|
94
|
+
recurse_submodules = false
|