Files
nexus/wiki/concepts/Read-Only-Root-Filesystem.md
2026-04-19 16:02:56 +08:00

22 lines
712 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Read Only Root Filesystem"
type: concept
tags: [Container, Security, Kubernetes]
last_updated: 2026-04-19
---
## 定义
只读根文件系统Read-Only Root Filesystem是一种容器安全配置将容器的根文件系统设置为只读状态防止未授权的文件创建和修改。
## 实现方式
在 Kubernetes 中通过设置 `readOnlyRootFilesystem: true` 实现。
## 安全价值
- 防止恶意攻击者写入恶意文件
- 保护系统目录不被篡改
- 限制容器内恶意软件的活动范围
- 符合不可变基础设施最佳实践
## 相关资源
- 来源:[[CTP Topic 49 Container Lifecycle Hardening Standards]]
- 相关概念:[[Container-Lifecycle-Hardening]]