Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBAC does not support multiple methods #2371

Closed
bdecoste opened this issue Feb 6, 2020 · 0 comments
Closed

RBAC does not support multiple methods #2371

bdecoste opened this issue Feb 6, 2020 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@bdecoste
Copy link
Contributor

bdecoste commented Feb 6, 2020

A single (or no) methods value in the rbac permissions behaves correctly but when multiple methods are defined. Doc indicates:

methods | []string | What http methods (GET, POST, …) are allowed.

      rbac:
        policies:
          viewer:
            permissions:
              methods:
              - GET
              - POST
              pathPrefix: /jwt-pets
            principals:
            - jwtPrincipal:
                claims:
                  email: service-account-gloo@placeholder.org
                  sub: 2c44f99f-2988-4c3e-8564-7e130ee34964
$ curl -k -H "Authorization: Bearer ${ACCESS_TOKEN}" $(glooctl proxy url --port https)/jwt-pets
RBAC: access denied
@bdecoste bdecoste added the Type: Bug Something isn't working label Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant