[BUG] Update GetPublicURL to match inbound request with most relevant AuthorizedURIs #6195
Open
2 tasks done
Labels
bug
Something isn't working
Describe the bug
Relevant code (GetPublicURL):
flyte/flyteadmin/auth/handler_utils.go
Line 114 in 8125ae1
For example we passed in the following three URIs and this function was constantly picking http://flyteadmin:80 when the request was in fact coming from https://flyte/.<BASE_URL>
Expected behavior
GetPublicURL function should try to match on hostname of the request and AuthorizedURIs list instead of returning the first element of the list.
Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: