louketo / louketo-proxy

A OpenID / Proxy service
Apache License 2.0
950 stars 343 forks source link

white-list resource not working from cli #650

Closed shaunc closed 4 years ago

shaunc commented 4 years ago

Title

Summary

When specifying a white-listed uri on the command line, I get an error. For instance, if I pass (from doc example):

--resources="uri=/public/*|white-listed=true"

I get:

[error] invalid resource "uri=/public/*|white-listed=true", invalid identifier, should be roles, uri or methods

Environment

Expected Results

white-listed route

Actual Results

error

Steps to reproduce

My full cli arguments:

        args:
        - --config=/var/secrets/auth-proxy-keycloak-config.yaml
        - --discovery-url=https://auth.factfiber.ai/auth/realms/factfiber
        - --listen=0.0.0.0:4000
        - --upstream-url=http://127.0.0.1:3000
        - --redirection-url=https://dev.factfiber.ai/
        - --enable-refresh-tokens=true
        - --enable-default-deny=true
        - --resources="uri=/public/*|white-listed=true"

where config file contains just client-id, client-secret and encryption-key.

Additional Information

shaunc commented 4 years ago

Aha -- the quotes are for a shell; are meant to disappear. I shouldn't be specifying in helm chart. Apologies!