Skip to content

Commit

Permalink
remove pem file from sensitive file extensions (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoyamachi authored Sep 14, 2021
1 parent 4e1ad0d commit a80c45b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion pkg/assessor/credential/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ func (a CredentialAssessor) RequiredExtensions() []string {
return []string{
".key",
".secret",
".pem",
".p12",
".pkcs12",
".pfx",
Expand Down
1 change: 0 additions & 1 deletion pkg/scanner/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (

func TestScanImage(t *testing.T) {
log.InitLogger(false, false)
AddAcceptanceExtensions([]string{"pem"})
testcases := map[string]struct {
imageName string
fileName string
Expand Down
2 changes: 1 addition & 1 deletion pkg/types/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var TitleMap = map[string]string{
UseAptGetUpdateNoCache: "Do not use update instructions alone in the Dockerfile",
CheckSuidGuid: "Confirm safety of setuid/setgid files",
UseCOPY: "Use COPY instead of ADD in Dockerfile",
AvoidCredential: "Do not store credential in ENVIRONMENT vars/files",
AvoidCredential: "Do not store credential in environment variables/files",
AvoidSudo: "Avoid sudo command",
AvoidSensitiveDirectoryMounting: "Avoid sensitive directory mounting",
AvoidDistUpgrade: `Avoid "apt-get dist-upgrade"`,
Expand Down

0 comments on commit a80c45b

Please sign in to comment.