Skip to content

Commit

Permalink
flatten object
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed Nov 19, 2020
1 parent 3f45059 commit 5425b72
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 199 deletions.
134 changes: 71 additions & 63 deletions api/keto/acl/v1alpha1/acl.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions api/keto/acl/v1alpha1/acl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ option php_namespace = "Ory\\Keto\\Acl\\V1alpha1";
// While a tuple reflects a relationship between Object
// and Subject, they do not completely define the effective ACLs.
message RelationTuple {
// The namespace this relation tuple lives in.
string namespace = 1;
// The object related by this tuple.
Object object = 1;
// It is naturally in the namespace of the tuple.
string object = 2;
// The relation between an Object and a Subject.
string relation = 2;
string relation = 3;
// The subject related by this tuple.
// A Subject either represents a concrete subject id or
// a SubjectSet that expands to more Subjects.
Subject subject = 3;
// Used to perform a consistent read-modify-write (lock).
string etag = 4;
Subject subject = 4;
}

// Object represents a "resource/digital object" in a namespace.
Expand Down Expand Up @@ -52,10 +53,13 @@ message Subject {

// SubjectSet refers to all subjects which have
// the same `relation` to an `object`.
// Also used for inheritance.
// It is also used for inheritance.
message SubjectSet {
// The namespace of the object and relation
// referenced in this subject set.
string namespace = 1;
// The object selected by the subjects.
Object object = 1;
string object = 2;
// The relation to the object by the subjects.
string relation = 2;
string relation = 3;
}
Loading

0 comments on commit 5425b72

Please sign in to comment.