-
Notifications
You must be signed in to change notification settings - Fork 0
feat: RFC9421 #32
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
feat: RFC9421 #32
Conversation
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
|
Todo
|
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
This commit overhauls the project's development and build tooling by
migrating from PDM to uv and Hatch.
Key changes include:
- PDM is replaced with uv for dependency management.
- Hatch is now the build backend, using setuptools-scm for
versioning.
- Ruff and Pyrefly are added for linting and static analysis.
- The minimum required Python version is lowered to 3.10.
- Zed editor settings are added for the new language servers.
This also fixes an issue in RFC9421 processing by adding the 'alg'
parameter to signatures and properly stripping header whitespace.
BREAKING CHANGE: The project no longer uses PDM. Developers must now
use uv to install and manage dependencies.
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
Lint ResultNot fixable checks |
|
/gemini summary |
|
/gemini review |
Summary of ChangesThis pull request significantly expands the library's cryptographic capabilities by integrating RFC9421 compliant HTTP message signatures, enabling robust signing and verification of web requests. Concurrently, it modernizes the development workflow through a comprehensive migration to pytest for testing and the adoption of advanced linting and formatting tools. These changes, coupled with dependency updates and codebase cleanup, aim to enhance security, improve developer efficiency, and ensure compatibility with newer Python versions. Highlights
Changelog
Ignored Files
Activity
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
このプルリクエストは、RFC9421準拠の署名実装を追加するもので、素晴らしい機能追加です。また、テストをunittestからpytestに移行し、依存関係やコードフォーマットを整理することで、プロジェクトの保守性も向上しています。新しいRFC9421の実装は、複数のアルゴリズムをサポートしており包括的です。レビューを通して、新しい実装にデッドコード、パラメータ処理のバグ、署名抽出ロジックの分かりにくさなど、いくつかの改善点を見つけました。これらの点を修正することで、実装がより堅牢になるでしょう。
Removes incorrect processing of '@signature-params' header. Ensures 'key_id' conversion to string after null check for robustness.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
RFC9421準拠の署名実装を追加します。
Add RFC9421 compliant signature implementation.
これは#12 を解決します