@atolis-hq/wake 0.3.117 → 0.3.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -128,9 +128,10 @@ nothing new to learn, no separate dashboard to babysit.
|
|
|
128
128
|
A local control-plane UI exists for operators who want to watch runs, inspect
|
|
129
129
|
events, or resume a session directly, but it's a window into the same state -
|
|
130
130
|
not a required part of the workflow. The API and UI require an operator login:
|
|
131
|
-
run `wake ui token` to print
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
run `wake ui token` to print a single-use pairing link or temporary code, then
|
|
132
|
+
enter it in the UI. Successful logins persist for two years across browser and
|
|
133
|
+
Wake-container restarts. Use `wake ui token set <key>` to replace the durable
|
|
134
|
+
access key; replacement signs out existing sessions.
|
|
134
135
|
|
|
135
136
|
## Supported Agent CLIs
|
|
136
137
|
|
|
@@ -5,6 +5,7 @@ import { verifyAccessKey } from '../auth/credentials.js';
|
|
|
5
5
|
import { SurfaceCookieSecurity, SurfaceSessionAttribute } from '../auth/vocabulary.js';
|
|
6
6
|
import { problemDetails } from './problem-details.js';
|
|
7
7
|
import { BrowserRouteOutcome, routeBrowserRequest } from './router.js';
|
|
8
|
+
const operatorSessionLifetimeSeconds = 2 * 365 * 24 * 60 * 60;
|
|
8
9
|
/**
|
|
9
10
|
* The production HTTP surface. Public login routes are declared separately;
|
|
10
11
|
* every operational API route is protected in its own Fastify scope before
|
|
@@ -17,8 +18,14 @@ export function createSurfaceHttpServer(options) {
|
|
|
17
18
|
app.register(secureSession, {
|
|
18
19
|
key: Buffer.from(options.credentials.sessionPassword, 'base64url'),
|
|
19
20
|
cookieName: 'wake_session',
|
|
20
|
-
expiry:
|
|
21
|
-
cookie: {
|
|
21
|
+
expiry: operatorSessionLifetimeSeconds,
|
|
22
|
+
cookie: {
|
|
23
|
+
httpOnly: true,
|
|
24
|
+
maxAge: operatorSessionLifetimeSeconds,
|
|
25
|
+
sameSite: 'lax',
|
|
26
|
+
secure: SurfaceCookieSecurity.Auto,
|
|
27
|
+
path: '/',
|
|
28
|
+
},
|
|
22
29
|
});
|
|
23
30
|
app.setErrorHandler((error, request, reply) => {
|
|
24
31
|
request.log.error({ err: error }, 'Wake HTTP request failed');
|