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

feat: Fine grained authorization rule definition #67

Merged
merged 1 commit into from
May 10, 2023
Merged

Conversation

archieco
Copy link
Contributor

@archieco archieco commented May 9, 2023

Description of changes:

This change incorporates a new screen to list fine grained constraints on access. A user with a super-admin role can manage a set of constraints.

vams-screenshot-constraints-list

Users are mapped to constraints via their group memberships on a new screen. "Groups" are defined by any value mapped from a federated identity provider or other values available in the claim set in VAMS pretokengen.py lambda function. See pretokengen.py for an example customization.

Available permissions include Read, Edit, and Admin. The fine grained authorization rules are based on sets of fields, operators, and values.

vams-screenshot

Operators can include or exclude assets based on whether the set of fields matches or does not match the criteria.

Finally, a new backend class enables the use of this criteria for filters and aggregations in OpenSearch. See the examples in backend/tests/handlers/authz/test_opensearch.py.

Note: these new screens do not yet have an effect on the way VAMS authorizes access. That is coming with the anticipated implementation of OpenSearch to support searching large collections of assets and authorization.

Other changes made include the introduction of running unit tests for the python backend and the web app as well as some data-testid attributes in the frontend for element selectors supporting the tests.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Also...
- update python to 3.10
- update poetry to 1.4.2
@archieco archieco merged commit 45a45ef into main May 10, 2023
scheurik pushed a commit that referenced this pull request Jun 14, 2024
feat: Fine grained authorization rule definition
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

Successfully merging this pull request may close these issues.

2 participants