Add support for specifying `targetRef` namespace on authorization policies
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- go, kubernetes
- 领域
- api, networking, security
调研方向
首先查看 authorization policy API 以及所引用的 Istio API pull request 2888,然后跟踪 gateway 目标和 namespace 的表示方式。完成的标准是 AuthorizationPolicy 可以引用另一个 namespace 中的 gateway,从而允许应用程序 namespace 持有这些 policy;添加或更新涵盖该行为的测试。
由索引模型根据 Issue 内容生成。
描述
Describe the feature request
When using the k8s gateway API (with Istio as a gateway controller), I'd like to be able to store authorization policies alongside applications, alongside HTTPRoutes and similar application-specific resources.
Today, it looks like the only way to target application-specific resources with AuthorizationPolicies when using the gateway API is to target the entire gateway, and then use a rule to filter the policy based on hosts/paths/etc. that match the application's HTTPRoute. While not ideal, this should in theory work.
However, because the AuthorizationPolicy does not support targeting gateways in other namespaces, the policy must live in either the default namespace (so it'll match gateways in all namespaces), or the gateway's namespace. This means moving application-specific resources away from the application, and away from all other related ingress configuration.
I'd like to be able to specify the namespace for the referenced gateway within the authorization policy so that I can place the policy in application namespaces, instead of gateway namespaces. It looks like work was already started on this here, but never completed.
Describe alternatives you've considered
Store the resource in the gateway namespace
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[x] Policies and Telemetry
[x] Security
[ ] Test and Release
[ ] User Experience
Additional context
- 主要语言
- Go
- 星标
- 523
- 派生
- 623
- 平均合并
- 5 天 20 小时
- 30 天内合并 PR
- 4
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
istio/api 的其他 Issue
-
Gateway CRD accepts both credentialName and tlsCertificates in server TLS settings可能已有人在做 @RaphaelFakhri 于 23 天前认领。 未关闭area/networking area/user experience
难度 2/5 1-3 小时 新手友好度 35/100
维护者通常 1 天内回复
-
area/user experience kind/docs kind/enhancement
难度 5/5 一周以上 新手友好度 40/100
维护者通常 1 天内回复
-
area/networking area/user experience kind/docs kind/enhancement
难度 5/5 一周以上 新手友好度 45/100
维护者通常 1 天内回复
-
[release-1.29] change default of statsCompression to true可能重新可做 @keithmattix 于 304 天前认领,目前没有进行中的 PR。 未关闭
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
维护者通常 1 天内回复
相似的 Issue
-
bug raised-by:verifier to:worker
难度 2/5 1-3 小时 新手友好度 88/100
medici-finance/assay#7835 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
golang-malawi/qatarina#496 ·
维护者通常 2 天内回复
-
hive size:simple
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
documentation stage:review
难度 1/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
Type/Bug
难度 2/5 1-3 小时 新手友好度 82/100
wso2/identity-customer-data-service#430 ·
维护者通常 1 天内回复