mirror of
https://github.com/SHOGGOTH-SECTOR/sica-fondt.git
synced 2026-08-01 08:30:20 +00:00
Place useful parts of the surrounding repos into sica-fondt by layer, per the
body model (Ada = membrane; brain/endocrine/capabilities/knowledge non-Ada):
- brain/ LLM reasoning + providers (dapr, hermes, MoMoA)
- capabilities/ REPRAG sidecars: hermes tools/skills, dapr tools, parallel
dispatch, A51 channels, and the OSINT cluster
- knowledge/ LORAG corpus: 754 cyber-skills, agency personas, secure-coding,
MITRE ATT&CK data
- reference/ defensive threat-reference (C3, shhbruh doc) + AdaYaml parser
License handling: AGPL sources (worldosint, advanced_evolution, mercury,
Reticulum) and GPL DeTTECT are SPEC-only clean-room/port descriptions — no
copyleft code copied. MIT/Apache/data parts copied as working trees.
Safety: shhbruh escape/persistence material and C3 covert-C2 kept as reference
only, not wired into the running organism. See CONSOLIDATION.md.
https://claude.ai/code/session_01UehUqEXXJJCsHoA4voCU5c
65 lines
1.4 KiB
Markdown
65 lines
1.4 KiB
Markdown
# API Reference: Implementing Kubernetes Network Policy with Calico
|
|
|
|
## Kubernetes NetworkPolicy
|
|
|
|
```yaml
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: default-deny-all
|
|
namespace: production
|
|
spec:
|
|
podSelector: {}
|
|
policyTypes: [Ingress, Egress]
|
|
```
|
|
|
|
## Calico GlobalNetworkPolicy
|
|
|
|
```yaml
|
|
apiVersion: projectcalico.org/v3
|
|
kind: GlobalNetworkPolicy
|
|
metadata:
|
|
name: deny-external
|
|
spec:
|
|
order: 100
|
|
selector: app == "backend"
|
|
types: [Ingress]
|
|
ingress:
|
|
- action: Deny
|
|
source:
|
|
nets: ["0.0.0.0/0"]
|
|
```
|
|
|
|
## calicoctl CLI
|
|
|
|
```bash
|
|
# Apply policy
|
|
calicoctl apply -f policy.yaml
|
|
# Get policies
|
|
calicoctl get globalnetworkpolicy -o yaml
|
|
# Get host endpoints
|
|
calicoctl get hostendpoint
|
|
```
|
|
|
|
## Policy Types
|
|
|
|
| Type | Scope | Ordering |
|
|
|------|-------|----------|
|
|
| NetworkPolicy | Namespace | Additive (OR) |
|
|
| GlobalNetworkPolicy | Cluster-wide | Ordered by `order` field |
|
|
|
|
## Common Policy Patterns
|
|
|
|
| Pattern | Description |
|
|
|---------|-------------|
|
|
| Default deny | Empty podSelector, no rules |
|
|
| Allow DNS | Egress to kube-system UDP/TCP 53 |
|
|
| Allow ingress from namespace | namespaceSelector match |
|
|
| Allow to external CIDR | ipBlock in egress |
|
|
|
|
### References
|
|
|
|
- Calico Docs: https://docs.tigera.io/calico/
|
|
- K8s NetworkPolicy: https://kubernetes.io/docs/concepts/services-networking/network-policies/
|
|
- Calico Policy Tutorial: https://docs.tigera.io/calico/latest/network-policy/
|