Faberby FaberOps

Cilium Hubble Packet Drop Signature

Matches Hubble flows with a DROPPED verdict caused by policy denials, missing routes or conntrack pressure, plus the matching Cilium drop metrics.

Kind
Signature
Version
2.0.0
Tier
verified
Needs Faber
v2.0.0+
Digest prefix
sha256:0c22f4d1

Contract facts

Sources
2
hubble, prometheus
Log patterns
5
RE2, replayed in CI
Kubernetes matchers
0
CEL on live objects
Samples
5 and 3
must match and must not

Inspect it

Inspect the contract and RBAC delta

$ faberctl catalog inspect signatures/cilium-hubble-drops \ --source oci://ghcr.io/faberops/catalog:v2

How it works

  • Sources: hubble, prometheus
  • Log patterns: 5 RE2 expressions, each proven by the samples.match and samples.noMatch lines that catalog CI replays
  • Ready queries: hubble, promql

Use from a Playbook

Reference the pack by name from a connector trigger:

YAML7 lines
triggers:
  - name: signature-hit
    connector:
      connectorType: hubble
      signaturePack: cilium-hubble-drops
      window: 10m
      minMatches: 3

Signatures only describe what to look for. They never grant a Playbook any permission or action.

What it matches

Must match

  • {"verdict":"DROPPED","drop_reason_desc":"POLICY_DENIED"}
  • verdict=DROPPED drop_reason_desc=POLICY_DENIED src=default/web dst=db/postgres:5432
  • xx drop (Policy denied) flow 0x1f to endpoint 1234
  • xx drop (Stale or unroutable IP) flow 0x2a
  • xx drop (CT: Map insertion failed) flow 0x3b

Must not match

  • {"verdict":"FORWARDED","Type":"L3_L4"}
  • verdict=FORWARDED src=default/web dst=db/postgres:5432
  • TCP Flags: SYN, ACK

Signature source

signature.yamlFailureSignature29 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
  name: cilium-hubble-drops
spec:
  description: Matches Hubble flows with a DROPPED verdict caused by policy denials, missing routes or conntrack pressure, plus the matching Cilium drop metrics.
  sources:
    - hubble
    - prometheus
  logPatterns:
    - '\bverdict"?[=: ]+"?DROPPED\b'
    - '(?i)Policy denied'
    - '(?i)Stale or unroutable IP'
    - '(?i)CT: Map insertion failed'
    - 'drop_reason_desc"?[=: ]+"?[A-Z_]+'
  queries:
    hubble: '--verdict DROPPED --type drop'
    promql: 'sum by (reason, direction) (rate(hubble_drop_total[5m])) > 0'
  samples:
    match:
      - '{"verdict":"DROPPED","drop_reason_desc":"POLICY_DENIED"}'
      - 'verdict=DROPPED drop_reason_desc=POLICY_DENIED src=default/web dst=db/postgres:5432'
      - 'xx drop (Policy denied) flow 0x1f to endpoint 1234'
      - 'xx drop (Stale or unroutable IP) flow 0x2a'
      - 'xx drop (CT: Map insertion failed) flow 0x3b'
    noMatch:
      - '{"verdict":"FORWARDED","Type":"L3_L4"}'
      - 'verdict=FORWARDED src=default/web dst=db/postgres:5432'
      - 'TCP Flags: SYN, ACK'
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/cilium-hubble-drops. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
  name: cilium-hubble-drops
  category: signatures
  version: 2.0.0
spec:
  tier: verified
  minFaberVersion: v2.0.0
  digest: sha256:0c22f4d1240c6bee06779b0f35809f83e0da826ba0a548762ee51689038e5dc3

Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.