Commit 78ce840
authored
all-in-one: add hidden --debug-port flag to pin the debug listener port (#1462)
## Summary
Adds a hidden `--debug-port` flag to the `all-in-one` command that
overrides the auto-allocated ephemeral port for Pomerium's internal
debug/admin listener.
Today the debug/admin listener port is assigned by `AllocatePorts` and
changes on every restart, so the debug endpoints (databroker browser,
pprof, etc.) land on an unpredictable port. This flag lets you pin that
listener to a fixed, stable port. The bind host remains `127.0.0.1`, and
the flag is hidden since it's intended for development/debugging.
When unset (the default), behavior is unchanged — the port stays
ephemeral.
## Related issues
<!-- none -->
## Checklist
- [ ] reference any related issues
- [ ] updated docs
- [ ] updated unit tests
- [ ] updated UPGRADING.md
- [x] add appropriate tag (`improvement`)
- [x] ready for review1 parent a8f5594 commit 78ce840
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| |||
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| 142 | + | |
138 | 143 | | |
139 | 144 | | |
140 | 145 | | |
| |||
267 | 272 | | |
268 | 273 | | |
269 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
270 | 286 | | |
271 | 287 | | |
272 | 288 | | |
| |||
0 commit comments