kubeshop / kusk-gateway

Kusk-gateway is an OpenAPI-driven API Gateway for Kubernetes
https://kubeshop.github.io/kusk-gateway/
MIT License
261 stars 21 forks source link

Upstream authorization #807

Open jasmingacic opened 2 years ago

jasmingacic commented 2 years ago

As a user I want to be able to access upstreams or hostnames that require authentication.

x-kusk:
   upstream: # routes the POST /pet endpoint to a Kubernetes service
      service:
         namespace: default
         name: petstore
         port: 8000
         bearerToken: xxx ## or any type of auth user might come across 
aabedraba commented 2 years ago

Perhaps this should have an entire object dedicated for it...

x-kusk:
   upstream: # routes the POST /pet endpoint to a Kubernetes service
      service:
         namespace: default
         name: petstore
         port: 8000
         auth:
           ...