Skip to main content

K8s pods

Kubernetes pods is the combined-pod-list collection for this CID — ReadPodCombined. The path is GET /container-security/combined/pods/v1. Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet). This is not Kubernetes clusters (/kubernetes-protection/entities/kubernetes/clusters/v1): Kubernetes. This is not Kubernetes Helm values (/kubernetes-protection/entities/integration/agent/v1): K8s helm. This is not Kubernetes nodes (/container-security/combined/nodes/v1): K8s nodes. This is not Kubernetes containers (/container-security/combined/containers/v1): K8s containers. This is not Kubernetes deployments (/container-security/combined/deployments/v1): K8s deployments. This is not the HelloService template sample (GET /api/hello).

This collection is not CrowdStrike production. It does not call Falcon cloud. It is not CrowdStrike Falcon Container Image cloud.

RPC field notes: ContainerImagesService. REST schemas: API reference. Filter syntax: FQL. Kubernetes pods does use FQL (unlike Kubernetes clusters and Helm).

These curls use Host: crowdstrike-api.localhost against Compose Traefik on :8088. If the hostname already resolves to Traefik, you can omit the Host header and call http://crowdstrike-api.localhost instead.

Auth​

Every call needs a console session or a Bearer token:

  • Cookie cs_console from CreateSession (POST /identity/entities/sessions/v1)
  • Authorization: Bearer with falcon-container-image:read

A session cookie bypasses OAuth scopes. Seed client cs-local-hosts (hosts:read only) cannot list pods (403) — it is missing falcon-container-image:read. Unit tests use a client named cs-local-cimg with falcon-container-image:read; that client can list combined pods. It is not in the production seed. Use the console cookie, or a client you created with that scope. Missing or revoked token → 401. This RPC does not use kubernetes-protection:read.

HTTP paths​

MethodPathUse
GET/container-security/combined/pods/v1List combined pods. Query: filter, limit, offset.

Empty filter returns every pod in this CID. Allowed FQL properties: cluster_name, pod_name, namespace, pod_id. Unknown property or invalid filter → 400. limit and offset must be ≥ 0 else 400. Omitted limit defaults to 100 (capped at 200). Default sort is pod_id.asc.

JSON is DESIGN snake_case: pod_id, pod_name, namespace, cluster_name, cid.

This is not Kubernetes clusters, Kubernetes Helm values, Kubernetes nodes, Kubernetes containers, Kubernetes deployments, or the HelloService template. Kubernetes clusters uses /kubernetes-protection/entities/kubernetes/clusters/v1: Kubernetes. Kubernetes Helm values uses /kubernetes-protection/entities/integration/agent/v1: K8s helm. Kubernetes nodes uses /container-security/combined/nodes/v1: K8s nodes. Kubernetes containers uses /container-security/combined/containers/v1: K8s containers. Kubernetes deployments uses /container-security/combined/deployments/v1: K8s deployments. Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet).

Seed pods​

pod_idpod_namenamespacecluster_name
pod-lab-1apidefaultlab-eks-1
pod-lab-2workerkube-systemlab-aks-1

cid is cid-local-1. Empty filters return both. filter=cluster_name:'lab-eks-1' returns pod-lab-1.

curl -sS -c cookies.txt -H 'Host: crowdstrike-api.localhost' \
-H 'Content-Type: application/json' \
-d '{"email":"[email protected]","password":"FalconLocal!1","cloud":"us-1"}' \
http://127.0.0.1:8088/identity/entities/sessions/v1

Empty filters return at least the two seed ids, including pod-lab-1:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/container-security/combined/pods/v1'

filter=cluster_name:'lab-eks-1' returns pod-lab-1:

curl -sS -H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/container-security/combined/pods/v1?filter=cluster_name:%27lab-eks-1%27'

Unknown FQL property is 400:

curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' -b cookies.txt \
'http://127.0.0.1:8088/container-security/combined/pods/v1?filter=bogus:%27x%27'

No cookie and no Bearer is 401:

curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
'http://127.0.0.1:8088/container-security/combined/pods/v1'

cs-local-hosts (hosts:read only, missing falcon-container-image:read) is 403:

TOKEN='<access_token from cs-local-hosts>'
curl -sS -o /dev/null -w '%{http_code}\n' \
-H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/container-security/combined/pods/v1'

Remaining Kubernetes Protection mutations / Image assessment policies / remaining cloud are not implemented (not yet). Kubernetes clusters is a separate collection: Kubernetes. K8s helm is a separate collection: K8s helm. K8s nodes is a separate collection: K8s nodes. K8s containers is a separate collection: K8s containers. K8s deployments is a separate collection: K8s deployments. This is not the HelloService template (GET /api/hello).

List (Bearer)​

TOKEN='<access_token from a client with falcon-container-image:read>'
curl -sS -H 'Host: crowdstrike-api.localhost' \
-H "Authorization: Bearer ${TOKEN}" \
'http://127.0.0.1:8088/container-security/combined/pods/v1'

falcon-container-image:read → 200 (including unit-test client cs-local-cimg). A token without that scope (including hosts:read only, e.g. cs-local-hosts) → 403. Missing or revoked token → 401. This RPC does not use kubernetes-protection:read.

OAuth2 mint/revoke: OAuth2. Accessible scopes: API clients.