-
Notifications
You must be signed in to change notification settings - Fork 53
fix(rs-dapi,sdk): decode base64 CBOR error messages from Tenderdash #3350
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
Open
lklimek
wants to merge
21
commits into
v3.1-dev
Choose a base branch
from
fix/sdk-cbor-security-hardening
base: v3.1-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+336
−4
Open
Changes from 5 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
bfba2ef
fix(rs-dapi): decode base64 CBOR message in Tenderdash error data field
lklimek 7ae8846
Merge branch 'v3.1-dev' into fix/sdk-cbor-security-hardening
lklimek 25de8d2
fix(rs-dapi): address PR review comments on decode_data_message
lklimek 1b38d74
Merge branch 'v3.1-dev' into fix/sdk-cbor-security-hardening
lklimek 91daf4b
Merge branch 'v3.1-dev' into fix/sdk-cbor-security-hardening
lklimek b18c173
feat(sdk): detect duplicate identity key errors from drive-error-data…
lklimek 5e99219
Revert "feat(sdk): detect duplicate identity key errors from drive-er…
lklimek c27a959
feat(sdk): add DriveInternalError variant and decode drive-error-data…
lklimek a9a9fb9
Merge branch 'v3.1-dev' into fix/sdk-cbor-security-hardening
lklimek e32635f
fix(sdk): log drive-error-data-bin to_bytes() failures instead of sil…
lklimek 8055ce2
Merge remote-tracking branch 'origin/v3.1-dev' into fix/sdk-cbor-secu…
lklimek 5581447
test(sdk): add unit tests for drive-error-data-bin DriveInternalError…
lklimek f7833a2
fix(wasm-sdk): handle DriveInternalError variant in error mapping
lklimek d855555
feat(sdk): auto-detect protocol version from network response metadata
lklimek 6928fdd
test(sdk): add TC-6 concurrent updates and TC-7 global DPP version sy…
lklimek a9fbe7c
fix(sdk-ffi): map DriveInternalError to dedicated FFI error code
lklimek 3445940
fix(sdk): fix TC-7 test race and formatting
lklimek 8c85455
Revert "fix(sdk): fix TC-7 test race and formatting"
lklimek 32b661c
Revert "test(sdk): add TC-6 concurrent updates and TC-7 global DPP ve…
lklimek 60c4d32
Revert "feat(sdk): auto-detect protocol version from network response…
lklimek 86fbeea
Merge branch 'v3.1-dev' into fix/sdk-cbor-security-hardening
lklimek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
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.
decode_data_messageduplicates the base64 engine configuration that already exists inbase64_decode(). To avoid config drift and make future changes safer, consider reusing the same engine (e.g., a sharedstatic/helper) while still keeping this path silent (no debug logging) for expected non-base64 inputs.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.
The inline engine in
decode_data_message()is intentional — it avoids thedebug!logging inbase64_decode()which would fire on every plain-textdatafield (an expected/normal case). A sharedtenderdash_base64_engine()helper as suggested could work, but the two call sites have different logging requirements, so extracting a shared engine without also sharing the silence/log behavior doesn't buy much. Leaving as-is for now; the duplication is minimal (one config block) and well-commented.🤖 Co-authored by Claudius the Magnificent AI Agent