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 e16c21d
Browse filesBrowse the repository at this point in the historyBrowse files
Add tests for proxy and router digest functionality
- Implement comprehensive tests for the ingress proxy, validating request handling and response generation.
- Introduce usage observer tests to ensure accurate tracking of token usage across various scenarios.
- Create a new digest module in the auto router to manage conversation summaries, enforcing size limits and maintaining relevant context.
- Add tests for the digest functionality to verify that it correctly summarizes user interactions and adheres to defined byte limits.
listenAddress:=flags.String("listen", "", "override the default HTTP listen address")
91
+
trustedProxies:=flags.String("trusted-proxies", "", "comma-separated reverse proxy CIDRs or IPs whose X-Forwarded-For/X-Forwarded-Proto are trusted (default: none)")
92
+
secureCookies:=flags.String("secure-cookies", "", "session cookie Secure attribute: auto (HTTPS or trusted proxy https), always or never (default auto)")
93
+
upstreamBodyTimeout:=flags.Duration("upstream-body-timeout", -1, "maximum stall between reads of a non-stream upstream body; 0 disables (default 10m)")
94
+
streamIdleTimeout:=flags.Duration("stream-idle-timeout", -1, "maximum stall between reads of a streaming upstream body; 0 disables (default 0)")
description: True when the password is not set and this client is not local, so setup must present the one-time bootstrap token printed in the service log.
503
506
'503':
504
507
$ref: '#/components/responses/AdminError'
505
508
@@ -508,7 +511,7 @@ paths:
508
511
tags: [Setup]
509
512
summary: Set the initial owner password
510
513
operationId: setInitialPassword
511
-
description: Available only until the initial password is set. Browser requests must be same-origin; requests identified as cross-site are rejected. Password length is 12–1024 bytes.
514
+
description: Available only until the initial password is set. Browser requests must be same-origin; requests identified as cross-site are rejected. A client that is not on the local machine (a loopback peer without forwarding headers, or a loopback client reported by a trusted proxy) must also present the one-time bootstrap token printed in the service log at startup; it is invalidated by a successful setup. Password length is 12–1024 bytes.
writeAdminError(w, http.StatusForbidden, "bootstrap_token_required", "initial setup from a remote client requires the bootstrap token printed in the service log", "bootstrap_token")
70
+
return
71
+
}
72
+
}
53
73
ifbody.Password==nil {
54
74
writeAdminError(w, http.StatusBadRequest, "invalid_request", "the request body must carry a string password field", "password")
0 commit comments