-
Notifications
You must be signed in to change notification settings - Fork 2
Labels
questionFurther information is requestedFurther information is requested
Description
We should review the recommended best-practices with regards to operating a proxy rather than a standard API.
For example:
Forwarded
request headerVia
request headerProxy-Authorization
request headerProxy-Autenticate
response header407 Proxy Authentication Required
response status
Resources:
Current headers applied here:
Request:
stac-auth-proxy/src/stac_auth_proxy/handlers/reverse_proxy.py
Lines 33 to 35 in 22bef9e
headers = MutableHeaders(request.headers) | |
headers.setdefault("X-Forwarded-For", request.client.host) | |
headers.setdefault("X-Forwarded-Host", request.url.hostname) |
Response:
rp_resp.headers["X-Upstream-Time"] = f"{proxy_time:.3f}" |
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested