Commit 8bda8b1
authored
feat: replace kube rbac proxy with controller runtime authn (argoproj-labs#2119)
* chore: replace deprecated kube-rbac-proxy with controller-runtime authn/authz
The gcr.io/kubebuilder/kube-rbac-proxy image is deprecated and no longer
available. This commit replaces the kube-rbac-proxy sidecar approach
with
controller-runtime's built-in WithAuthenticationAndAuthorization filter
for securing the /metrics endpoint.
The existing RBAC roles for tokenreviews and subjectaccessreviews are
retained as they are required by the controller-runtime authn/authz.
Fixes: argoproj-labs#1613
Signed-off-by: Kerruba <2854782+Kerruba@users.noreply.github.com>
Signed-off-by: Luca Cherubin <Kerruba@users.noreply.github.com>
* fix: implemented single-toggle wiring combining deployment/service patch in manager_auth_proxy_patch
Signed-off-by: Luca Cherubin <2854782+Kerruba@users.noreply.github.com>
Signed-off-by: Luca Cherubin <Kerruba@users.noreply.github.com>
* refactor(kustomize): split manager auth patches and restore default behavior with disabled patches
Migrate metrics auth patching in config/default/kustomization.yaml to
`patches` with separate deployment/service patch files.
- split manager_auth_proxy_patch.yaml into:
- manager_auth_proxy_patch.yaml (Deployment)
- manager_auth_proxy_service_patch.yaml (Service)
- keep both manager auth patch entries commented out by default
- update cmd/main_test.go to validate split files and
disabled-by-default toggle
Signed-off-by: Luca Cherubin <2854782+Kerruba@users.noreply.github.com>
Signed-off-by: Luca Cherubin <Kerruba@users.noreply.github.com>
* chore: remove unnecessary changes
Signed-off-by: Luca Cherubin <Kerruba@users.noreply.github.com>
* docs: clean up formatting in development guide
Signed-off-by: Luca Cherubin <Kerruba@users.noreply.github.com>
* fix: address secure metrics review feedback
Rename the auth_proxy patch and RBAC manifests to metrics-oriented names, remove the extra manifest tests from cmd/main_test.go, and align the secure metrics path to use 8443 across config, docs, and generated bundle/catalog manifests
Signed-off-by: Luca Cherubin <Kerruba@users.noreply.github.com>
---------
Signed-off-by: Kerruba <2854782+Kerruba@users.noreply.github.com>
Signed-off-by: Luca Cherubin <Kerruba@users.noreply.github.com>
Signed-off-by: Luca Cherubin <2854782+Kerruba@users.noreply.github.com>
Co-authored-by: Luca Cherubin <Kerruba@users.noreply.github.com>1 parent 954fe01 commit 8bda8b1
19 files changed
Lines changed: 208 additions & 86 deletions
File tree
- bundle/manifests
- cmd
- config
- default
- rbac
- deploy/olm-catalog/argocd-operator/0.19.0
- docs
- developer-guide
- usage
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
1946 | 1946 | | |
1947 | 1947 | | |
1948 | 1948 | | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
1949 | 1952 | | |
1950 | 1953 | | |
1951 | 1954 | | |
| |||
1968 | 1971 | | |
1969 | 1972 | | |
1970 | 1973 | | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
1971 | 1977 | | |
1972 | 1978 | | |
1973 | 1979 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 147 | + | |
151 | 148 | | |
152 | 149 | | |
153 | 150 | | |
| |||
370 | 367 | | |
371 | 368 | | |
372 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments