Conversation
|
cc @joestringer |
0eb5de1 to
e3fe9b5
Compare
e3fe9b5 to
f402246
Compare
|
I updated the PR to also add entity |
f402246 to
0c04d0e
Compare
|
test-me-please |
|
retest-runtime |
|
@joestringer PTAL as you had concerns in the original PR |
|
@joestringer's comment from the original PR:
I'm fine with this approach, but for consistency, I would still expect a health entity to be there. |
➕
That would be subject to risk assessment but seems reasonable to me assuming we are confident we aren't allowing additional traffic unintentionally. I'm fine to merge & backport this PR as-is, it provides a workaround for now but it'd be nice to follow up on the whitelisting approach so users don't have to care. |
joestringer
left a comment
There was a problem hiding this comment.
I note that there's no testing in this PR but the changes look fine.
With the introduction of CiliumClusterwideNetworkPolicies a policy has
the ability to select the 'reserved:health' endpoints. If a user applies
a policy such as [0], it will block all connectivity for the health
endpoints. As this does not seem expected, since Cilium will report that
the connectivity across Cilium pods is not working, the user will need to
deploy a CCNP that allows connectivity between health endpoints. This
can be done with [1].
This commit introduces 'reserved:health' as an entity that can be
selected by CNP and / or CCNP.
[0]
```
---
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: ingress-deny-all
spec:
endpointSelector:
matchLabels: {}
ingress:
- {}
---
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: egress-deny-all
spec:
endpointSelector:
matchLabels: {}
egress:
- {}
```
[1]
```
apiVersion: "cilium.io/v2"
kind: CiliumClusterwideNetworkPolicy
metadata:
name: "allow-reserved-health"
spec:
endpointSelector:
matchLabels:
'reserved:health': ""
ingress:
- fromEntities:
- health
```
Co-authored-by: Paul Chaignon <paul@cilium.io>
Signed-off-by: André Martins <andre@cilium.io>
0c04d0e to
afa3711
Compare
|
test-me-please |
|
retest-net-next |
With the introduction of CiliumClusterwideNetworkPolicies a policy has
the ability to select the 'reserved:health' endpoints. If a user applies
a policy such as [0], it will block all connectivity for the health
endpoints. As this does not seem expected, since Cilium will report that
the connectivity across Cilium pods is not working, the user will need to
deploy a CCNP that allows connectivity between health endpoints. This
can be done with [1].
This commit introduces 'reserved:health' as an entity that can be
selected by CNP and / or CCNP.
[0]
[1]
Related: #11099 (which I couldn't reopen)
Signed-off-by: André Martins andre@cilium.io