Files
coder/agent/usershell
Mathias Fredriksson df92df4565 fix(agent): filter out GOTRACEBACK=none (#16924)
With the switch to Go 1.24.1, our dogfood workspaces started setting
`GOTRACEBACK=none` in the environment, resulting in missing stacktraces
for users.

This is due to the capability changes we do when
`USE_CAP_NET_ADMIN=true`.

564b387262/provisionersdk/scripts/bootstrap_linux.sh (L60-L76)

This most likely triggers a change in securitybits which sets
`_AT_SECURE` for the process.

a1ddbdd3ef/src/runtime/os_linux.go (L297-L327)

Which in turn triggers secure mode:

a1ddbdd3ef/src/runtime/security_unix.go

This should not affect workspaces as template authors can still set the
environment on the agent resource.

See https://pkg.go.dev/runtime#hdr-Security
2025-03-17 11:10:14 +02:00
..