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

Add a routing-focused test helper(s?) to assert on privileges #3

Open
jmileham opened this issue Jun 7, 2019 · 0 comments
Open

Add a routing-focused test helper(s?) to assert on privileges #3

jmileham opened this issue Jun 7, 2019 · 0 comments

Comments

@jmileham
Copy link
Member

jmileham commented Jun 7, 2019

Often, teams need to ensure that a whole set of related functionality is operating with a common security posture (e.g. admin-only). This related functionality is often mounted within a similar path. Being able to assert that a set of routes nested within a resource or namespace have either a certain minimum set of privileges or an exactly matching set of privileges seems very valuable to prevent accidental violations of expected authorization.

This could work based on path globbing, or routing tree nesting, or something like that. It'll take some R&D to find the sweet spot for developer experience that is intuitive to write and legible to readers of the resulting tests and failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant