You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(egress): add DELETE /policy endpoint for removing egress rules by target (#864)
* feat(egress): add DELETE /policy endpoint for removing egress rules by target
Add DELETE handler that accepts a JSON array of target strings, removes
matching rules case-insensitively, and commits the updated policy. Targets
not found are silently ignored (idempotent). Spec and README docs updated.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* feat(sdks): expose egress DELETE /policy across all sandbox SDKs
Wires the new DELETE /policy endpoint through Go, JavaScript, Python
(async + sync), Kotlin, and C# sandbox SDKs so users can remove egress
rules by target through the supported facades. Regenerates the JS and
Python OpenAPI clients (TypeScript and Kotlin generators now emit the
delete operation; Python generator produces a new delete_policy module),
then adds matching handwritten adapter/service/sandbox methods and unit
tests. Extends the C# HttpClientWrapper with a DeleteAsync(path, body,
ct) overload since DELETE-with-body was not previously supported.
Adds an async Python e2e test (test_01ac_network_policy_delete) that
provisions a sandbox with two allow rules, deletes one (plus a
nonexistent target to verify idempotency), and confirms the policy
mutation, defaultAction preservation, and resulting traffic behavior.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix(egress): DELETE response shape + status codes
- Drop Policy field from no-match path (consistent with POST/PATCH
success responses and the spec's DELETE example).
- Return 500 instead of 400 for marshal/parse failures on
self-synthesized policy JSON (internal inconsistency, not client
error); upgrade matching log level to Error.
- Revert unrelated trailing-whitespace cleanup in smoke-nft.sh
copyright header.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments