Add governed test plane and close T04/T08
Encode fail-closed admission, target registrations, and a credential broker that never returns secret values. Calibrate audit-core shaped probes in-process. Send no packets and request no live credentials. Assistant: grok Assistant-Session: 01a02670-3345-76f2-a014-70fde8e2a2bb
This commit is contained in:
parent
0aab0cb4c6
commit
95129d7a35
35 changed files with 1599 additions and 103 deletions
40
plane/network-policy.yaml
Normal file
40
plane/network-policy.yaml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# CONTRACT ONLY. Do not apply from this repository.
|
||||
# Default deny in namespace whitehat; live E2 adds a named egress rule per
|
||||
# registered target. This example names audit-core only as the currently
|
||||
# applicable live E2 target.
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: default-deny
|
||||
namespace: whitehat
|
||||
spec:
|
||||
podSelector: {}
|
||||
policyTypes: ["Ingress", "Egress"]
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: allow-audit-core-e2
|
||||
namespace: whitehat
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
whitehat.security/target: audit-core
|
||||
policyTypes: ["Egress"]
|
||||
egress:
|
||||
- to:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: audit-core
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
- to:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: kube-system
|
||||
ports:
|
||||
- protocol: UDP
|
||||
port: 53
|
||||
- protocol: TCP
|
||||
port: 53
|
||||
Loading…
Add table
Add a link
Reference in a new issue