- Notifications
You must be signed in to change notification settings - Fork1.1k
Commit46b2f3d
authored
fix(cli): allow disabling debug listening ports for agent (#20671)
A customer reported unexpected port allocation in their workspace. Whenlooking into it I noticed we always hijack these ports and there is no way to disable them entirely.This change allows the servers to be disabled by setting them to theempty string. Previously they would still listen on ephemeral ports.```console❯ coder agent --help | grep -E '211[2-3]|6060' --debug-address string, $CODER_AGENT_DEBUG_ADDRESS (default: 127.0.0.1:2113) --pprof-address string, $CODER_AGENT_PPROF_ADDRESS (default: 127.0.0.1:6060) --prometheus-address string, $CODER_AGENT_PROMETHEUS_ADDRESS (default: 127.0.0.1:2112)```There are now two ways to disable, either via CLI or env variables:```console# Flags.coder agent --debug-address= --pprof-address= --prometheus-address=# Environment variables.export CODER_AGENT_DEBUG_ADDRESS=export CODER_AGENT_PPROF_ADDRESS=export CODER_AGENT_PROMETHEUS_ADDRESS=coder agent```1 parentdec2c4c commit46b2f3d
2 files changed
+90
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
213 | 208 | | |
214 | | - | |
215 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
216 | 214 | | |
217 | 215 | | |
218 | 216 | | |
| |||
276 | 274 | | |
277 | 275 | | |
278 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
279 | 299 | | |
280 | 300 | | |
281 | 301 | | |
| |||
299 | 319 | | |
300 | 320 | | |
301 | 321 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
306 | 331 | | |
307 | 332 | | |
308 | 333 | | |
| |||
314 | 339 | | |
315 | 340 | | |
316 | 341 | | |
317 | | - | |
318 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
319 | 347 | | |
320 | 348 | | |
321 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
181 | 226 | | |
182 | 227 | | |
183 | 228 | | |
| |||
0 commit comments
Comments
(0)