Commit fb28936
Replace cluster-admin with least-privilege RBAC for BoxcutterRuntime (#2514)
The operator-controller service account was bound to the cluster-admin
ClusterRole when the BoxcutterRuntime feature gate was enabled. Replace
this with explicit, scoped RBAC rules in the operator-controller-manager-role
ClusterRole:
- list+watch on all API groups and resources (*/*), required for the
boxcutter runtime to set up informers for arbitrary resource types
defined in ClusterExtensionRevision phases
- Full CRUD (create, get, list, patch, update, watch) on
clusterextensionrevisions
- patch+update on clusterextensionrevisions/status
- update on clusterextensionrevisions/finalizers
The ClusterRoleBinding now always references operator-controller-manager-role
regardless of whether BoxcutterRuntime is enabled, removing the conditional
cluster-admin binding. Static manifests (experimental.yaml and
experimental-e2e.yaml) are updated to match.
Co-authored-by: Per G. da Silva <pegoncal@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 130c987 commit fb28936
File tree
4 files changed
+97
-6
lines changed- helm/olmv1/templates/rbac
- manifests
4 files changed
+97
-6
lines changedLines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
75 | 108 | | |
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 19 | | |
23 | | - | |
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1824 | 1824 | | |
1825 | 1825 | | |
1826 | 1826 | | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1827 | 1858 | | |
1828 | 1859 | | |
1829 | 1860 | | |
| |||
1895 | 1926 | | |
1896 | 1927 | | |
1897 | 1928 | | |
1898 | | - | |
| 1929 | + | |
1899 | 1930 | | |
1900 | 1931 | | |
1901 | 1932 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1785 | 1785 | | |
1786 | 1786 | | |
1787 | 1787 | | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
1788 | 1819 | | |
1789 | 1820 | | |
1790 | 1821 | | |
| |||
1856 | 1887 | | |
1857 | 1888 | | |
1858 | 1889 | | |
1859 | | - | |
| 1890 | + | |
1860 | 1891 | | |
1861 | 1892 | | |
1862 | 1893 | | |
| |||
0 commit comments