Skip to content

Commit

Permalink
Fix compliance issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Aug 8, 2023
1 parent b969951 commit 2f7595f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ To access through the Nullstone CLI, use `nullstone logs` CLI command. (See [`lo

Nullstone automatically injects secrets into your GKE Service through environment variables.
(They are stored in GCP Secrets Manager and injected by Kubernetes during launch.)

## File system

The root file system is configured to be read-only to prevent an attacker from making permanent local changes and prevents binaries from being written to the local filesystem.
To create a persistent file system, add a `Datastore` to attach volumes or object storage.
4 changes: 3 additions & 1 deletion deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ resource "kubernetes_deployment_v1" "this" {
args = local.command

security_context {
read_only_root_filesystem = true

capabilities {
drop = ["NET_RAW"]
drop = ["ALL"]
}
}

Expand Down

0 comments on commit 2f7595f

Please sign in to comment.