最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

kubernetes - How Can I Use # (Pound Sign) in Yaml For Istio Path - Stack Overflow

programmeradmin0浏览0评论

I have a URL like this:

When I used Istio AuthorizationPolicy to denied the path include #, it won't be work.

apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
  name: test
spec:
  action: DENY
  rules:
  - to:
    - operation:
        paths: ["/test1/#/test2"] # not work

When I removed #, istio can successfully block website. But other path will be blocked also.

apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
  name: test
spec:
  action: DENY
  rules:
  - to:
    - operation:
        paths: ["/test1/*"] # works, but others path be blocked also

How can I block website when path include # () ?

发布评论

评论列表(0)

  1. 暂无评论