Fix errors, move some handlers over to handler modules #498
No reviewers
Labels
No labels
Compat/Breaking
Component/Enclave-Builder
Component/Infrastructure
Deploy/BYOC
Deploy/Full-managed
Deploy/Self-hosted
Interface/API
Interface/CLI
Interface/Git
Interface/Web
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
public/platform!498
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ryansquared/fix-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[P2] Preserve the existing public quorum error responses
Reviewed
d4c6368ce678405753cb5de12f11ae994214c731against1fad41270748eff75de9027b6469b5c4135b7acf. The typed-error/handler refactor changes client-visible bodies, losing actionable guidance and invalidating existing E2E assertions.Please keep the typed errors and extracted handlers, but make these changes before merging:
Restore variant-specific, location-free generation messages in
org_quorum/handlers.rs:126–145. For example, threshold zero previously returned HTTP 400threshold must be between 1 and the holder count, but now returnsinvalid quorum request. An unverified passkey similarly loses the instruction to verify with PIN/biometrics in Dashboard Authentication or use external PGP, returning onlyinvalid quorum holder selection. The CLI displays the API body, so these explanations matter to users.Preserve upload verification messages in the shared create/update mapper,
cryptographic_bundles/handlers.rs:128–137. A legacy upload without opt-in should still explainlegacy upload requires explicit allow_legacy: true, rather than justinvalid quorum bundle.Preserve the proof-failure bodies and add focused
IntoResponsestatus/body tests. The mappings atorg_quorum/handlers.rs:208–222no longer satisfy the unchanged E2E assertions atquorum.rs:478–491:does not satisfy the CLI's trusted Keymaker policyandKeymaker response does not match the requested quorum. Keep those expectations and cover the actual emitted responses, not only internal error variants. Use fixed literals or a dedicated client-message accessor; do not expose location-bearingDisplayoutput.Verification:
Five temporary review-only probes exercising the real
IntoResponsemappings reproduced all five body incompatibilities above; statuses were preserved. The temporary import was removed and the exact-head unit tests rechecked. Full E2E/deployment tests were not run for this PR.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.