llm-wiki wiki · sources 2026-06-14

原文:raw/security-profiles-operator-architecture-analysis.md · 仓库:https://github.com/kubernetes-sigs/security-profiles-operator · 优先级 P1

一句话定位

Security Profiles Operator 管理 seccomp/AppArmor/SELinux profiles,并可通过 recording 把运行时行为转成可部署 profile。

核心架构图

┌────────────────────────────────────────────────────────────────────────────┐
│ Runtime security policy intent                                             │
│ Platform teams define seccomp, AppArmor, SELinux, or recording behavior.   │
└────────────────────────────────────────────────────────────────────────────┘
                                       │
                                       ▼
┌────────────────────────────────────────────────────────────────────────────┐
│ Security Profiles Operator APIs                                            │
│ Profiles, bindings, recordings, and status are represented as Kubernetes   │
│ objects.                                                                   │
└────────────────────────────────────────────────────────────────────────────┘
                                       │
                                       ▼
┌────────────────────────────────────────────────────────────────────────────┐
│ Controller and node delivery                                               │
│ Profiles are generated or installed on nodes and attached to workloads.    │
└────────────────────────────────────────────────────────────────────────────┘
                                       │
                                       ▼
┌────────────────────────────────────────────────────────────────────────────┐
│ Runtime boundary                                                           │
│ kubelet and container runtime enforce workload security profiles.          │
└────────────────────────────────────────────────────────────────────────────┘

模块分层

层 / 模块 职责
CRDs SeccompProfile, SelinuxProfile, ProfileRecording
Daemon/controller install profiles on nodes
Recorder capture syscalls/behavior
Admission/profile binding integrations Admission/profile binding integrations

关键数据流

用户声明或录制 profile
        │
        ▼
operator 分发到目标节点
        │
        ▼
Pod runtime 引用 profile
        │
        ▼
内核/runtime enforcement
        │
        ▼
状态和失败原因回写

设计决策与哲学