Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add initial API for boundary log forwarding to coderd#21293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
zedkipp wants to merge1 commit intomain
base:main
Choose a base branch
Loading
fromzedkipp/boundary-logs-api

Conversation

@zedkipp
Copy link
Contributor

@zedkippzedkipp commentedDec 16, 2025
edited
Loading

Add the API changes to support the feature that transmits boundary logs from workspaces to coderd via the agent API for eventual re-emission to stderr. The API handlers are stubs for now because I'm trying to land this feature from multiple smaller PRs.

High level architecture:

  • Boundary records resource access in batches and sends proto message to agent
  • Agent proxies messages to coderd(captured by the API changes in this PR)
  • coderd re-emits logs to stderr

RFC:https://www.notion.so/coderhq/Agent-Boundary-Logs-2afd579be59280f29629fc9823ac41ba

@zedkippzedkipp changed the titlefeat: add inital API for boundary log forwarding to coderdfeat: add initial API for boundary log forwarding to coderdDec 16, 2025
@zedkippzedkipp marked this pull request as ready for reviewDecember 16, 2025 21:12
rpcCreateSubAgent(CreateSubAgentRequest)returns (CreateSubAgentResponse);
rpcDeleteSubAgent(DeleteSubAgentRequest)returns (DeleteSubAgentResponse);
rpcListSubAgents(ListSubAgentsRequest)returns (ListSubAgentsResponse);
rpcReportBoundaryLogs(ReportBoundaryLogsRequest)returns (ReportBoundaryLogsResponse);
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Any opinions on this RPC name?

go.mod Outdated
// by boundary, which lives in a separate repository.
requiregithub.com/coder/coder/v2/agent/proto/boundary_logsv0.0.0-incompatible

replacegithub.com/coder/coder/v2/agent/proto/boundary_logs =>./agent/proto/boundary_logs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I don't understand why this is needed and the comment is not really helping.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This was a essentially the way to use a nested Go module in a way that doesn't need to refer to a specific version of said module. I was planning to import the nested module in boundary.

I nuked this approach in favor of keeping AgentAPI independent, and separately defining the boundary <-> agent API (future PRs). I realized there’s little benefit from tightly coupling everything now other than re-using generated types. cc@johnstcn

johnstcn reacted with thumbs up emoji
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Proto changes look OK to me but I'm less certain about having them in the coder/coder repo. What would you think about inverting the direction of the import?

@zedkippzedkippforce-pushed thezedkipp/boundary-logs-api branch fromeffad7c to92de60cCompareDecember 17, 2025 22:23
Add the API changes to support the feature that transmits boundary logsfrom workspaces to coderd via the agent API, then re-emits them to stderr.Architecture:- Boundary process connects to Unix socket- Boundary batches logs and sends TLV prefixed protobuf messages to Agent- Agent proxies messages to coderd via DRPC- coderd re-emits to stderr
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@evgeniy-scherbinaevgeniy-scherbinaAwaiting requested review from evgeniy-scherbina

@spikecurtisspikecurtisAwaiting requested review from spikecurtisspikecurtis is a code owner

@johnstcnjohnstcnAwaiting requested review from johnstcnjohnstcn is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

@zedkippzedkipp

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@zedkipp@johnstcn@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp