Skip to content

Do not return "unauthorized request" if #56

@tijmenbaarda

Description

@tijmenbaarda

Bug

Current behavior / bug description

If filter-proxy is unable to verify the authorization for a certain route, it gives "unauthorized request" as an error message.

Expected behavior

A message like "unable to verify authorization". The current behaviour may be confusing during debugging.

Steps to reproduce the behavior

  1. Make Atlas backend fail during authorization (in my case, it was failing because of Docker Compose setup on my system)
  2. Let Atlas make a request through filter-proxy and look at the filter-proxy log

Context

Possible solution

filter-proxy should check if Atlas indeed thinks the request is unauthorized (error code 401 or 403), around line 137 of main.go.

Environment

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