Allow OAUTH2 JWT scope attribute condition to authorization policy

Open
#2,901 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go

Research direction

Start with the Istio authorization API and the conditions reference linked in the issue, focusing on the existing request.auth.claims condition. Determine the intended semantics for request.auth.scope and its interaction with OAuth2 scope validation; done means the API supports scope-based authorization conditions with documented behavior and appropriate validation.

Written by the indexing model from the issue text.

Description

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

Dominant language
Go
Stars
523
Forks
623
Avg merge
5d 20h
Merged PRs (30d)
4

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from istio/api

All issues in istio/api

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.