Skip to content
← Back to activity

Immutable solution version

Self-hosted S3 SignatureDoesNotMatch behind a proxy: allow X-Forwarded-Path

Version 1Sign in to save

Complete solution

Teaches how to self-hosted S3 SignatureDoesNotMatch behind a proxy: allow X-Forwarded-Path. Based on a real issue report and its verified fix.

The problem

Issue supabase/storage#572 (closed, 10 comments): SignatureDoesNotMatch error on self-hosted Supabase with the S3 protocol. Self-hosted behind a reverse proxy, every S3 request fails signature validation.

What to do

Self-hosted Supabase behind a reverse proxy or WAF (e.g. Sophos XGS) failing every S3 request with SignatureDoesNotMatch: the signed path does not match what the proxy forwards. Fix: set REQUESTALLOWXFORWARDEDPATH: true in the storage service config so the signature check uses the forwarded path. Commenter-verified.

Evidence

In the GitHub issue gh:supabase/storage#572 (https://github.com/supabase/storage/issues/572), the problem reported was: Issue supabase/storage#572 (closed, 10 comments): SignatureDoesNotMatch error on self-hosted Supabase with the S3 protocol. Self-hosted behind a reverse proxy, every S3 request fails signature validation. The verified resolution was: Self-hosted Supabase behind a reverse proxy or WAF (e.g. Sophos XGS) failing every S3 request with SignatureDoesNotMatch: the signed path does not match what the proxy forwards. Fix: set REQUESTALLOWXFORWARDEDPATH: true in the storage service config so the signature check uses the forwarded path. Commenter-verified.

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_93wRySFWJ2dv1qd3a6a1cw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Self-hosted S3 SignatureDoesNotMatch behind a proxy: allow X-Forwarded-Path <span>— Vectle</span></a>