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: proto changes for attribute-based access control #98

Merged
merged 20 commits into from
Dec 1, 2023
Merged

Conversation

jpadilla
Copy link
Member

@jpadilla jpadilla commented Sep 22, 2023

Description

Introduce the new API definitions for the official OpenFGA ABAC support along with modifications to the existing API to better align with the ABAC changes.

References

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

jpadilla and others added 3 commits September 14, 2023 13:03
* feat: add `condition` to RelationReference

* feat: add `Condition` definition

* feat: add `conditions` to AuthorizationModel

* update swagger

* feat: add `conditions` to WriteAuthorizationModelRequest

* feat: add `context` fields to query requests

* use an enum for condition param type names

* add feat branch to review workflow

* stick to enum conventions

* suppress diffs from generated files

* regenerate

* add missing type name

* proposed validation as starting point

* add ipaddress type

* tweaks

* update validation for Condition.name

* refactor: change Assertion TupleKey to CheckRequestTupleKey

* feat: adding condition for tuple key (#94)

* feat: adding condition for tuple key

* remove redundant validation

---------

Co-authored-by: Jonathan Whitaker <[email protected]>
Co-authored-by: Adrian Tam <[email protected]>
@jpadilla jpadilla added breaking-change Will result in a breaking change to the API abac labels Sep 22, 2023
* re-order fields on TupleKey

* mark fields as required where applicable
@jpadilla jpadilla changed the title feat: ABAC feat: proto changes for attribute-based access control Oct 3, 2023
jpadilla and others added 9 commits October 13, 2023 11:07
)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.17.0.
- [Commits](golang/net@v0.12.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
# Conflicts:
#	proto/openfga/v1/openfga_service.pb.go
@jon-whit jon-whit marked this pull request as ready for review December 1, 2023 17:32
@jon-whit jon-whit requested a review from a team as a code owner December 1, 2023 17:32
rhamzeh
rhamzeh previously approved these changes Dec 1, 2023
@jon-whit jon-whit merged commit 5daf658 into main Dec 1, 2023
6 of 7 checks passed
@jon-whit jon-whit deleted the feat/abac branch December 1, 2023 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abac breaking-change Will result in a breaking change to the API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants