Skip to content

Commit

Permalink
add SECURITY notices
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhengl committed Nov 19, 2024
1 parent 3cacc01 commit 1788f37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ nextFileMatch:
continue
}

// Skip documents that don't belong to the tenant
// 🚨 SECURITY: Skip documents that don't belong to the tenant. This check is
// necessary to prevent leaking data across tenants.
if !tenant.EqualsID(ctx, repoMetadata.TenantID) {
continue
}
Expand Down Expand Up @@ -621,7 +622,8 @@ func (d *indexData) List(ctx context.Context, q query.Q, opts *ListOptions) (rl
if d.repoMetaData[i].Tombstone {
continue
}
// Skip documents that don't belong to the tenant
// 🚨 SECURITY: Skip documents that don't belong to the tenant. This check is
// necessary to prevent leaking data across tenants.
if !tenant.EqualsID(ctx, d.repoMetaData[i].TenantID) {
continue
}
Expand Down

0 comments on commit 1788f37

Please sign in to comment.