[Bug] Calls to Source Cooperative API call unimplemented route when empty AWS_ACCESS_KEY_ID is provided #5
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Description of Bug:
Authentication calls to the Source Cooperative API call an unimplemented route when an empty AWS_ACCESS_KEY_ID is provided to the data proxy.
Steps to Reproduce:
data.source.coop
locallyAWS_ACCESS_KEY_ID
environment variable to empty value (i.e.export AWS_ACCESS_KEY_ID=
)aws ls s3://planet/rapidai4eo/ --endpoint-url=http://localhost:8080
)Expected Behavior:
Authentication method does not call the
{$SOURCE_API_URL}/api/v1/api-keys/{API_KEY}/auth
endpoint as we already know the user is making an unauthenticated request.Actual Behavior:
Calls are made to the
{$SOURCE_API_URL}/api/v1/api-keys/auth
endpoint since thereqwest
library transforms the request path from/api/v1/api-keys//auth
to/api/v1/api-keys/auth
. These requests cause a501 - Not Implemented
error on the Source Cooperative Frontend & APIAdditional Context:
The text was updated successfully, but these errors were encountered: