Commit f42be85
[Backport 7.72.x] Diagnose command only sends to softinv endpoint when it is enabled (#42108)
Backport from #42107
----
### What does this PR do?
Don't send diagnosis payloads to the softenv endpoint, unless it is enabled in the config.
### Motivation
#incident-44248
The endpoint returns 403 errors if the wrong api key is used, which the diagnose command will do because it blinds hits all defined endpoints.
### Describe how you validated your changes
### Additional Notes
(cherry picked from commit 04be725)
Co-authored-by: AliDatadog <125997632+AliDatadog@users.noreply.github.com>1 parent 1926d1b commit f42be85
1 file changed
Lines changed: 205 additions & 197 deletions
0 commit comments