Repository navigation
fix: classify protobuf decode failures as protocol - #1
Closed
nichinichisou0609 wants to merge 1 commit into
Closed
nichinichisou0609 wants to merge 1 commit into
nichinichisou0609 wants to merge 1 commit into
Conversation
Identify local decoder failures by their typed source, preserve business-code priority, and keep query and JP image errors redacted.
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.
Malformed protobuf payloads in valid gRPC frames were reported as
transportfor client queries and JP profile-card CDN Version discovery. Classify these local decode failures asprotocolwhile retaining HTTP 502, business-code priority and redacted errors. Classification uses the typedprost::DecodeErrorsource instead of trusting remote status text.Adds four loopback mock regressions for malformed payloads, misleading remote status text, initial business-code precedence and the public HTTP image error. The change is limited to error classification and regression coverage; dependencies and the frozen OpenAPI schema are unchanged.
Validation
The submitted commit is
f44bbf227d21798fb03c9777aeed680d737db3df, based ond094de568c570889b318e9490574da678fddf26d.On Unix with Rust 1.98.1, locked/offline dependencies and a single build job/test thread:
cargo fmt --all --check, all-target Clippy with-D warnings, the normal workspace debug build and Rust documentation generation passed.GitHub Actions run 36783108804 completed successfully on the submitted commit: the
testjob (including Docker exported-input validation) and native amd64/arm64 image builds with offline container smoke tests all passed. Image publication and the release job were skipped for this PR.Existing Windows limitations
Earlier native Windows runs had five existing
InvalidConfigfailures at private-file/inline-secret permission boundaries. Windows ACL-based secret saving is not implemented. This change preserves those boundaries and does not claim that the Windows suite is all green. The final Unix suite passes all five cases.jp::tests::existing_output_prevents_registration_and_import_cas_rejects_stale_generationjp::tests::saved_registration_without_device_id_is_imported_without_networkjp::tests::version_registration_persistence_and_override_are_explicitserver/tests/regions.rs:relative_config_path_resolves_each_source_onceserver/tests/regions.rs:separate_runtime_credentials_and_relative_paths_do_not_inheritThe earlier Windows runs preceded the last business-priority regression: client 43 passed/3 failed, server lib 51 passed, path routes 6 passed, regions 3 passed/2 failed. Final native formatting passed.
Local validation limits
Live production/game/CDN integration, Docker exported-input/image smoke validation and optimized release builds were not run locally. All exercised game traffic used synthetic loopback mocks; no production writes, deployment or release was performed. Hosted CI additionally passed the Docker checks recorded above.