Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions controls/C-0312/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ spec:
- ate.dev
apiVersions:
- v1alpha1
- v1
operations:
- CREATE
- UPDATE
Expand Down
1 change: 1 addition & 0 deletions controls/C-0313/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
- ate.dev
apiVersions:
- v1alpha1
- v1
operations:
- CREATE
- UPDATE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A tag such as `:latest` or `:v1` can be moved to point at a different image at a
## Resources this policy could be applied to:
* Sandbox (`agents.x-k8s.io/v1beta1`)
* SandboxTemplate (`extensions.agents.x-k8s.io/v1beta1`)
* WorkerPool (`ate.dev/v1alpha1`)
* WorkerPool (`ate.dev/v1alpha1` and `ate.dev/v1`)

## What does this policy do:
This Policy requires image references that end in `@sha256:` followed by exactly 64 lowercase hexadecimal characters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Images pulled from an arbitrary registry may not have gone through your scanning
## Resources this policy could be applied to:
* Sandbox (`agents.x-k8s.io/v1beta1`)
* SandboxTemplate (`extensions.agents.x-k8s.io/v1beta1`)
* WorkerPool (`ate.dev/v1alpha1`)
* WorkerPool (`ate.dev/v1alpha1` and `ate.dev/v1`)

## What does this policy do:
This Policy checks that each image comes from a registry in the `imageRepositoryAllowList` parameter:
Expand Down
9 changes: 6 additions & 3 deletions docs/validating-admission-policies/agent-runtime-posture.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

These policies validate fields on Agent Sandbox `Sandbox` and `SandboxTemplate`
resources using the `v1beta1` APIs served by Agent Sandbox v1.0 and later. They
also validate Agent Substrate `WorkerPool` resources, which continue to use the
separate `ate.dev/v1alpha1` API. The control IDs match the
also validate Agent Substrate `WorkerPool` resources from the separate `ate.dev`
API, at both `v1alpha1` (Substrate up to v0.6.0) and `v1` (Substrate v1.0.0 and
later). The control IDs match the
AgentRuntimeHardening framework in regolibrary:

| Control | Admission evidence |
Expand Down Expand Up @@ -37,7 +38,9 @@ default while allowing public internet. It does not establish a strict egress
allowlist. Omitted or null management uses the API default.

The WorkerPool field was verified against
[WorkerPoolSpec](https://github.com/agent-substrate/substrate/blob/a9c1bd389403af59520e419d3884d447cf40edd2/pkg/api/v1alpha1/workerpool_types.go).
[WorkerPoolSpec at v1.0.1](https://github.com/agent-substrate/substrate/blob/20778a6dbb01f13024642851bb592bf67c9fec05/api/infra/k8s/ate/v1/workerpool_types.go)
(`ate.dev/v1`). `spec.workerImage` is the same in `v1alpha1` from Substrate v0.1.0
on (v0.0.0 called it `spec.ateomImage`).
ActorTemplate is an [ATE protobuf resource](https://github.com/agent-substrate/substrate/blob/a9c1bd389403af59520e419d3884d447cf40edd2/pkg/proto/ateapipb/ateapi.proto),
not a Kubernetes CRD, so it is not targeted by these policies or represented by
an invented test CRD. Actor checks require a supported scanner integration first.
Expand Down
2 changes: 1 addition & 1 deletion test-resources/agent-sandbox-test-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
singular: workerpool
kind: WorkerPool
versions:
- name: v1alpha1
- name: v1
served: true
storage: true
schema:
Expand Down
2 changes: 1 addition & 1 deletion test-resources/agent-worker-pool.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: ate.dev/v1alpha1
apiVersion: ate.dev/v1
kind: WorkerPool
metadata:
name: test-worker-pool
Expand Down
Loading