Skip to content

Handle custom ports in upstream URL when no port in proxy URL #97

@batpad

Description

@batpad

I have a situation where my upstream URL is on port 8080 (since stac-auth-proxy will access upstream via an internal kubernetes service URL) - it seems like the logic to over-ride the host does not deal with also over-riding the port: https://github.com/developmentseed/stac-auth-proxy/blob/main/src/stac_auth_proxy/middleware/ProcessLinksMiddleware.py#L96

I think here we also need to check if the links contain a port suffix and remove that (if the stac-auth-proxy hostname does not contain the port)

@alukach does that make sense? does that seem reasonable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions