Skip to content

Commit

Permalink
allow requesting /subnet/<subnet_id>
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Aug 10, 2023
1 parent c629cb8 commit 1b38bca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ All requested paths must have the following form:

- `/time`. Can always be requested.

- `/subnet`, `/subnet/<subnet_id>/public_key`, `/subnet/<subnet_id>/canister_ranges`. Can always be requested.
- `/subnet`, `/subnet/<subnet_id>`, `/subnet/<subnet_id>/public_key`, `/subnet/<subnet_id>/canister_ranges`. Can always be requested.

- `/request_status/<request_id>`, `/request_status/<request_id>/status`, `/request_status/<request_id>/reply`, `/request_status/<request_id>/reject_code`, `/request_status/<request_id>/reject_message`, `/request_status/<request_id>/error_code`. Can be requested if no path with such a prefix exists in the state tree or

Expand Down Expand Up @@ -4668,6 +4668,7 @@ The predicate `may_read_path` is defined as follows, implementing the access con

may_read_path(S, _, ["time"]) = True
may_read_path(S, _, ["subnet"]) = True
may_read_path(S, _, ["subnet", sid]) = True
may_read_path(S, _, ["subnet", sid, "public_key"]) = True
may_read_path(S, _, ["subnet", sid, "canister_ranges"]) = True
may_read_path(S, _, ["request_status", Rid]) =
Expand Down

0 comments on commit 1b38bca

Please sign in to comment.