Repository navigation
[Feature] Support configurable custom HTTP request headers for Cloudflare Access (service token) authentication #28624
Closed
drrobotnik
started this conversation in
Feature Request
Replies: 2 comments
|
This is already supported. |
0 replies
|
Unfortunately, this is not supported entirely. I'm using it as access rule for my reverse proxy. I can connect to Immich, but not load images/thumbnails. Looks like the header fields are not passed in all requests. See #32160 However, I'm really not happy with the answer in the other ticket. I understand that it has no priority, but I have the feeling that no one will care because "it's experimental". |
0 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.
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
Allow the Immich mobile app to send configurable custom HTTP headers with every API request.
Background
Cloudflare Access provides a zero-trust authentication layer that sits in front of self-hosted services. It validates requests at the edge before they reach the origin server, using a Client ID and Client Secret sent as headers:
This is a common pattern for securing self-hosted applications without exposing them to the public internet. Currently, users who protect Immich with Cloudflare Access cannot use the mobile app for remote sync because there is no way to inject the required headers. Every background request is rejected by Cloudflare before it reaches Immich.
The only workaround today is to bypass Cloudflare Access for /api/ routes entirely, which eliminates the security benefit of the zero-trust layer.
Proposed solution
Add an Advanced / Custom Headers section in the mobile app's server configuration screen, allowing users to define arbitrary key-value pairs that are included in every outbound request.
This is and intentionally generic approach to my feature request and any similar header-based auth mechanism in the future without requiring Immich-specific integrations. VPN is another valid alternative approach but adds different complexity and doesn't work well for background sync on mobile.
I see there is the following thread that touches on sharing #12614, however I felt like this direction is very specific, abstract and TBH niche. I'd be happy to fold my request into another issue if it's more relevant.
Love immich and the app,
Thanks!
Platform
All reactions