rrroyal / Harbour

Docker/Portainer management app for iOS, iPadOS and macOS.
https://harbour.shameful.xyz
GNU Affero General Public License v3.0
565 stars 23 forks source link

User agent #52

Closed LucifersCircle closed 3 months ago

LucifersCircle commented 3 months ago

Is your feature request related to a problem? Please describe.

Accessing the server with local ip is fine for when I'm home, but I'd kind of like to allow Harbour to bypass certain rules in my waf on cloudflare. Currently the user agent seems to be reported as Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1

(I'm not sure if this is accurate, it's difficult to pinpoint the right log)

Describe the solution you'd like

I was wondering if you could add something to the user agent/change it, so that it could be used to identify Harbour.

LucifersCircle commented 3 months ago

Sorry, after a lot more digging I did find that there is a Harbour user agent and I was mistaken earlier!

Harbour/46 CFNetwork/ Darwin/

rrroyal commented 3 months ago

Hey, just to add to it - please make sure that UA isn't the only thing you're checking, as it could be easily manipulated. I personally use Tailscale's addresses so that I don't have to accept any incoming connections from the general web.