Commit 024df58
authored
release: Feature Freeze for Audit (#223)
feat: Major release with security hardening, fee policy enhancements, and infrastructure improvements
## Breaking Changes
- Migrated to Solana SDK v3.0.x and updated all dependencies
- Replaced custom Kora Signer with solana-signers crate
- Removed `sign_transaction_if_paid` - all signing now validates pricing (FREE config maintains old behavior)
- Removed `get_all_signers` function for security
- Changed response types: removed signatures from `signAndSendTransaction` and `signTransaction`
## Security & Audit Fixes
- Implemented constant-time HMAC verification
- Added request body size limits to prevent server overload
- Sanitized debug macros and loggers to prevent sensitive data exposure
- Removed dangerous `.unwrap()` calls with proper error handling
- Added overflow protection across all math operations
- Enhanced ConfigValidator with security warnings for risky configurations
- Fixed precision issues using fixed-point decimals for price calculations
- Updated fee payer policies to secure defaults
## Fee System Enhancements
- Extended fee payer policy support for SPL/Token2022 instructions (revoke, set authority, mint to, freeze/thaw account, etc.)
- Enhanced fee payer outflow calculation to include SPL token transfers
- Improved fee estimation efficiency (Free→instant, Fixed→simple calc, Margin→full calc)
- Added support for multi-token payment transfers in single transaction
- Refactored payment analysis to return transfer fees
- Added "strict" mode for fixed fees (errors if total exceeds fixed amount)
- Enhanced mint validation for PermanentDelegate and TransferHook extensions
## Developer Experience
- Implemented Rust test runner replacing complex Makefiles
- Added TypeScript test support with improved CI workflow
- Added debug command targets for various test scenarios
- Cleaned up test fixtures and removed duplicated code
- Improved test performance with non-hardcoded ports and file reuse
- Added exponential backoff for health checks
## Bug Fixes
- Fixed inner instruction parsing for Parsed/PartiallyDecoded instructions
- Fixed double fee counting in ATA + fee payer outflow calculation
- Fixed index out of bounds in `uncompile_instructions`
- Made price source non-optional throughout codebase
- Updated transaction validation for safer account key retrieval
## Infrastructure & Tooling
- Updated error handling in TurnkeySigner and PrivySigner
- Added method validation middleware (separate from auth)
- Enhanced logging for API failures and overflow scenarios
- Migrated from gill to @solana/kit
- Added git-cliff configuration for changelog generation
- Improved Rust and SDK publish workflows
## Documentation
- Updated security guidance for FREE/fixed fees and fee payer policies
- Added warnings for permanent delegate risks
- Clarified margin adjustment behavior
- Updated usage_limit documentation
- Enhanced ADDING_SIGNERS.md for solana-signers crate
- Updated x402 demo and configuration guides
## Tests
- Added comprehensive adversarial tests for fee payer policy violations
- Added tests for SPL token transfer scenarios
- Added tests for multi-payment analysis
- Enhanced validation tests for new fee payer policies
- Improved error assertion patterns1 parent ece4b9b commit 024df58
File tree
198 files changed
+32785
-9500
lines changed- .github
- actions
- cleanup-test-env
- run-test-runner
- setup-kora-rpc
- setup-solana-validator
- badges
- workflows
- crates
- cli/src
- lib
- src
- admin
- fee
- metrics
- oracle
- rpc_server
- method
- openapi
- spec
- signer
- memory_signer
- privy
- turnkey
- vault
- tests
- common
- token
- transaction
- usage_limit
- validator
- docs
- contributors
- getting-started
- demo
- client
- src
- server
- operators
- deploy/sample
- x402/demo
- api
- src
- assets
- client
- src
- facilitator
- src
- kora
- makefiles
- sdks/ts
- docs
- scripts
- src
- types
- test
- tests
- adversarial
- examples
- external
- fee_payer_policy
- free_signing
- multi_signer
- payment_address
- rpc
- src
- bin
- common
- fixtures
- local-keys
- test_runner
- tokens
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
198 files changed
+32785
-9500
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 11 | + | |
47 | 12 | | |
48 | 13 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 14 | + | |
53 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments