Commit 8ed22cb
restricted_paths: introduce read_only and gate derivation on it
Summary:
## This stack
Decouple restricted_paths config from the manifest_id store (T277178795). Replace `path_acls` (path -> ACL) with per-path `PathRestrictionMetadata` carrying the REPO_REGION ACL and optional permission-request group, so a future `read_only` flag can freeze manifest-id-store growth without dropping enforcement. Thrift `path_acls` is retained as a parser fallback. The configerator thrift source is the separately-published D109697491.
## This diff (behaviour change)
One of the most important changes for T277178795.
This will let us specify that a tent config is read-only, meaning we'll rely on it only for old manifest ids.
This will be used once we migrate all the existing fbsource tents to `.slacl`, which is the long-term, scalable solution.
Reviewed By: lmvasquezg
Differential Revision: D109827082
fbshipit-source-id: 8c00360c8b1797f8e73025bc1e049cce6994064e1 parent 65756f6 commit 8ed22cb
10 files changed
Lines changed: 128 additions & 11 deletions
File tree
- eden/mononoke
- derived_data/mercurial_derivation/src
- metaconfig
- parser/src/convert
- types/src
- mononoke_api_hg/src
- mononoke_api/src/test
- repo_attributes
- restricted_paths_common/src
- restricted_paths
- src
- restriction_info
- test
- servers/scs/scs_methods/src/methods
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
360 | | - | |
361 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
362 | 364 | | |
363 | 365 | | |
364 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1400 | 1400 | | |
1401 | 1401 | | |
1402 | 1402 | | |
| 1403 | + | |
1403 | 1404 | | |
1404 | 1405 | | |
1405 | 1406 | | |
| |||
1426 | 1427 | | |
1427 | 1428 | | |
1428 | 1429 | | |
| 1430 | + | |
1429 | 1431 | | |
1430 | 1432 | | |
1431 | 1433 | | |
| |||
1656 | 1658 | | |
1657 | 1659 | | |
1658 | 1660 | | |
1659 | | - | |
| 1661 | + | |
| 1662 | + | |
1660 | 1663 | | |
1661 | 1664 | | |
1662 | 1665 | | |
| |||
1670 | 1673 | | |
1671 | 1674 | | |
1672 | 1675 | | |
| 1676 | + | |
1673 | 1677 | | |
1674 | 1678 | | |
1675 | 1679 | | |
| |||
1716 | 1720 | | |
1717 | 1721 | | |
1718 | 1722 | | |
1719 | | - | |
| 1723 | + | |
1720 | 1724 | | |
1721 | 1725 | | |
1722 | 1726 | | |
1723 | 1727 | | |
1724 | 1728 | | |
1725 | 1729 | | |
1726 | 1730 | | |
1727 | | - | |
| 1731 | + | |
1728 | 1732 | | |
1729 | 1733 | | |
1730 | 1734 | | |
| |||
1739 | 1743 | | |
1740 | 1744 | | |
1741 | 1745 | | |
| 1746 | + | |
1742 | 1747 | | |
1743 | 1748 | | |
1744 | 1749 | | |
| |||
1752 | 1757 | | |
1753 | 1758 | | |
1754 | 1759 | | |
1755 | | - | |
| 1760 | + | |
1756 | 1761 | | |
1757 | 1762 | | |
1758 | 1763 | | |
| |||
1767 | 1772 | | |
1768 | 1773 | | |
1769 | 1774 | | |
| 1775 | + | |
1770 | 1776 | | |
1771 | 1777 | | |
1772 | 1778 | | |
| |||
1815 | 1821 | | |
1816 | 1822 | | |
1817 | 1823 | | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
1818 | 1844 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2575 | 2575 | | |
2576 | 2576 | | |
2577 | 2577 | | |
2578 | | - | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
2579 | 2582 | | |
2580 | 2583 | | |
2581 | 2584 | | |
2582 | 2585 | | |
2583 | 2586 | | |
2584 | 2587 | | |
2585 | 2588 | | |
| 2589 | + | |
| 2590 | + | |
2586 | 2591 | | |
2587 | 2592 | | |
2588 | 2593 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
| 1177 | + | |
1177 | 1178 | | |
1178 | 1179 | | |
1179 | 1180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
| 675 | + | |
675 | 676 | | |
676 | 677 | | |
677 | 678 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| 545 | + | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
| 1270 | + | |
1270 | 1271 | | |
1271 | 1272 | | |
1272 | 1273 | | |
| |||
Lines changed: 81 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | | - | |
96 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
97 | 175 | | |
98 | 176 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
| 418 | + | |
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
| |||
0 commit comments