sentry
sentry copied to clipboard
[AoB] Harden sandbox service
Service accepts only inbound traffic, all outbound traffic is blocked.
- [ ] Test out network policy on kubernetes for disallowing egress traffc
- [ ] Apply it to our cluster
Contacted northflank support for this, since it seems that it is not supported currently
There is a way to do it by applying network policies: https://kubernetes.io/docs/concepts/services-networking/network-policies/#default-deny-all-egress-traffic
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-egress
namespace: default
spec:
podSelector:
matchLabels:
app: sandbox
nfObjectSlug: sandbox
nfProjectSlug: advent-of-bugs
policyTypes:
- Egress