Skip to content

fix(node): a requester names itself to its lane's daemon - #352

Merged
7schmiede merged 2 commits into
mainfrom
fix/node-client-names-itself
Oct 28, 2026
Merged

7schmiede merged 2 commits into
mainfrom
fix/node-client-names-itself

Conversation

@7schmiede

Copy link
Copy Markdown
Member

Follow-up to #351. A lane on a node showed the requester's calls in its Activity as "by an unknown client": nodeclient::api (restart of its services, up, the state) went out through tls::request without X-Devstack-Client, and the node's proxy passes headers through to the lane daemon as they are.

Change: tls::request sends x-devstack-client: auto on every request over the member connection. Both callers (nodeclient::call to the node agent, nodeclient::api to the lane daemon) are a devstack daemon acting, so the lane's journal now says "by devstack". The client a person used is in the requester's journal (POST /v1/lanes/{lane}/restart via the dashboard).

No card point: it fills in ADR-0067's via for a case that fell through to unknown. docs/dashboard-api.md (journal row) and the changelog follow.

Checked: cargo fmt, cargo clippy --all-targets -D warnings (devstack-node, devstack), cargo test -p devstack-node. The remote lane test (remote-lane CI job) now reads the lane's journal after the warm restart and asserts every …/restart entry has via: "auto".

🤖 Generated with Claude Code

7schmiede and others added 2 commits October 28, 2026 14:22
What a requester's daemon asks of a lane's daemon on a node (a restart
of its services, `up`, the state) carried no X-Devstack-Client header,
so the lane daemon's journal showed it as "by an unknown client". Every
request over the member connection now says `auto`: devstack itself.
The client a person used stays in the requester's journal. The remote
lane test checks the lane journal after a warm restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…unning service

The first warm restart runs before the lane's service is up, so it
restarts nothing; the check now runs a restart once the lane answers on
its ports, and reads only the entries after it (the CLI's restarts above
are rightly the CLI's).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 1138587 into main Oct 28, 2026
13 checks passed
@7schmiede
7schmiede deleted the fix/node-client-names-itself branch October 28, 2026 13:37
@7schmiede 7schmiede mentioned this pull request Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant