diff --git a/Dockerfile b/Dockerfile
index 7d706f8..076be67 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM golang:1.21.3 AS build
+FROM golang:1.21.1 AS build
WORKDIR /go/src/github.com/khulnasoft-lab/kube-bench/
COPY makefile makefile
COPY go.mod go.sum ./
diff --git a/Dockerfile.fips.ubi b/Dockerfile.fips.ubi
index 33e95c7..ff77ef5 100644
--- a/Dockerfile.fips.ubi
+++ b/Dockerfile.fips.ubi
@@ -1,4 +1,4 @@
-FROM golang:1.21.3 AS build
+FROM golang:1.21.1 AS build
WORKDIR /go/src/github.com/khulnasoft-lab/kube-bench/
COPY makefile makefile
COPY go.mod go.sum ./
diff --git a/Dockerfile.ubi b/Dockerfile.ubi
index b33a057..9331370 100644
--- a/Dockerfile.ubi
+++ b/Dockerfile.ubi
@@ -1,4 +1,4 @@
-FROM golang:1.21.3 AS build
+FROM golang:1.21.1 AS build
WORKDIR /go/src/github.com/khulnasoft-lab/kube-bench/
COPY makefile makefile
COPY go.mod go.sum ./
diff --git a/OWNERS b/OWNERS
index 4e4f6af..fc15ef6 100644
--- a/OWNERS
+++ b/OWNERS
@@ -1,4 +1,3 @@
approvers:
- sulaiman-coder
- gitworkflows
- - nxpkg
diff --git a/README.md b/README.md
index 09edbe2..5780bbb 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,3 @@
-[![GitHub Release][release-img]][release]
[![Downloads][download]][release]
[![Docker Pulls][docker-pull]][docker]
[![Go Report Card][report-card-img]][report-card]
@@ -16,7 +15,6 @@
[report-card-img]: https://goreportcard.com/badge/github.com/khulnasoft-lab/kube-bench
[report-card]: https://goreportcard.com/report/github.com/khulnasoft-lab/kube-bench
-
kube-bench is a tool that checks whether Kubernetes is deployed securely by running the checks documented in the [CIS Kubernetes Benchmark](https://www.cisecurity.org/benchmark/kubernetes/).
@@ -24,12 +22,7 @@ Tests are configured with YAML files, making this tool easy to update as test sp
![Kubernetes Bench for Security](/docs/images/output.png "Kubernetes Bench for Security")
-## CIS Scanning as part of Vul and the Vul Operator
-
-[Vul](https://github.com/khulnasoft-lab/vul), the all in one cloud native security scanner, can be deployed as a [Kubernetes Operator](https://github.com/khulnasoft-lab/vul-operator) inside a cluster.
-Both, the [Vul CLI](https://github.com/khulnasoft-lab/vul), and the [Vul Operator](https://github.com/khulnasoft-lab/vul-operator) support CIS Kubernetes Benchmark scanning among several other features.
-
-## Quick start
+### Quick start
There are multiple ways to run kube-bench.
You can run kube-bench inside a pod, but it will need access to the host's PID namespace in order to check the running processes, as well as access to some directories on the host where config files and other files are stored.
diff --git a/check/check.go b/check/check.go
index bc00f7b..ab52f06 100644
--- a/check/check.go
+++ b/check/check.go
@@ -310,4 +310,4 @@ func runAudit(audit string) (output string, err error) {
glog.V(3).Infof("Output:\n %q", output)
}
return output, err
-}
\ No newline at end of file
+}
diff --git a/check/controls.go b/check/controls.go
index 7051ae8..7725f56 100644
--- a/check/controls.go
+++ b/check/controls.go
@@ -33,7 +33,7 @@ const (
// UNKNOWN is when the AWS account can't be found
UNKNOWN = "Unknown"
// ARN for the AWS Security Hub service
- ARN = "arn:aws:securityhub:%s::product/aqua-security/kube-bench"
+ ARN = "arn:aws:securityhub:%s::product/khulnasoft-security/kube-bench"
// SCHEMA for the AWS Security Hub service
SCHEMA = "2018-10-08"
// TYPE is type of Security Hub finding
@@ -237,7 +237,7 @@ func (controls *Controls) ASFF() ([]types.AwsSecurityFinding, error) {
actualValue = check.ActualValue[0:1023]
}
- // Fix issue https://github.com/aquasecurity/kube-bench/issues/903
+ // Fix issue https://github.com/khulnasoft-lab/kube-bench/issues/903
if len(check.Remediation) > 512 {
remediation = check.Remediation[0:511]
}
@@ -327,4 +327,4 @@ func summarizeGroup(group *Group, state State) {
default:
glog.Warningf("Unrecognized state %s", state)
}
-}
\ No newline at end of file
+}
diff --git a/check/controls_test.go b/check/controls_test.go
index 5e492c8..8df0563 100644
--- a/check/controls_test.go
+++ b/check/controls_test.go
@@ -15,231 +15,451 @@
package check
import (
- "strings"
+ "bytes"
+ "encoding/json"
+ "encoding/xml"
+ "fmt"
+ "io/ioutil"
+ "os"
+ "path/filepath"
+ "reflect"
"testing"
+
+ "github.com/aws/aws-sdk-go-v2/aws"
+ "github.com/aws/aws-sdk-go-v2/service/securityhub/types"
+ "github.com/onsi/ginkgo/reporters"
+ "github.com/spf13/viper"
+ "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/mock"
+ "gopkg.in/yaml.v2"
)
-func TestCheck_Run(t *testing.T) {
- type TestCase struct {
- name string
- check Check
- Expected State
- }
+const cfgDir = "../cfg/"
- testCases := []TestCase{
- {name: "Manual check should WARN", check: Check{Type: MANUAL}, Expected: WARN},
- {name: "Skip check should INFO", check: Check{Type: "skip"}, Expected: INFO},
- {name: "Unscored check (with no type) should WARN on failure", check: Check{Scored: false}, Expected: WARN},
- {
- name: "Unscored check that pass should PASS",
- check: Check{
- Scored: false,
- Audit: "echo hello",
- Tests: &tests{TestItems: []*testItem{{
- Flag: "hello",
- Set: true,
- }}},
- },
- Expected: PASS,
- },
+type mockRunner struct {
+ mock.Mock
+}
- {name: "Check with no tests should WARN", check: Check{Scored: true}, Expected: WARN},
- {name: "Scored check with empty tests should FAIL", check: Check{Scored: true, Tests: &tests{}}, Expected: FAIL},
- {
- name: "Scored check that doesn't pass should FAIL",
- check: Check{
- Scored: true,
- Audit: "echo hello",
- Tests: &tests{TestItems: []*testItem{{
- Flag: "hello",
- Set: false,
- }}},
- },
- Expected: FAIL,
- },
- {
- name: "Scored checks that pass should PASS",
- check: Check{
- Scored: true,
- Audit: "echo hello",
- Tests: &tests{TestItems: []*testItem{{
- Flag: "hello",
- Set: true,
- }}},
- },
- Expected: PASS,
- },
- {
- name: "Scored checks that pass should PASS when config file is not present",
- check: Check{
- Scored: true,
- Audit: "echo hello",
- AuditConfig: "/test/config.yaml",
- Tests: &tests{TestItems: []*testItem{{
- Flag: "hello",
- Set: true,
- }}},
- },
- Expected: PASS,
- },
- {
- name: "Scored checks that pass should FAIL when config file is not present",
- check: Check{
- Scored: true,
- AuditConfig: "/test/config.yaml",
- Tests: &tests{TestItems: []*testItem{{
- Flag: "hello",
- Set: true,
- }}},
- },
- Expected: FAIL,
- },
- }
+func (m *mockRunner) Run(c *Check) State {
+ args := m.Called(c)
+ return args.Get(0).(State)
+}
- for _, testCase := range testCases {
- t.Run(testCase.name, func(t *testing.T) {
- testCase.check.run()
- if testCase.check.State != testCase.Expected {
- t.Errorf("expected %s, actual %s", testCase.Expected, testCase.check.State)
+// validate that the files we're shipping are valid YAML
+func TestYamlFiles(t *testing.T) {
+ err := filepath.Walk(cfgDir, func(path string, info os.FileInfo, err error) error {
+ if err != nil {
+ t.Fatalf("failure accessing path %q: %v\n", path, err)
+ }
+ if !info.IsDir() {
+ t.Logf("reading file: %s", path)
+ in, err := ioutil.ReadFile(path)
+ if err != nil {
+ t.Fatalf("error opening file %s: %v", path, err)
}
- })
+
+ c := new(Controls)
+ err = yaml.Unmarshal(in, c)
+ if err == nil {
+ t.Logf("YAML file successfully unmarshalled: %s", path)
+ } else {
+ t.Fatalf("failed to load YAML from %s: %v", path, err)
+ }
+ }
+ return nil
+ })
+ if err != nil {
+ t.Fatalf("failure walking cfg dir: %v\n", err)
}
}
-func TestCheckAuditEnv(t *testing.T) {
- passingCases := []*Check{
- controls.Groups[2].Checks[0],
- controls.Groups[2].Checks[2],
- controls.Groups[2].Checks[3],
- controls.Groups[2].Checks[4],
- }
+func TestNewControls(t *testing.T) {
+ t.Run("Should return error when node type is not specified", func(t *testing.T) {
+ // given
+ in := []byte(`
+---
+controls:
+type: # not specified
+groups:
+`)
+ // when
+ _, err := NewControls(MASTER, in, "")
+ // then
+ assert.EqualError(t, err, "non-master controls file specified")
+ })
- failingCases := []*Check{
- controls.Groups[2].Checks[1],
- controls.Groups[2].Checks[5],
- controls.Groups[2].Checks[6],
- }
+ t.Run("Should return error when input YAML is invalid", func(t *testing.T) {
+ // given
+ in := []byte("BOOM")
+ // when
+ _, err := NewControls(MASTER, in, "")
+ // then
+ assert.EqualError(t, err, "failed to unmarshal YAML: yaml: unmarshal errors:\n line 1: cannot unmarshal !!str `BOOM` into check.Controls")
+ })
- for _, c := range passingCases {
- t.Run(c.Text, func(t *testing.T) {
- c.run()
- if c.State != "PASS" {
- t.Errorf("Should PASS, got: %v", c.State)
- }
- })
- }
+}
- for _, c := range failingCases {
- t.Run(c.Text, func(t *testing.T) {
- c.run()
- if c.State != "FAIL" {
- t.Errorf("Should FAIL, got: %v", c.State)
- }
- })
- }
+func TestControls_RunChecks_SkippedCmd(t *testing.T) {
+ t.Run("Should skip checks and groups specified by skipMap", func(t *testing.T) {
+ // given
+ normalRunner := &defaultRunner{}
+ // and
+ in := []byte(`
+---
+type: "master"
+groups:
+- id: G1
+ checks:
+ - id: G1/C1
+ - id: G1/C2
+ - id: G1/C3
+- id: G2
+ checks:
+ - id: G2/C1
+ - id: G2/C2
+`)
+ controls, err := NewControls(MASTER, in, "")
+ assert.NoError(t, err)
+
+ var allChecks Predicate = func(group *Group, c *Check) bool {
+ return true
+ }
+
+ skipMap := make(map[string]bool, 0)
+ skipMap["G1"] = true
+ skipMap["G2/C1"] = true
+ skipMap["G2/C2"] = true
+ controls.RunChecks(normalRunner, allChecks, skipMap)
+
+ G1 := controls.Groups[0]
+ assertEqualGroupSummary(t, 0, 0, 3, 0, G1)
+
+ G2 := controls.Groups[1]
+ assertEqualGroupSummary(t, 0, 0, 2, 0, G2)
+ })
}
-func TestCheckAuditConfig(t *testing.T) {
- passingCases := []*Check{
- controls.Groups[1].Checks[0],
- controls.Groups[1].Checks[3],
- controls.Groups[1].Checks[5],
- controls.Groups[1].Checks[7],
- controls.Groups[1].Checks[9],
- controls.Groups[1].Checks[15],
- }
+func TestControls_RunChecks_Skipped(t *testing.T) {
+ t.Run("Should skip checks where the parent group is marked as skip", func(t *testing.T) {
+ // given
+ normalRunner := &defaultRunner{}
+ // and
+ in := []byte(`
+---
+type: "master"
+groups:
+- id: G1
+ type: skip
+ checks:
+ - id: G1/C1
+`)
+ controls, err := NewControls(MASTER, in, "")
+ assert.NoError(t, err)
- failingCases := []*Check{
- controls.Groups[1].Checks[1],
- controls.Groups[1].Checks[2],
- controls.Groups[1].Checks[4],
- controls.Groups[1].Checks[6],
- controls.Groups[1].Checks[8],
- controls.Groups[1].Checks[10],
- controls.Groups[1].Checks[11],
- controls.Groups[1].Checks[12],
- controls.Groups[1].Checks[13],
- controls.Groups[1].Checks[14],
- controls.Groups[1].Checks[16],
+ var allChecks Predicate = func(group *Group, c *Check) bool {
+ return true
+ }
+ emptySkipList := make(map[string]bool, 0)
+ controls.RunChecks(normalRunner, allChecks, emptySkipList)
+
+ G1 := controls.Groups[0]
+ assertEqualGroupSummary(t, 0, 0, 1, 0, G1)
+ })
+}
+
+func TestControls_RunChecks(t *testing.T) {
+ t.Run("Should run checks matching the filter and update summaries", func(t *testing.T) {
+ // given
+ runner := new(mockRunner)
+ // and
+ in := []byte(`
+---
+type: "master"
+groups:
+- id: G1
+ checks:
+ - id: G1/C1
+- id: G2
+ checks:
+ - id: G2/C1
+ text: "Verify that the SomeSampleFlag argument is set to true"
+ audit: "grep -B1 SomeSampleFlag=true /this/is/a/file/path"
+ tests:
+ test_items:
+ - flag: "SomeSampleFlag=true"
+ compare:
+ op: has
+ value: "true"
+ set: true
+ remediation: |
+ Edit the config file /this/is/a/file/path and set SomeSampleFlag to true.
+ scored: true
+`)
+ // and
+ controls, err := NewControls(MASTER, in, "")
+ assert.NoError(t, err)
+ // and
+ runner.On("Run", controls.Groups[0].Checks[0]).Return(PASS)
+ runner.On("Run", controls.Groups[1].Checks[0]).Return(FAIL)
+ // and
+ var runAll Predicate = func(group *Group, c *Check) bool {
+ return true
+ }
+ var emptySkipList = make(map[string]bool, 0)
+ // when
+ controls.RunChecks(runner, runAll, emptySkipList)
+ // then
+ assert.Equal(t, 2, len(controls.Groups))
+ // and
+ G1 := controls.Groups[0]
+ assert.Equal(t, "G1", G1.ID)
+ assert.Equal(t, "G1/C1", G1.Checks[0].ID)
+ assertEqualGroupSummary(t, 1, 0, 0, 0, G1)
+ // and
+ G2 := controls.Groups[1]
+ assert.Equal(t, "G2", G2.ID)
+ assert.Equal(t, "G2/C1", G2.Checks[0].ID)
+ assert.Equal(t, "has", G2.Checks[0].Tests.TestItems[0].Compare.Op)
+ assert.Equal(t, "true", G2.Checks[0].Tests.TestItems[0].Compare.Value)
+ assert.Equal(t, true, G2.Checks[0].Tests.TestItems[0].Set)
+ assert.Equal(t, "SomeSampleFlag=true", G2.Checks[0].Tests.TestItems[0].Flag)
+ assert.Equal(t, "Edit the config file /this/is/a/file/path and set SomeSampleFlag to true.\n", G2.Checks[0].Remediation)
+ assert.Equal(t, true, G2.Checks[0].Scored)
+ assertEqualGroupSummary(t, 0, 1, 0, 0, G2)
+ // and
+ assert.Equal(t, 1, controls.Summary.Pass)
+ assert.Equal(t, 1, controls.Summary.Fail)
+ assert.Equal(t, 0, controls.Summary.Info)
+ assert.Equal(t, 0, controls.Summary.Warn)
+ // and
+ runner.AssertExpectations(t)
+ })
+}
+
+func TestControls_JUnitIncludesJSON(t *testing.T) {
+ testCases := []struct {
+ desc string
+ input *Controls
+ expect []byte
+ }{
+ {
+ desc: "Serializes to junit",
+ input: &Controls{
+ Groups: []*Group{
+ {
+ ID: "g1",
+ Checks: []*Check{
+ {ID: "check1id", Text: "check1text", State: PASS},
+ },
+ },
+ },
+ },
+ expect: []byte(`
+
+ {"test_number":"check1id","test_desc":"check1text","audit":"","AuditEnv":"","AuditConfig":"","type":"","remediation":"","test_info":null,"status":"PASS","actual_value":"","scored":false,"IsMultiple":false,"expected_result":""}
+
+`),
+ }, {
+ desc: "Summary values come from summary not checks",
+ input: &Controls{
+ Summary: Summary{
+ Fail: 99,
+ Pass: 100,
+ Warn: 101,
+ Info: 102,
+ },
+ Groups: []*Group{
+ {
+ ID: "g1",
+ Checks: []*Check{
+ {ID: "check1id", Text: "check1text", State: PASS},
+ },
+ },
+ },
+ },
+ expect: []byte(`
+
+ {"test_number":"check1id","test_desc":"check1text","audit":"","AuditEnv":"","AuditConfig":"","type":"","remediation":"","test_info":null,"status":"PASS","actual_value":"","scored":false,"IsMultiple":false,"expected_result":""}
+
+`),
+ }, {
+ desc: "Warn and Info are considered skips and failed tests properly reported",
+ input: &Controls{
+ Groups: []*Group{
+ {
+ ID: "g1",
+ Checks: []*Check{
+ {ID: "check1id", Text: "check1text", State: PASS},
+ {ID: "check2id", Text: "check2text", State: INFO},
+ {ID: "check3id", Text: "check3text", State: WARN},
+ {ID: "check4id", Text: "check4text", State: FAIL},
+ },
+ },
+ },
+ },
+ expect: []byte(`
+
+ {"test_number":"check1id","test_desc":"check1text","audit":"","AuditEnv":"","AuditConfig":"","type":"","remediation":"","test_info":null,"status":"PASS","actual_value":"","scored":false,"IsMultiple":false,"expected_result":""}
+
+
+
+ {"test_number":"check2id","test_desc":"check2text","audit":"","AuditEnv":"","AuditConfig":"","type":"","remediation":"","test_info":null,"status":"INFO","actual_value":"","scored":false,"IsMultiple":false,"expected_result":""}
+
+
+
+ {"test_number":"check3id","test_desc":"check3text","audit":"","AuditEnv":"","AuditConfig":"","type":"","remediation":"","test_info":null,"status":"WARN","actual_value":"","scored":false,"IsMultiple":false,"expected_result":""}
+
+
+
+ {"test_number":"check4id","test_desc":"check4text","audit":"","AuditEnv":"","AuditConfig":"","type":"","remediation":"","test_info":null,"status":"FAIL","actual_value":"","scored":false,"IsMultiple":false,"expected_result":""}
+
+`),
+ },
}
+ for _, tc := range testCases {
+ t.Run(tc.desc, func(t *testing.T) {
+ junitBytes, err := tc.input.JUnit()
+ if err != nil {
+ t.Fatalf("Failed to serialize to JUnit: %v", err)
+ }
- for _, c := range passingCases {
- t.Run(c.Text, func(t *testing.T) {
- c.run()
- if c.State != "PASS" {
- t.Errorf("Should PASS, got: %v", c.State)
+ var out reporters.JUnitTestSuite
+ if err := xml.Unmarshal(junitBytes, &out); err != nil {
+ t.Fatalf("Unable to deserialize from resulting JUnit: %v", err)
}
- })
- }
- for _, c := range failingCases {
- t.Run(c.Text, func(t *testing.T) {
- c.run()
- if c.State != "FAIL" {
- t.Errorf("Should FAIL, got: %v", c.State)
+ // Check that each check was serialized as json and stored as systemOut.
+ for iGroup, group := range tc.input.Groups {
+ for iCheck, check := range group.Checks {
+ jsonBytes, err := json.Marshal(check)
+ if err != nil {
+ t.Fatalf("Failed to serialize to JUnit: %v", err)
+ }
+
+ if out.TestCases[iGroup*iCheck+iCheck].SystemOut != string(jsonBytes) {
+ t.Errorf("Expected\n\t%v\n\tbut got\n\t%v",
+ out.TestCases[iGroup*iCheck+iCheck].SystemOut,
+ string(jsonBytes),
+ )
+ }
+ }
+ }
+
+ if !bytes.Equal(junitBytes, tc.expect) {
+ t.Errorf("Expected\n\t%v\n\tbut got\n\t%v",
+ string(tc.expect),
+ string(junitBytes),
+ )
}
})
}
}
-func Test_runAudit(t *testing.T) {
- type args struct {
- audit string
- output string
+func assertEqualGroupSummary(t *testing.T, pass, fail, info, warn int, actual *Group) {
+ t.Helper()
+ assert.Equal(t, pass, actual.Pass)
+ assert.Equal(t, fail, actual.Fail)
+ assert.Equal(t, info, actual.Info)
+ assert.Equal(t, warn, actual.Warn)
+}
+
+func TestControls_ASFF(t *testing.T) {
+ type fields struct {
+ ID string
+ Version string
+ Text string
+ Groups []*Group
+ Summary Summary
}
tests := []struct {
- name string
- args args
- errMsg string
- output string
+ name string
+ fields fields
+ want []types.AwsSecurityFinding
+ wantErr bool
}{
{
- name: "run success",
- args: args{
- audit: "echo 'hello world'",
+ name: "Test simple conversion",
+ fields: fields{
+ ID: "test1",
+ Version: "1",
+ Text: "test runnner",
+ Summary: Summary{
+ Fail: 99,
+ Pass: 100,
+ Warn: 101,
+ Info: 102,
+ },
+ Groups: []*Group{
+ {
+ ID: "g1",
+ Text: "Group text",
+ Checks: []*Check{
+ {ID: "check1id",
+ Text: "check1text",
+ State: FAIL,
+ Remediation: "fix me",
+ Reason: "failed",
+ ExpectedResult: "failed",
+ ActualValue: "failed",
+ },
+ },
+ },
+ }},
+ want: []types.AwsSecurityFinding{
+ {
+ AwsAccountId: aws.String("foo account"),
+ Confidence: *aws.Int32(100),
+ GeneratorId: aws.String(fmt.Sprintf("%s/cis-kubernetes-benchmark/%s/%s", fmt.Sprintf(ARN, "somewhere"), "1", "check1id")),
+ Description: aws.String("check1text"),
+ ProductArn: aws.String(fmt.Sprintf(ARN, "somewhere")),
+ SchemaVersion: aws.String(SCHEMA),
+ Title: aws.String(fmt.Sprintf("%s %s", "check1id", "check1text")),
+ Types: []string{*aws.String(TYPE)},
+ Severity: &types.Severity{
+ Label: types.SeverityLabelHigh,
+ },
+ Remediation: &types.Remediation{
+ Recommendation: &types.Recommendation{
+ Text: aws.String("fix me"),
+ },
+ },
+ ProductFields: map[string]string{
+ "Reason": "failed",
+ "Actual result": "failed",
+ "Expected result": "failed",
+ "Section": fmt.Sprintf("%s %s", "test1", "test runnner"),
+ "Subsection": fmt.Sprintf("%s %s", "g1", "Group text"),
+ },
+ Resources: []types.Resource{
+ {
+ Id: aws.String("foo Cluster"),
+ Type: aws.String(TYPE),
+ },
+ },
+ },
},
- errMsg: "",
- output: "hello world\n",
- },
- {
- name: "run multiple lines script",
- args: args{
- audit: `
-hello() {
- echo "hello world"
-}
-
-hello
-`,
- },
- errMsg: "",
- output: "hello world\n",
- },
- {
- name: "run failed",
- args: args{
- audit: "unknown_command",
- },
- errMsg: "failed to run: \"unknown_command\", output: \"/bin/sh: ",
- output: "not found\n",
+ wantErr: false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
- var errMsg string
- output, err := runAudit(tt.args.audit)
- if err != nil {
- errMsg = err.Error()
- }
- if errMsg != "" && !strings.Contains(errMsg, tt.errMsg) {
- t.Errorf("name %s errMsg = %q, want %q", tt.name, errMsg, tt.errMsg)
+ viper.Set("AWS_ACCOUNT", "foo account")
+ viper.Set("CLUSTER_ARN", "foo Cluster")
+ viper.Set("AWS_REGION", "somewhere")
+ controls := &Controls{
+ ID: tt.fields.ID,
+ Version: tt.fields.Version,
+ Text: tt.fields.Text,
+ Groups: tt.fields.Groups,
+ Summary: tt.fields.Summary,
}
- if errMsg == "" && output != tt.output {
- t.Errorf("name %s output = %q, want %q", tt.name, output, tt.output)
- }
- if errMsg != "" && !strings.Contains(output, tt.output) {
- t.Errorf("name %s output = %q, want %q", tt.name, output, tt.output)
+ got, _ := controls.ASFF()
+ tt.want[0].CreatedAt = got[0].CreatedAt
+ tt.want[0].UpdatedAt = got[0].UpdatedAt
+ tt.want[0].Id = got[0].Id
+ if !reflect.DeepEqual(got, tt.want) {
+ t.Errorf("Controls.ASFF() = %v, want %v", got, tt.want)
}
})
}
-}
\ No newline at end of file
+}
diff --git a/check/data b/check/data
index 6a3f116..fa3c2fe 100644
--- a/check/data
+++ b/check/data
@@ -733,4 +733,4 @@ groups:
op: eq
value: "correct"
set: true
- scored: true
\ No newline at end of file
+ scored: true
diff --git a/check/test.go b/check/test.go
index 6c777d4..44ba464 100644
--- a/check/test.go
+++ b/check/test.go
@@ -443,4 +443,4 @@ func (t *testItem) UnmarshalYAML(unmarshal func(interface{}) error) error {
}
*t = testItem(newTestItem)
return nil
-}
\ No newline at end of file
+}
diff --git a/check/test_test.go b/check/test_test.go
index 5ab61bf..7bbb721 100644
--- a/check/test_test.go
+++ b/check/test_test.go
@@ -1405,4 +1405,4 @@ func TestExecuteJSONPathOnEncryptionConfig(t *testing.T) {
}
})
}
-}
\ No newline at end of file
+}
diff --git a/cmd/common.go b/cmd/common.go
index d07de39..54623b9 100644
--- a/cmd/common.go
+++ b/cmd/common.go
@@ -25,8 +25,8 @@ import (
"strconv"
"strings"
- "github.com/khulnasoft-lab/kube-bench/check"
"github.com/golang/glog"
+ "github.com/khulnasoft-lab/kube-bench/check"
"github.com/spf13/viper"
)
diff --git a/cmd/root.go b/cmd/root.go
index 704d729..7ba8b8d 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -19,8 +19,8 @@ import (
"fmt"
"os"
- "github.com/khulnasoft-lab/kube-bench/check"
"github.com/golang/glog"
+ "github.com/khulnasoft-lab/kube-bench/check"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
diff --git a/go.mod b/go.mod
index fb0e951..96371d8 100644
--- a/go.mod
+++ b/go.mod
@@ -3,41 +3,41 @@ module github.com/khulnasoft-lab/kube-bench
go 1.19
require (
- github.com/aws/aws-sdk-go-v2 v1.22.2
+ github.com/aws/aws-sdk-go-v2 v1.18.0
github.com/aws/aws-sdk-go-v2/config v1.18.4
- github.com/aws/aws-sdk-go-v2/service/securityhub v1.40.1
- github.com/fatih/color v1.14.1
+ github.com/aws/aws-sdk-go-v2/service/securityhub v1.29.1
+ github.com/fatih/color v1.15.0
github.com/golang/glog v1.1.2
github.com/magiconair/properties v1.8.7
github.com/onsi/ginkgo v1.16.5
github.com/pkg/errors v0.9.1
- github.com/spf13/cobra v1.6.1
+ github.com/spf13/cobra v1.7.0
github.com/spf13/viper v1.14.0
- github.com/stretchr/testify v1.8.1
+ github.com/stretchr/testify v1.8.2
gopkg.in/yaml.v2 v2.4.0
- gorm.io/driver/postgres v1.4.6
+ gorm.io/driver/postgres v1.5.2
gorm.io/gorm v1.25.1
- k8s.io/client-go v0.26.0
+ k8s.io/client-go v0.28.2
)
require (
github.com/aws/aws-sdk-go-v2/credentials v1.13.4 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.20 // indirect
- github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.2 // indirect
- github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.2 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.30 // indirect
+ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.24 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.27 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.20 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.11.26 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.13.9 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.17.6 // indirect
- github.com/aws/smithy-go v1.16.0 // indirect
+ github.com/aws/smithy-go v1.13.5 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
- github.com/inconshreveable/mousetrap v1.0.1 // indirect
+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
- github.com/jackc/pgx/v5 v5.2.0 // indirect
+ github.com/jackc/pgx/v5 v5.3.1 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
@@ -52,9 +52,9 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
- golang.org/x/crypto v0.4.0 // indirect
- golang.org/x/sys v0.3.0 // indirect
- golang.org/x/text v0.5.0 // indirect
+ golang.org/x/crypto v0.8.0 // indirect
+ golang.org/x/sys v0.10.0 // indirect
+ golang.org/x/text v0.11.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
diff --git a/go.sum b/go.sum
index 56e7d13..e1ce0d9 100644
--- a/go.sum
+++ b/go.sum
@@ -39,8 +39,9 @@ dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/aws/aws-sdk-go-v2 v1.17.2/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw=
-github.com/aws/aws-sdk-go-v2 v1.22.2 h1:lV0U8fnhAnPz8YcdmZVV60+tr6CakHzqA6P8T46ExJI=
-github.com/aws/aws-sdk-go-v2 v1.22.2/go.mod h1:Kd0OJtkW3Q0M0lUWGszapWjEvrXDzRW+D21JNsroB+c=
+github.com/aws/aws-sdk-go-v2 v1.17.6/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw=
+github.com/aws/aws-sdk-go-v2 v1.18.0 h1:882kkTpSFhdgYRKVZ/VCgf7sd0ru57p2JCxz4/oN5RY=
+github.com/aws/aws-sdk-go-v2 v1.18.0/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw=
github.com/aws/aws-sdk-go-v2/config v1.18.4 h1:VZKhr3uAADXHStS/Gf9xSYVmmaluTUfkc0dcbPiDsKE=
github.com/aws/aws-sdk-go-v2/config v1.18.4/go.mod h1:EZxMPLSdGAZ3eAmkqXfYbRppZJTzFTkv8VyEzJhKko4=
github.com/aws/aws-sdk-go-v2/credentials v1.13.4 h1:nEbHIyJy7mCvQ/kzGG7VWHSBpRB4H6sJy3bWierWUtg=
@@ -48,26 +49,25 @@ github.com/aws/aws-sdk-go-v2/credentials v1.13.4/go.mod h1:/Cj5w9LRsNTLSwexsohwD
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.20 h1:tpNOglTZ8kg9T38NpcGBxudqfUAwUzyUnLQ4XSd0CHE=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.20/go.mod h1:d9xFpWd3qYwdIXM0fvu7deD08vvdRXyc/ueV+0SqaWE=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.26/go.mod h1:2E0LdbJW6lbeU4uxjum99GZzI0ZjDpAb0CoSCM0oeEY=
-github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.2 h1:AaQsr5vvGR7rmeSWBtTCcw16tT9r51mWijuCQhzLnq8=
-github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.2/go.mod h1:o1IiRn7CWocIFTXJjGKJDOwxv1ibL53NpcvcqGWyRBA=
+github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.30 h1:y+8n9AGDjikyXoMBTRaHHHSaFEB8267ykmvyPodJfys=
+github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.30/go.mod h1:LUBAO3zNXQjoONBKn/kR1y0Q4cj/D02Ts0uHYjcCQLM=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.20/go.mod h1:/+6lSiby8TBFpTVXZgKiN/rCfkYXEGvhlM4zCgPpt7w=
-github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.2 h1:UZx8SXZ0YtzRiALzYAWcjb9Y9hZUR7MBKaBQ5ouOjPs=
-github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.2/go.mod h1:ipuRpcSaklmxR6C39G187TpBAO132gUfleTGccUPs8c=
+github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.24 h1:r+Kv+SEJquhAZXaJ7G4u44cIwXV3f8K+N482NNAzJZA=
+github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.24/go.mod h1:gAuCezX/gob6BSMbItsSlMb6WZGV7K2+fWOvk8xBSto=
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.27 h1:N2eKFw2S+JWRCtTt0IhIX7uoGGQciD4p6ba+SJv4WEU=
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.27/go.mod h1:RdwFVc7PBYWY33fa2+8T1mSqQ7ZEK4ILpM0wfioDC3w=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.20 h1:jlgyHbkZQAgAc7VIxJDmtouH8eNjOk2REVAQfVhdaiQ=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.20/go.mod h1:Xs52xaLBqDEKRcAfX/hgjmD3YQ7c/W+BEyfamlO/W2E=
-github.com/aws/aws-sdk-go-v2/service/securityhub v1.40.1 h1:YlUxQXLT+Lvx9gnY2Ep828I7YnqOVmOjZsPTEqAJ6x0=
-github.com/aws/aws-sdk-go-v2/service/securityhub v1.40.1/go.mod h1:Z40gX0iusTRfu8tOfHNxyyku1TLHJFWESquuoIl8uZ0=
+github.com/aws/aws-sdk-go-v2/service/securityhub v1.29.1 h1:+lpa31bGPPvgpZwUJ4ldKRCsPukzJ0PqoO5AQ9S79oQ=
+github.com/aws/aws-sdk-go-v2/service/securityhub v1.29.1/go.mod h1:vKGWzDG4Ytw3hgv/FvNy0HX/XEoJ6k/e7KAANzXWP8Y=
github.com/aws/aws-sdk-go-v2/service/sso v1.11.26 h1:ActQgdTNQej/RuUJjB9uxYVLDOvRGtUreXF8L3c8wyg=
github.com/aws/aws-sdk-go-v2/service/sso v1.11.26/go.mod h1:uB9tV79ULEZUXc6Ob18A46KSQ0JDlrplPni9XW6Ot60=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.13.9 h1:wihKuqYUlA2T/Rx+yu2s6NDAns8B9DgnRooB1PVhY+Q=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.13.9/go.mod h1:2E/3D/mB8/r2J7nK42daoKP/ooCwbf0q1PznNc+DZTU=
github.com/aws/aws-sdk-go-v2/service/sts v1.17.6 h1:VQFOLQVL3BrKM/NLO/7FiS4vcp5bqK0mGMyk09xLoAY=
github.com/aws/aws-sdk-go-v2/service/sts v1.17.6/go.mod h1:Az3OXXYGyfNwQNsK/31L4R75qFYnO641RZGAoV3uH1c=
+github.com/aws/smithy-go v1.13.5 h1:hgz0X/DX0dGqTYpGALqXJoRKRj5oQ7150i5FdTePzO8=
github.com/aws/smithy-go v1.13.5/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA=
-github.com/aws/smithy-go v1.16.0 h1:gJZEH/Fqh+RsvlJ1Zt4tVAtV6bKkp3cC+R6FCZMNzik=
-github.com/aws/smithy-go v1.16.0/go.mod h1:NukqUGpCZIILqqiV0NIjeFh24kd/FAa4beRb6nbIUPE=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
@@ -77,7 +77,6 @@ github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGX
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
-github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -87,8 +86,8 @@ github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1m
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
-github.com/fatih/color v1.14.1 h1:qfhVLaG5s+nCROl1zJsZRxFeYrHLqWroPOQ8BWiNb4w=
-github.com/fatih/color v1.14.1/go.mod h1:2oHN61fhTpgcxD3TSWCgKDiH1+x4OiDVVGH8WlgGZGg=
+github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs=
+github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw=
github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
@@ -163,19 +162,16 @@ github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
-github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=
-github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
+github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
+github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
-github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E=
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk=
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
-github.com/jackc/pgx/v5 v5.2.0 h1:NdPpngX0Y6z6XDFKqmFQaE+bCtkqzvQIOt1wvBlAqs8=
-github.com/jackc/pgx/v5 v5.2.0/go.mod h1:Ptn7zmohNsWEsdxRawMzk3gaKma2obW+NWTnKa0S4nk=
-github.com/jackc/puddle/v2 v2.1.2/go.mod h1:2lpufsF5mRHO6SuZkm0fNYxM6SWHfvyFj62KwNzgels=
+github.com/jackc/pgx/v5 v5.3.1 h1:Fcr8QJ1ZeLi5zsPZqQeUZhNhxfkkKBOgJuYkJHoBOtU=
+github.com/jackc/pgx/v5 v5.3.1/go.mod h1:t3JDKnCBlYIc0ewLF0Q7B8MXmoIaBOZj/ic7iHozM/8=
github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E=
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
-github.com/jinzhu/now v1.1.4/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
@@ -185,13 +181,10 @@ github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/X
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
-github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
-github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
-github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
@@ -209,8 +202,8 @@ github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108
github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE=
github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU=
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
-github.com/onsi/gomega v1.10.1 h1:o0+MgICZLuZ7xjH7Vx6zS/zcu93/BEp1VwkIW1mEXCE=
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
+github.com/onsi/gomega v1.27.6 h1:ENqfyGeS5AX/rlXDd/ETokDz93u0YufY1Pgxuy/PvWE=
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
github.com/pelletier/go-toml/v2 v2.0.5 h1:ipoSadvV8oGUjnUbMub59IDPPwfxF694nG/jwbMiyQg=
@@ -223,14 +216,13 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
-github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/afero v1.9.2 h1:j49Hj62F0n+DaZ1dDCvhABaPNSGNkt32oRFxI33IEMw=
github.com/spf13/afero v1.9.2/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y=
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
-github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA=
-github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY=
+github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
+github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=
github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
@@ -248,33 +240,29 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
-github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
-github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
+github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/subosito/gotenv v1.4.1 h1:jyEFiXpy21Wm81FBN71l9VoMMV8H8jG+qIK3GCpY6Qs=
github.com/subosito/gotenv v1.4.1/go.mod h1:ayKnFf/c6rvx/2iiLrJUk1e6plDbT3edrFNGqEflhK0=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
-github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
-go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
-golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
-golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
-golang.org/x/crypto v0.4.0 h1:UVQgzMY87xqpKNgb+kDsll2Igd33HszWHFLmpaRMq/8=
-golang.org/x/crypto v0.4.0/go.mod h1:3quD/ATkf6oY+rnes5c3ExXTbLc8mueNue5/DoinL80=
+golang.org/x/crypto v0.8.0 h1:pd9TJtTueMTVQXzk8E2XESSMQDj/U7OUu0PqJqPXQjQ=
+golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
@@ -308,7 +296,6 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -342,10 +329,7 @@ golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwY
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
-golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
-golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10 h1:Frnccbp+ok2GkUS2tC84yAq/U9Vg+0sIO7aRL3T4Xnc=
+golang.org/x/net v0.13.0 h1:Nvo8UFsZ8X3BhAC9699Z1j7XQ3rsZnUUm7jfBEk1ueY=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -365,8 +349,6 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20220923202941-7f9b1623fab7/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -404,29 +386,21 @@ golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ=
-golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
+golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
-golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
-golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
-golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM=
-golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
+golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4=
+golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@@ -478,12 +452,10 @@ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
-golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk=
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
@@ -575,7 +547,6 @@ google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlba
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
-gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
@@ -591,9 +562,8 @@ gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gorm.io/driver/postgres v1.4.6 h1:1FPESNXqIKG5JmraaH2bfCVlMQ7paLoCreFxDtqzwdc=
-gorm.io/driver/postgres v1.4.6/go.mod h1:UJChCNLFKeBqQRE+HrkFUbKbq9idPXmTOk2u4Wok8S4=
-gorm.io/gorm v1.24.2/go.mod h1:DVrVomtaYTbqs7gB/x2uVvqnXzv0nqjB396B8cG4dBA=
+gorm.io/driver/postgres v1.5.2 h1:ytTDxxEv+MplXOfFe3Lzm7SjG09fcdb3Z/c056DTBx0=
+gorm.io/driver/postgres v1.5.2/go.mod h1:fmpX0m2I1PKuR7mKZiEluwrP3hbs+ps7JIGMUBpCgl8=
gorm.io/gorm v1.25.1 h1:nsSALe5Pr+cM3V1qwwQ7rOkw+6UeLrX5O4v3llhHa64=
gorm.io/gorm v1.25.1/go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k=
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
@@ -603,8 +573,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
-k8s.io/client-go v0.26.0 h1:lT1D3OfO+wIi9UFolCrifbjUUgu7CpLca0AD8ghRLI8=
-k8s.io/client-go v0.26.0/go.mod h1:I2Sh57A79EQsDmn7F7ASpmru1cceh3ocVT9KlX2jEZg=
+k8s.io/client-go v0.28.2 h1:DNoYI1vGq0slMBN/SWKMZMw0Rq+0EQW6/AK4v9+3VeY=
+k8s.io/client-go v0.28.2/go.mod h1:sMkApowspLuc7omj1FOSUxSoqjr+d5Q0Yc0LOFnYFJY=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
diff --git a/internal/findings/publisher.go b/internal/findings/publisher.go
index c7417a6..1847a77 100644
--- a/internal/findings/publisher.go
+++ b/internal/findings/publisher.go
@@ -64,4 +64,4 @@ func (p *Publisher) PublishFinding(finding []types.AwsSecurityFinding) (*Publish
}
}
return &o, errs
-}
\ No newline at end of file
+}
diff --git a/job.yaml b/job.yaml
index 03baa0b..289db42 100644
--- a/job.yaml
+++ b/job.yaml
@@ -11,7 +11,7 @@ spec:
spec:
containers:
- command: ["kube-bench"]
- image: docker.io/khulnasoft/kube-bench:v0.6.19
+ image: docker.io/khulnasoft/kube-bench:v0.6.17
name: kube-bench
volumeMounts:
- mountPath: /var/lib/etcd