-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: TRG 4.07: Read-Only Filesystem (DRAFT) #414
Merged
Merged
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d271315
This is a TRG docs addition as announced by the consortia security te…
SSIRKC f4d8d31
Update trg-4-07.md
SSIRKC 72306f7
Update trg-4-07.md
SSIRKC 38af541
Update trg-4-07.md
SSIRKC aafb990
Update trg-4-07.md
SSIRKC 009b95f
Update trg-4-07.md
SSIRKC ce46127
Update and rename trg-4-07.md to trg-4-7.md
SSIRKC 507cb46
Update and rename trg-4-7.md to trg-4-07.md
SSIRKC 25ffc11
Update trg-4-07.md
SSIRKC 50b946a
Apply suggestions from code review
SSIRKC 543c511
Update trg-4-07.md
SSIRKC b4f2932
Update trg-4-07.md
SSIRKC f6125e2
Update trg-4-07.md
SSIRKC 62b9dc2
Update trg-4-07.md
SSIRKC 6b92bad
Update trg-4-07.md
SSIRKC b22bec9
Update trg-4-07.md
SSIRKC 9ca3b40
Update docs/release/trg-0/trg-4-07.md
SSIRKC 8126f09
Update docs/release/trg-0/trg-4-07.md
SSIRKC 5108f97
Update trg-4-07.md
SSIRKC e3ec298
Update trg-4-07.md
SSIRKC File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: TRG 4.07 - Read-only filesystems | ||
--- | ||
|
||
:::caution | ||
Proposed release date: "mandatory after": 19th of May 2023 | ||
::: | ||
|
||
| Status | Created | Post-History | | ||
|------------|--------------|----------------------------------------| | ||
| Draft | 03-Octo-2023 | Initial contribution | | ||
|
||
## Why | ||
|
||
A read-only root filesystem helps to limit the impact of a compromised container on a Kubernetes node. It is recommended to utilize read-only filesystems when possible. This prevents a malicious process or application from writing back to the host system. Read-only filesystems are a key component to preventing container breakout. | ||
|
||
## Description | ||
|
||
Whether this container has a read-only root filesystem. Default is false. | ||
|
||
### Implementation | ||
|
||
The container's **Pod resource file (yaml)** has to be modified to set rights to read-only. | ||
|
||
Mounts the container's root filesystem as read-only: | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: read-only-fs | ||
spec: | ||
containers: | ||
|
||
securityContext: | ||
#read-only fs explicitly defined | ||
readOnlyRootFilesystem: true | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description should explain potentially more than just a read-only filesystem. like implications, best practices (what to do with log files, what to do in other cases)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the input! I will add to that