Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint-level and field-level role/permission support #3015

Open
rlondner opened this issue Sep 4, 2022 · 1 comment
Open

Endpoint-level and field-level role/permission support #3015

rlondner opened this issue Sep 4, 2022 · 1 comment
Labels
security: access ctrl Permissions and controls distinct from authentication security

Comments

@rlondner
Copy link

rlondner commented Sep 4, 2022

At the company we work at, we have a need to expose APIs to different actors who have different roles and thus accesses. Essentially, some users have more or less access to the same API endpoints and on each endpoint, they may have access to some response fields or not.

However, at this point, there is no way to include this concept of role/permission support which we would at least want to use when generating documentation (and use one single OpenAPI definition file) - of course, it would mean that documentation support that new role/permission construct, but it starts with implementing it in the spec.

Is this something other folks are interested in?

Ideally, this issue should be assigned the Next.Proposal label.

@handrews handrews added security security: access ctrl Permissions and controls distinct from authentication labels Jan 29, 2024
@LasneF
Copy link

LasneF commented Feb 7, 2024

should not limited to read, but as well to write operation,
the mechanism should follow a kiss principle that would handle 80% use case (even if sometime access control are tricky and goes functionnal)

but basic like
field X , is write : admin only (what ever means admin ... like beeing part of a group , or a custom claim , or whatever)
this field Z is read by boss, admin

would looks nice , then should it be as Json schema extension in OAS , or in core json schema is also a topic as readOnly / writeOnly )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security: access ctrl Permissions and controls distinct from authentication security
Projects
None yet
Development

No branches or pull requests

3 participants