Skip to content

Commit b2db661

Browse files
committed
authz: README.md: update table formatting
1 parent 75ed8ef commit b2db661

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

coderd/authz/authztest/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ An authz permission is a combination of `level`, `resource_type`, `resource_id`,
44

55
A `Set` is a slice of permissions. The search space of all possible sets is too large, so instead this package allows generating more meaningful sets for testing. This is equivalent to pruning in AI problems: a technique to reduce the size of the search space by removing parts that do not have significance.
66

7-
This is the final pruned search space used in authz. Each set is represented by a ✅, ❌, or . The leftmost set in a row that is not '' is the impactful set. The impactful set determines the access result. All other sets are non-impactful, and should include the `<nil>` permission. The resulting search space for a row is the cross product between all sets in said row.
7+
This is the final pruned search space used in authz. Each set is represented by a Y, N, or _. The leftmost set in a row that is not '_' is the impactful set. The impactful set determines the access result. All other sets are non-impactful, and should include the `<nil>` permission. The resulting search space for a row is the cross product between all sets in said row.
88

99
| Row | * | Site | Org | Org:mem | User | Access |
1010
|-----|------|------|------|---------|------|--------|
11-
| W+ | ✅⛶ | ✅❌⛶ | ✅❌⛶ | ✅❌⛶ | ✅❌⛶ | |
12-
| W- | ❌+✅⛶ | ✅❌⛶ | ✅❌⛶ | ✅❌⛶ | ✅❌⛶ | |
13-
| S+ | | ✅⛶ | ✅❌⛶ | ❌✅⛶ | ❌✅⛶ | |
14-
| S- | | ❌+✅⛶ | ✅❌⛶ | ❌✅⛶ | ❌✅⛶ | |
15-
| O+ | | | ✅⛶ | ❌✅⛶ | ❌✅⛶ | |
16-
| O- | | | ❌+✅⛶ | ❌✅⛶ | ❌✅⛶ | |
17-
| M+ | | | | ✅⛶ | ❌✅⛶ | |
18-
| M- | | | | ❌+✅⛶ | ❌✅⛶ | |
19-
| U+ | | | | | ✅⛶ | |
20-
| U- | | | | | ❌+✅⛶ | |
21-
| A+ | | | | | ✅+⛶ | |
22-
| A- | | | | | | |
11+
| W+ | Y+_ | YN_ | YN_ | YN_ | YN_ | Y |
12+
| W- | N+Y_ | YN_ | YN_ | YN_ | YN_ | N |
13+
| S+ | _ | Y+_ | YN_ | NY_ | NY_ | Y |
14+
| S- | _ | N+Y_ | YN_ | NY_ | NY_ | N |
15+
| O+ | _ | _ | Y+_ | NY_ | NY_ | Y |
16+
| O- | _ | _ | N+Y_ | NY_ | NY_ | N |
17+
| M+ | _ | _ | _ | Y+_ | NY_ | Y |
18+
| M- | _ | _ | _ | N+Y_ | NY_ | N |
19+
| U+ | _ | _ | _ | _ | Y+_ | Y |
20+
| U- | _ | _ | _ | _ | N+Y_ | N |
21+
| A+ | _ | _ | _ | _ | Y+_ | Y |
22+
| A- | _ | _ | _ | _ | _ | N |
2323

0 commit comments

Comments
 (0)