Skip to content

Commit

Permalink
Remove deprecated mountds auditor (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
genevieveluyt committed Jul 27, 2021
1 parent 863e367 commit ca64457
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 200 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,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` | DEPRECATED. Use `mounts` instead. | [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
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.

62 changes: 0 additions & 62 deletions docs/auditors/mountds.md

This file was deleted.

2 changes: 0 additions & 2 deletions printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ func (p *Printer) PrintReport(report *Report) {
}

func (p *Printer) prettyPrintReport(report *Report) {
p.printColor(color.RedColor, "\nDEPRECATION NOTICE: The 'mountds' command is deprecated and will stop working in a future minor release. Please use the 'mounts' command instead. If you use 'all' no change is required.\n\n")

if len(report.ResultsWithMinSeverity(p.minSeverity)) < 1 {
p.printColor(color.GreenColor, "All checks completed. 0 high-risk vulnerabilities found\n")
return
Expand Down

0 comments on commit ca64457

Please sign in to comment.