Custom Request Headers for the Mobile App to bypass Reverse Proxy Authentication #4838
Replies: 1 comment 2 replies
|
Companion app security now centers on mTLS, a lasting and stronger approach than relying on headers or manual tokens and secrets. Since each new strategy increases maintenance complexity, custom headers are not being pursued, instead, discussions focus on simplifying mTLS setup for typical users. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the feature
I'd like to be able to set custom request headers in the iOS app so that I can bypass a reverse proxy in front of Home Assistant. While this feature sounds simple in the first place, I do believe it could be difficult to implement because the iOS app uses Apple's WebKit for displaying the dashboards and handling WebSockets, and we can't really set custom headers with these requests.
For more details, I made a little video to explain what exactly I imagine with this feature and what the potential issues are: https://youtu.be/XxuP3IC4hqk
Use cases
I secure all my self-hosted applications with a reverse proxy for public access. This, however, does not work with mobile apps because the redirect to a sign-in page breaks when you want to use the API directly. Therefore, I propose to implement custom headers that the reverse proxy can then use to authenticate the requests and essentially bypass this redirect flow.
Examples
The Swift-Paperless client for Paperless-NGX has a similar setup where I can set these custom headers to then bypass the authentication.
Github: https://github.com/paulgessinger/swift-paperless
Specific Issue discussing the feature: paulgessinger/swift-paperless#11
Website: https://swift-paperless.gessinger.dev
App Store: https://apps.apple.com/de/app/swift-paperless/id6448698521?l=en-GB
Anything else?
No response
All reactions