ca6dd926-fd39-405d-b710-af4fe8744727 5af46c5f-dbd8-46e6-93fb-0e21dd4aaf69 12319f5b-fa52-46b1-8b49-d91fbceeca7d harden share-token observability#443
Closed
carrion256 wants to merge 1 commit into
Conversation
…af69 12319f5b-fa52-46b1-8b49-d91fbceeca7d harden share-token observability A-093: replace StrKey text-prefix contract-address validation with the Soroban SDK address payload discriminator and add account-address rejection coverage.\n\nA-094: emit a supplemental burn_from event keyed by spender and owner so delegated burns are distinguishable from direct burns.\n\nA-097: add share-token admin rotation, allowance, expiry, and vault-invoker security coverage.\n\nVerification:\n- RUSTUP_TOOLCHAIN=1.89.0 cargo fmt --all --check\n- git diff --check\n- RUSTUP_TOOLCHAIN=1.89.0 cargo test -p templar-soroban-share-token -- --nocapture (17 passed)\n- focused share-token tests: burn_from_emits_supplemental_spender_event, constructor_rejects_account_vault_address, set_vault_rejects_account_address, set_admin_rotates_admin, direct_caller_cannot_burn_from_even_with_allowance\n- just -f contract/vault/soroban/justfile build\n- just -f contract/vault/soroban/justfile size-budget-check (93961 bytes <= 131072 bytes)
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Collaborator
Author
|
Superseded by consolidated share-token cluster PR #429. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed Findings
ca6dd926-fd39-405d-b710-af4fe8744727soroban_sdk::address_payload::AddressPayloaddiscrimination.set_vault.5af46c5f-dbd8-46e6-93fb-0e21dd4aaf69burn_fromevent keyed by spender and owner, so delegated burns are distinguishable from direct burns.12319f5b-fa52-46b1-8b49-d91fbceeca7dStack
audit/share-token-metadata-a050/ PR 37a5412f-fb6a-455f-9b9c-3aa8227c255a make share-token metadata immutable #440audit/share-token-burn-from-event-a094141b0e8Verification
RUSTUP_TOOLCHAIN=1.89.0 cargo fmt --all --checkgit diff --checkRUSTUP_TOOLCHAIN=1.89.0 cargo test -p templar-soroban-share-token -- --nocapture— 17 passedburn_from_emits_supplemental_spender_eventconstructor_rejects_account_vault_addressset_vault_rejects_account_addressset_admin_rotates_admindirect_caller_cannot_burn_from_even_with_allowancejust -f contract/vault/soroban/justfile buildjust -f contract/vault/soroban/justfile size-budget-check— 93,961 bytes <= 131,072 bytesThis change is
Superseded
This A-093/A-094/A-097 follow-up PR has been folded into the consolidated share-token cluster PR #429.
3c5d098ca6dd926-fd39-405d-b710-af4fe87447275af46c5f-dbd8-46e6-93fb-0e21dd4aaf6912319f5b-fa52-46b1-8b49-d91fbceeca7dClosing to keep share-token remediation in PR #429.