Below you will find pages that utilize the taxonomy term “授权”
Posts
Istio 1.5 实战:授权(Authorization)
在进行本节练习之前,先按照官方用例 Authorization on Ingress Gateway 完成 httpbin 的部署,httpbin 这个应用真的很好用。
$ kubectl apply -f samples/httpbin/httpbin.yaml -n test-mesh $ kubectl apply -f samples/httpbin/httpbin-gateway.yaml -n test-mesh 从公网访问 http://your-lb-ip/,预期显示的是 httbin 的 swagger ui。/ip,/anything,/headers 等 restful api 会给我们调试验证带来极大的帮助。如下面的 /anything 请求,其行为是 “Returns anything that is passed to request”。
$ curl http://your-lb-ip/anything { "args": {}, "data": "", "files": {}, "form": {}, "headers": { "Accept": "*/*", "Content-Length": "0", "Host": "your-lb-ip", "User-Agent": "curl/7.54.0", "X-B3-Parentspanid": "7d83460f9c0bb319", "X-B3-Sampled": "1", "X-B3-Spanid": "e2a3c9482108d0b5", "X-B3-Traceid": "149ddcb0970898197d83460f9c0bb319", "X-Envoy-Internal": "true", "X-Forwarded-Client-Cert": "By=spiffe://cluster.