Skip to content

Commit

Permalink
Add basic relationship integrity proxy which signs relationships when…
Browse files Browse the repository at this point in the history
… they are written, and matches hashes when they are read
  • Loading branch information
josephschorr committed Jul 16, 2024
1 parent 72fc585 commit 980c49b
Show file tree
Hide file tree
Showing 3 changed files with 935 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/datastore/memdb/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ func (r relationship) RelationTuple() (*core.RelationTuple, error) {
return nil, err
}

ig := r.integrity.RelationshipIntegrity()
var ig *core.RelationshipIntegrity
if r.integrity != nil {
ig = r.integrity.RelationshipIntegrity()
}

return &core.RelationTuple{
ResourceAndRelation: &core.ObjectAndRelation{
Expand Down
Loading

0 comments on commit 980c49b

Please sign in to comment.