Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Removes mountds in favour of mounts #330

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ Auditors can also be run individually.
| `hostns` | Finds containers that have HostPID, HostIPC or HostNetwork enabled. | [docs](docs/auditors/hostns.md) |
| `image` | Finds containers which do not use the desired version of an image (via the tag) or use an image without a tag. | [docs](docs/auditors/image.md) |
| `limits` | Finds containers which exceed the specified CPU and memory limits or do not specify any. | [docs](docs/auditors/limits.md) |
| `mountds` | Finds containers that have docker socket mounted. | [docs](docs/auditors/mountds.md) |
| `mounts` | Finds containers that have sensitive host paths mounted. | [docs](docs/auditors/mountds.md) |
| `mounts` | Finds containers that have sensitive host paths mounted. | [docs](docs/auditors/mounts.md) |
| `netpols` | Finds namespaces that do not have a default-deny network policy. | [docs](docs/auditors/netpols.md) |
| `nonroot` | Finds containers running as root. | [docs](docs/auditors/nonroot.md) |
| `privesc` | Finds containers that allow privilege escalation. | [docs](docs/auditors/privesc.md) |
Expand Down Expand Up @@ -247,7 +246,7 @@ enabledAuditors:
hostns: true
image: true
limits: true
mountds: true
mounts: true
netpols: true
nonroot: true
privesc: true
Expand Down
4 changes: 0 additions & 4 deletions auditors/all/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/Shopify/kubeaudit/auditors/hostns"
"github.com/Shopify/kubeaudit/auditors/image"
"github.com/Shopify/kubeaudit/auditors/limits"
"github.com/Shopify/kubeaudit/auditors/mountds"
"github.com/Shopify/kubeaudit/auditors/mounts"
"github.com/Shopify/kubeaudit/auditors/netpols"
"github.com/Shopify/kubeaudit/auditors/nonroot"
Expand All @@ -32,7 +31,6 @@ var AuditorNames = []string{
image.Name,
limits.Name,
mounts.Name,
mountds.Name,
netpols.Name,
nonroot.Name,
privesc.Name,
Expand Down Expand Up @@ -75,8 +73,6 @@ func initAuditor(name string, conf config.KubeauditConfig) (kubeaudit.Auditable,
return limits.New(conf.GetAuditorConfigs().Limits)
case mounts.Name:
return mounts.New(conf.GetAuditorConfigs().Mounts), nil
case mountds.Name:
return mountds.New(), nil
case netpols.Name:
return netpols.New(), nil
case nonroot.Name:
Expand Down
16 changes: 0 additions & 16 deletions auditors/mountds/fixtures/docker-sock-mounted.yml

This file was deleted.

69 changes: 0 additions & 69 deletions auditors/mountds/mountds.go

This file was deleted.

27 changes: 0 additions & 27 deletions auditors/mountds/mountds_test.go

This file was deleted.

22 changes: 0 additions & 22 deletions cmd/commands/mountds.go

This file was deleted.

1 change: 0 additions & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ enabledAuditors:
hostns: true
image: true
limits: true
mountds: true
mounts: true
netpols: true
nonroot: true
Expand Down
60 changes: 0 additions & 60 deletions docs/auditors/mountds.md

This file was deleted.