Repository navigation
feat(xmldsig): expose signing public key info - #85
Conversation
- Add structured signing public-key metadata for RSA and ECDSA signing keys - Wire X509 KeyInfo output through the structured public-key API - Cover RSA, P-256, P-384, unsupported algorithms, and KeyInfo extraction failures - Harden release-plz/dependabot behavior after dependency PR base updates Closes #84
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe signing-key abstraction now returns structured RSA and EC public-key metadata. X.509 KeyInfo validation consumes that metadata, tests cover the new behavior, and repository automation settings are updated. ChangesStructured signing-key metadata
Repository automation settings
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant X509CertificateKeyInfoWriter
participant SigningKey
participant Certificate
X509CertificateKeyInfoWriter->>SigningKey: public_key_info()
SigningKey-->>X509CertificateKeyInfoWriter: SigningPublicKeyInfo
X509CertificateKeyInfoWriter->>Certificate: compare certificate public key with spki_der
Certificate-->>X509CertificateKeyInfoWriter: validation result
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Filename | Overview |
|---|---|
| src/xmldsig/sign.rs | Adds structured signing public-key output and wires X.509 KeyInfo matching through it. |
| src/xmldsig/mod.rs | Re-exports the new signing public-key info type. |
| tests/signing_digest.rs | Adds tests for RSA and ECDSA public-key info plus signing error paths. |
| .release-plz.toml | Adds explicit release-plz commit filtering and release-trigger settings. |
| .github/dependabot.yml | Makes Dependabot rebase behavior explicit for Cargo and GitHub Actions updates. |
Reviews (2): Last reviewed commit: "fix(ci): accept breaking release commits" | Re-trigger Greptile
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.release-plz.toml:
- Around line 7-8: Update the release_commits pattern in the release-plz
configuration to accept the optional Conventional Commits breaking-change marker
`!` both without a scope and after a scope, while preserving the existing type
and scope validation.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 21dd5341-649e-4a92-b7ee-3b4caf4ccb40
📒 Files selected for processing (5)
.github/dependabot.yml.release-plz.tomlsrc/xmldsig/mod.rssrc/xmldsig/sign.rstests/signing_digest.rs
Summary
SigningPublicKeyInfofor RSA and ECDSA signing keys.Release Automation Note
The release PR got stale after a dependency PR was updated by merging
maininto the Dependabot branch. That created a synthetic merge commit in the dependency PR branch; release-plz updated the open release PR metadata, but left a release commit/body that still showed the previous changelog section. This PR reduces that failure mode by:release-plz releaseonly after the release PR is merged, not on every push tomain.Validation
cargo fmt -- --checkcargo check --all-featurescargo clippy --all-targets --all-features -- -D warningscargo nextest run --all-features(540 passed)cargo test --doc --all-features(3 passed)Closes #84