Expanded solutions (10 new industries) and products (Compliance & Data section) to cover full docs.lux.financial capability surface.
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
---
|
|
###############################################################################
|
|
# NetworkPolicy: Validator Pod Isolation (lux-mainnet)
|
|
#
|
|
# Restricts ingress to luxd validator pods:
|
|
# - Port 9631 (staking P2P): open to all — required for consensus
|
|
# - Port 9650 (HTTP API): only from api-gateway and peer validators
|
|
# - Port 9630 (gRPC): only from api-gateway and peer validators
|
|
#
|
|
# This prevents direct API access from arbitrary pods or external sources,
|
|
# ensuring all HTTP/gRPC traffic flows through the authenticated gateway.
|
|
###############################################################################
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: luxd-validator-isolation
|
|
namespace: lux-mainnet
|
|
labels:
|
|
app: luxd
|
|
component: security
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app: luxd
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
# Staking P2P — must be reachable from the public internet
|
|
- ports:
|
|
- port: 9631
|
|
protocol: TCP
|
|
# HTTP API and gRPC — restricted to gateway and peer validators
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
app: api-gateway
|
|
- podSelector:
|
|
matchLabels:
|
|
app: luxd
|
|
ports:
|
|
- port: 9650
|
|
protocol: TCP
|
|
- port: 9630
|
|
protocol: TCP
|