CRD API Reference
API Reference
security.rancher.io/v1alpha1
Package v1alpha1 contains API Schema definitions for the security v1alpha1 API group.
NodeIssue
NodeIssue represents an issue with a node.
| Field | Description | Default | Validation |
|---|---|---|---|
|
code is the issue code. |
||
|
message is a human-readable description of the issue. |
Phase
Underlying type: string
Phase represents the current phase of the workload policy. Possible values are: - "Transitioning": the policy is in the process of changing its enforcement mode. - "Failed": the policy deployment has failed. - "Ready": the policy is ready and actively enforced.
ViolationRecord
ViolationRecord holds the details of a single policy violation.
| Field | Description | Default | Validation |
|---|---|---|---|
|
timestamp is when the violation occurred. |
||
|
podName is the name of the pod where the violation occurred. |
||
|
containerName is the container where the unauthorized executable ran. |
||
|
executablePath is the path of the unauthorized executable. |
||
|
nodeName is the node where the violation occurred. |
||
|
action is the enforcement action taken (monitor or protect). |
WorkloadPolicy
WorkloadPolicy is the Schema for the workloadpolicies API.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
|||
|
WorkloadPolicyExecutables
| Field | Description | Default | Validation |
|---|---|---|---|
|
allowed defines a list of executables that are allowed to run |
items:Pattern: ^/.*$ |
WorkloadPolicyList
WorkloadPolicyList contains a list of WorkloadPolicy.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
WorkloadPolicyProposal
WorkloadPolicyProposal is the Schema for the workloadpolicyproposals API.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
WorkloadPolicyProposalList
WorkloadPolicyProposalList contains a list of WorkloadPolicyProposal.
| Field | Description | Default | Validation |
|---|---|---|---|
|
|
||
|
|
||
|
Refer to Kubernetes API documentation for fields of |
||
|
WorkloadPolicyProposalSpec
WorkloadPolicyProposalSpec defines the desired state of WorkloadPolicyProposal.
| Field | Description | Default | Validation |
|---|---|---|---|
|
rulesByContainer specifies for each container the list of rules to apply. |
WorkloadPolicyRules
| Field | Description | Default | Validation |
|---|---|---|---|
|
executables defines a security policy for executables. |
WorkloadPolicySpec
| Field | Description | Default | Validation |
|---|---|---|---|
|
mode defines the execution mode of this policy. Can be set to |
Enum: [monitor protect] |
|
|
rulesByContainer specifies for each container the list of rules to apply. |
WorkloadPolicyStatus
| Field | Description | Default | Validation |
|---|---|---|---|
|
|||
|
nodesWithIssues contains the status of each node with issues. |
||
|
totalNodes is the total number of nodes the policy is applied to. |
||
|
successfulNodes is the number of nodes where the policy is successfully enforced. |
||
|
failedNodes is the number of nodes where the policy enforcement failed. |
||
|
transitioningNodes is the number of nodes where the policy is transitioning mode. |
||
|
nodesTransitioning contains the names of the nodes that are transitioning. |
||
|
phase indicates the current phase of the workload policy. |
||
|
violationCount is the total number of violation records, Note: This value is maintained by the reconciler and reflects |
||
|
violations is the list of the most recent violation records (max MaxViolationRecords). |