Allow OAUTH2 JWT scope attribute condition to authorization policy

未关闭
#2,901 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
go

调研方向

从 Istio authorization API 和 issue 中链接的条件参考开始,重点关注现有的 request.auth.claims 条件。确定 request.auth.scope 的预期语义及其与 OAuth2 scope 验证的交互;完成的标准是 API 支持基于 scope 的授权条件,并具有文档化的行为和适当的验证。

由索引模型根据 Issue 内容生成。

描述

area/security kind/enhancement

(This is used to request new product features, please visit https://discuss.istio.io for questions on using Istio)

Describe the feature request
istio authorization api support scope attribute in conditions.
These are the currently supported conditions -->
https://istio.io/latest/docs/reference/config/security/conditions/
It support claims. But not scopes
Describe alternatives you've considered
I can use claims in the JWT token and use claims matching , however in OAUTH2 standards scope is the correct way to describe if the token is allowed access to a particular resourse.
These are the list of support condition attributes
https://istio.io/latest/docs/reference/config/security/conditions/
There is request.auth.claims. I would like to also have Istio support request.auth.scope as auth policy condition.
I understand OPA policy evaluation supports scope, but it makes sense to add scope validation within Istio's own Authorization policy since claim verification is already supported.
Affected product area (please put an X in all that apply)

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ X] Security
[ ] Test and Release
[ ] User Experience

Additional context

主要语言
Go
星标
523
派生
623
平均合并
5 天 20 小时
30 天内合并 PR
4

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

istio/api 的其他 Issue

查看 istio/api 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。