cactus / go-camo

A secure image proxy server
MIT License
254 stars 48 forks source link

Add a command-line option to remove `/debug/vars/` endpoint from metrics #66

Closed dee-see closed 9 months ago

dee-see commented 9 months ago

Right now when the --metrics switch is on, there's a /debug/vars/ endpoint added automatically. It's not really useful for metrics and can potentially expose sensitive data so a way to disable this would be great.

A --no-debug-vars switch as suggested here https://github.com/cactus/go-camo/issues/65#issuecomment-1777861157 would work well.

dee-see commented 9 months ago

I'll look into implementing this it seems simple enough