coder / coder/envbuilder

enhancement: replace agentsdk.LogSender direct integration with external log sender

Open
#193 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
300
Forks
64
Avg merge
20m
Merged PRs (30d)
1

Description

Currently, envbuilder consumes `CODER_AGENT_URL`, `CODER_AGENT_TOKEN`, and `CODER_AGENT_SUBSYSTEM` environment variables to enable sending workspace build logs to Coder.

For Kubernetes, this can instead be handled by `coder/coder-logstream-kube`.
Investigate an alternative approach for envbuilder usage outside of Kubernetes (e.g. Docker).

This is also kind important because envbuilder currently references on [`agentsdk.ExternalLogSourceID`](https://github.com/coder/coder/blob/main/codersdk/agentsdk/agentsdk.go#L33) which is marked for use by 'legacy API consumers'.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing envbuilder's use of CODER_AGENT_URL, CODER_AGENT_TOKEN, CODER_AGENT_SUBSYSTEM, and agentsdk.ExternalLogSourceID. Compare that integration with coder/coder-logstream-kube and investigate a log-sender approach for non-Kubernetes usage such as Docker; done means an agreed alternative that avoids relying on the legacy API consumer integration.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.