fix(ci): grant ci-deployer Endpoints write (admin role excludes it)
ci / tc_portal (push) Has been skipped
ci / tc_operator (push) Has been skipped
ci / tc_website (push) Has been skipped
ci / build_portal (push) Has been skipped
ci / changes (push) Successful in 4s
ci / tc_booking (push) Has been skipped
ci / tc_platform_api (push) Has been skipped
ci / test_platform_api (push) Has been skipped
ci / build_booking (push) Has been skipped
ci / build_operator (push) Has been skipped
ci / build_platform_api (push) Has been skipped
ci / deploy (push) Successful in 7s
ci / tc_portal (push) Has been skipped
ci / tc_operator (push) Has been skipped
ci / tc_website (push) Has been skipped
ci / build_portal (push) Has been skipped
ci / changes (push) Successful in 4s
ci / tc_booking (push) Has been skipped
ci / tc_platform_api (push) Has been skipped
ci / test_platform_api (push) Has been skipped
ci / build_booking (push) Has been skipped
ci / build_operator (push) Has been skipped
ci / build_platform_api (push) Has been skipped
ci / deploy (push) Successful in 7s
The deploy failed creating the selectorless stalwart-http Service's Endpoints: since the CVE-2021-25740 hardening the namespaced 'admin' role no longer grants write on legacy Endpoints. Explicit endpoints + endpointslices rules on the ci-deployer role (already applied live); manifest comment touch retriggers the infra apply.
This commit is contained in:
@@ -15,6 +15,9 @@
|
|||||||
#
|
#
|
||||||
# Customer domains (autodiscover.<customer>.tld) need per-domain certs and an
|
# Customer domains (autodiscover.<customer>.tld) need per-domain certs and an
|
||||||
# automated Ingress/Certificate per verified domain — follow-up feature.
|
# automated Ingress/Certificate per verified domain — follow-up feature.
|
||||||
|
#
|
||||||
|
# NB: the ci-deployer Role carries explicit Endpoints write — the namespaced
|
||||||
|
# 'admin' role stopped granting it (CVE-2021-25740 hardening).
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
@@ -48,6 +48,15 @@ rules:
|
|||||||
- apiGroups: ["traefik.io"]
|
- apiGroups: ["traefik.io"]
|
||||||
resources: ["middlewares"]
|
resources: ["middlewares"]
|
||||||
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
|
# 'admin' stopped granting WRITE on legacy Endpoints (CVE-2021-25740
|
||||||
|
# hardening), but the selectorless stalwart-http Service needs its
|
||||||
|
# Endpoints applied by the pipeline. EndpointSlice included for parity.
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["endpoints"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
|
- apiGroups: ["discovery.k8s.io"]
|
||||||
|
resources: ["endpointslices"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
---
|
---
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
kind: RoleBinding
|
kind: RoleBinding
|
||||||
|
|||||||
Reference in New Issue
Block a user