-
Notifications
You must be signed in to change notification settings - Fork 813
Closed
Description
外部认证配置:
http_service:
authorization_request:
allowed_headers:
- exact: "token"
headers_to_add:
x-envoy-header: true
authorization_response:
allowed_upstream_headers:
- exact: "x-auth-status"
- exact: "x-auth-msg"
endpoint:
path_prefix: "/auth"
service_name: "tenant-lesoon-basic-api.tenant-dev.svc.cluster.local"
service_port: 8080
endpoint_mode: "envoy"
timeout: 1000
status_on_error: 403
测试结果:

- 类似于ASM的服务网格网关自定义授权逻辑。
疑问
- 响应无body,无法做到更精细化处理。 例如: 资源权限认证、 单点登录认证等。
- 如何配置例外路径, 例如:前端路径、特殊业务路径不需要认证的,如何针对这边路径配置例外? 如果这边路径也要走到外部授权认证一遍的话,浪费资源了。
Metadata
Metadata
Assignees
Labels
No labels