fix: write-ahead audit entry so calls stop when the audit log stops accepting writes (SEC-03)
This commit is contained in:
1 parent
5b622e64e2
commit
43eebd3089
8 files changed
+134
-15
No files matched your search
@@ -476,6 +476,9 @@ async def test_audit_write_failure_after_execution_does_not_break_the_call(
|
||||
httpx_mock.add_response(url=f"{API}/repos/octo/demo", json={})
|
||||
|
||||
class BrokenAudit:
|
||||
def log_tool_call_started(self, *args: Any, **kwargs: Any) -> str:
|
||||
return "started"
|
||||
|
||||
def log_tool_invocation(self, *args: Any, **kwargs: Any) -> str:
|
||||
raise OSError("disk full: " + GITEA_TOKEN)
|
||||
|
||||
|
||||
Reference in new issue
Block a user