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
{{ message }}
Repository navigation
Commit 77f1458
Browse filesBrowse the repository at this point in the historyBrowse files
Mark Pollack
committed
Document what the SDK's logs can carry; guard Quarkus 16 MiB limits
The READMEs now say that a stdio agent's standard error is logged at
INFO, unfiltered, on the agent-stderr logger and how to silence it, and
that DEBUG and TRACE on com.agentclientprotocol.sdk log message
payloads, session updates included.
HttpTransportTest sends a 12 MB prompt over Streamable HTTP and
WebSocket on Quarkus, above Quarkus's 10 MB default body size: a
regression guard for the limits AcpHttpConfigBuilder raises.
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -499,6 +499,20 @@ that authenticates in front. Browser requests whose `Origin` is not a loopback o
499
499
| Streamable HTTP and WebSocket in your own Servlet 6 container |`StreamableHttpAcpClientTransport`, `WebSocketAcpClientTransport`|`StreamableHttpAcpServlet` (WebSocket where the container has Jakarta WebSocket 2.1) | acp-core / acp-http-servlet |
500
500
| Streamable HTTP and WebSocket in a Spring WebFlux application |`StreamableHttpAcpClientTransport`, `WebSocketAcpClientTransport`|`AcpWebFluxHost` (a `RouterFunction`) | acp-core / acp-http-webflux |
501
501
502
+
#### Logging and sensitive data
503
+
504
+
Two of the SDK's loggers can carry message content or other sensitive data:
505
+
506
+
-**The agent's standard error.**`StdioAcpClientTransport` logs every line the agent process
507
+
writes to standard error at INFO on the logger `com.agentclientprotocol.sdk.client.transport.agent-stderr`,
508
+
unfiltered. An agent's diagnostics can carry sensitive data (paths, prompts, account details).
509
+
Silence it by setting that logger's level to `WARN` or `OFF`, or route the lines yourself with
510
+
`setStdErrorHandler`.
511
+
-**DEBUG and TRACE.** At DEBUG and TRACE, loggers under `com.agentclientprotocol.sdk` log message
512
+
payloads in full: the stdio client's sent and received lines, the sessions' messages, and the
513
+
session updates the framework integrations log by default. Do not enable them where logs are
Copy file name to clipboardExpand all lines: acp-quarkus-deployment/src/test/java/com/agentclientprotocol/sdk/quarkus/deployment/HttpTransportTest.java
0 commit comments