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

Enforce capabilities for API requests #2038

Closed
mitchell852 opened this issue Mar 22, 2018 · 2 comments
Closed

Enforce capabilities for API requests #2038

mitchell852 opened this issue Mar 22, 2018 · 2 comments
Labels
new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops

Comments

@mitchell852
Copy link
Member

mitchell852 commented Mar 22, 2018

Each API request needs to be authorized using the capabilities of the user as defined by the user's role. If authorization fails, a 403 Forbidden should be returned probably with a message like "Forbidden. The ds-write capability is required."

Also, need to think about how priv_level will be deprecated or overridden. Maybe a parameter called use_capabilities is introduced. If turned on, priv level is ignored. If turned off, priv level is respected.

However, for 3.0, I think there should be no concept of a priv_level. It should be scrubbed from the code base entirely.

More info here: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=68715910

@mitchell852 mitchell852 added new feature A new feature, capability or behavior Traffic Ops API (golang) labels Mar 22, 2018
@mitchell852
Copy link
Member Author

@DylanVolz is working on this

@mitchell852
Copy link
Member Author

this is related to @rob05c PR - #2791

@mitchell852 mitchell852 added Traffic Ops related to Traffic Ops and removed Traffic Ops related to Traffic Ops Traffic Ops API (golang) labels Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops
Projects
None yet
Development

No branches or pull requests

2 participants