Repository navigation
feat: Python SDK packaging, API filtering standard, audit guide, ticketing integration - #751
Merged
Ayinkx merged 4 commits intoNov 22, 2026
Merged
Conversation
|
@johnvin489-cloud is attempting to deploy a commit to the Ayinkx Team on Vercel. A member of the Team first needs to authorize it. |
|
@johnvin489-cloud Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
Four Phase 11/12 items: Python SDK packaging and gate coverage, a filtering/sorting standard for the public v1 API, an audit and compliance guide, and a ticketing integration that opens a Jira or Linear issue when a high-risk finding is acknowledged.
Closes #656
Closes #648
Closes #642
Closes #630
What changed
#656 Python SDK packaging
sdk/python/already existed on main (typed client, API-key auth, configurable base URL, structured errors, mock-server tests); this commit adds the missing packaging/gate coverage instead of duplicating the client.tests/test_sdk_packaging.pyasserts installablepyprojectmetadata,__version__consistency, zero runtime dependencies, and the documentedpip install -e sdk/pythonpath.sdk/python/README.mdnow lists the repo gate commands; root ruff/black/pytest already cover the SDK.#648 Filtering and sorting standard
app/api/filtering.py: per-resource whitelists,sort/orderwith a documented default (id desc), deterministic id tie-break, structured rejection of unknown fields and unsupported combinations.app/api/v1.pyprojects and reviews; usage rejects unsupported parameters.sort=idand returns a structured error otherwise.docs/api-filtering.md, linked from the v1 and API docs.#642 Audit and compliance guide
docs/audit-compliance-guide.mdconsolidates what is audited, retention and purge, legal hold and deletion, evidence export, and what the evidence pack does and does not certify. It links the existing integrity, retention, classification, evidence and admin-action docs rather than restating them.tests/test_audit_compliance_guide.pychecks every documentedflask auditcommand against the real Click tree and the documented endpoints against the URL map, so the guide cannot drift.#630 Ticketing for security events
app/services/security_tickets.py: Jira and Linear providers, credentials stored encrypted throughapp/services/integration_credentials.py, bounded title/description (200/4000 chars) and a capped 16 KiB request body.app/models/security_ticket.py+ migrationa3b4c5d6e7f8with unique(workspace_id, finding_id)and(provider, external_key)constraints for idempotent retries.PATCH /reviews/api/reviews/findings/<id>: acknowledging acritical/highfinding creates or reuses the ticket; a delivery failure rolls the acknowledgement back.bad_gateway(502);docs/security-ticketing.md.Verification
Limitations
sortwith a cursor is rejected by design.tests/test_openapi_generation.pyfails on this base for an unrelated case-mismatch inscripts/generate_openapi.pyand was left untouched.