refactor: Modernize SDK architecture, harden security, and enable O(1) routing#130
Merged
Conversation
…ntain permissions' Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…v3-python into refine-client
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
- client: add CRLF header validation before request dispatch - config: enforce strict float coercion and math invariants for timeouts - endpoint: explicitly encode dots in CSV routes to prevent path traversal - guardrails: patch ReDoS in secret redaction; add recursive log scrubbing and 1000-char truncation limits - fuzzing: implement network fault injection (Evil Server) and file I/O mocking - manage.sh: support dynamic LibFuzzer args and fail CI on non-zero exit codes
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
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.
Links:
Jira
Actions:
Core SDK & Routing Architecture:
ROUTE_MAPregistry, eliminating dynamic__getattr__overhead and enabling efficient, static endpoint resolution..stream()generators by ensuring empty data blocks trigger termination.Security & Developer Experience (DX):
Endpoint._build_urlwith centralizedsanitize_segmentto neutralize directory traversal attempts in dynamic URI parameters.with Client(...) as client:to mitigate CWE-772 (Missing Resource Release).Config.validate_config_url.Atheris(libFuzzer) to expose edge-case parsing exceptions.Unit & Integration Tests:
pytest-benchmarkand cold-boot profiling to ensure SDK startup latency remains within strictly defined thresholds (<0.1s).CI/CD, Linting & Repository Management:
D10x,DOC201, andPLC0415errors, enforcing strict Google-style documentation and import placement.pip-auditinto a standalone strict job.Documentation & Samples:
CHANGELOG.mdwith 1.7.0 updates, updatedPERFORMANCE.mdwith new benchmarks, and bumped version to1.7.0.