Skip to content

Commit

Permalink
Merge pull request #2 from nikpivkin/rename-module
Browse files Browse the repository at this point in the history
chore: rename module to trivy-policies
  • Loading branch information
simar7 authored Sep 18, 2023
2 parents 0f6e136 + 8116dcd commit ef2642c
Show file tree
Hide file tree
Showing 342 changed files with 444 additions and 444 deletions.
6 changes: 3 additions & 3 deletions cmd/avd_generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

"github.com/aquasecurity/defsec/pkg/framework"

_ "github.com/simar7/trivy-misconf-rules/pkg/rego"
registered "github.com/simar7/trivy-misconf-rules/pkg/rules"
"github.com/simar7/trivy-misconf-rules/pkg/types"
_ "github.com/simar7/trivy-policies/pkg/rego"
registered "github.com/simar7/trivy-policies/pkg/rules"
"github.com/simar7/trivy-policies/pkg/types"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/avd_generator/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/aquasecurity/defsec/pkg/framework"
registered "github.com/simar7/trivy-misconf-rules/pkg/rules"
registered "github.com/simar7/trivy-policies/pkg/rules"
)

func init() { // change the pwd for the test to top level defesc dir
Expand Down
4 changes: 2 additions & 2 deletions cmd/id/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/aquasecurity/defsec/pkg/framework"

_ "github.com/simar7/trivy-misconf-rules/pkg/rego"
"github.com/simar7/trivy-misconf-rules/pkg/rules"
_ "github.com/simar7/trivy-policies/pkg/rego"
"github.com/simar7/trivy-policies/pkg/rules"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/schema/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/spf13/cobra"

"github.com/simar7/trivy-misconf-rules/pkg/rego/schemas"
"github.com/simar7/trivy-policies/pkg/rego/schemas"
)

// generate a json schema document for cloud rego input (state.State)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/simar7/trivy-misconf-rules
module github.com/simar7/trivy-policies

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions internal/rules/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
dftypes "github.com/aquasecurity/defsec/pkg/types"

"github.com/simar7/trivy-misconf-rules/pkg/types"
"github.com/simar7/trivy-misconf-rules/rules/specs"
"github.com/simar7/trivy-policies/pkg/types"
"github.com/simar7/trivy-policies/rules/specs"
)

type registry struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/rego/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"

"github.com/open-policy-agent/opa/ast"
"github.com/simar7/trivy-misconf-rules/internal/rules"
rules2 "github.com/simar7/trivy-misconf-rules/rules"
"github.com/simar7/trivy-policies/internal/rules"
rules2 "github.com/simar7/trivy-policies/rules"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/rego/embed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

"github.com/open-policy-agent/opa/ast"
"github.com/simar7/trivy-misconf-rules/internal/rules"
rules2 "github.com/simar7/trivy-misconf-rules/rules"
"github.com/simar7/trivy-policies/internal/rules"
rules2 "github.com/simar7/trivy-policies/rules"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/rego/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package rego
import (
"context"
"fmt"
"github.com/simar7/trivy-misconf-rules/internal/rego"
"github.com/simar7/trivy-policies/internal/rego"
"io"
"io/fs"
"path/filepath"
Expand Down
2 changes: 1 addition & 1 deletion pkg/rego/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"github.com/open-policy-agent/opa/ast"
"github.com/open-policy-agent/opa/rego"
"github.com/open-policy-agent/opa/storage"
"github.com/simar7/trivy-misconf-rules/pkg/rego/schemas"
"github.com/simar7/trivy-policies/pkg/rego/schemas"
)

var _ options.ConfigurableScanner = (*Scanner)(nil)
Expand Down
2 changes: 1 addition & 1 deletion pkg/rego/schemas/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/pkg/rego/convert"
"github.com/simar7/trivy-policies/pkg/rego/convert"
)

type RawSchema struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/rules/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package rules
import (
"github.com/aquasecurity/defsec/pkg/framework"
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-misconf-rules/pkg/types"
"github.com/simar7/trivy-policies/internal/rules"
"github.com/simar7/trivy-policies/pkg/types"
)

func Register(rule scan.Rule, f scan.CheckFunc) types.RegisteredRule {
Expand Down
142 changes: 71 additions & 71 deletions pkg/rules/rules.go
Original file line number Diff line number Diff line change
@@ -1,75 +1,75 @@
package rules

import (
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/accessanalyzer"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/apigateway"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/athena"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/cloudfront"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/cloudtrail"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/cloudwatch"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/codebuild"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/config"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/documentdb"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/dynamodb"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/ec2"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/ecr"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/ecs"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/efs"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/eks"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/elasticache"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/elasticsearch"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/elb"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/emr"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/iam"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/kinesis"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/kms"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/lambda"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/mq"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/msk"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/neptune"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/rds"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/redshift"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/s3"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/sam"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/sns"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/sqs"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/ssm"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/aws/workspaces"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/appservice"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/authorization"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/compute"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/container"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/database"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/datafactory"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/datalake"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/keyvault"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/monitor"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/network"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/securitycenter"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/storage"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/azure/synapse"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/cloudstack/compute"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/digitalocean/compute"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/digitalocean/spaces"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/github/actions"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/github/branch_protections"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/github/repositories"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/google/bigquery"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/google/compute"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/google/dns"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/google/gke"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/google/iam"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/google/kms"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/google/sql"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/google/storage"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/nifcloud/computing"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/nifcloud/dns"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/nifcloud/nas"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/nifcloud/network"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/nifcloud/rdb"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/nifcloud/sslcertificate"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/openstack/compute"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/openstack/networking"
_ "github.com/simar7/trivy-misconf-rules/rules/cloud/policies/oracle/compute"
_ "github.com/simar7/trivy-misconf-rules/rules/kubernetes/network"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/accessanalyzer"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/apigateway"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/athena"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/cloudfront"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/cloudtrail"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/cloudwatch"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/codebuild"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/config"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/documentdb"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/dynamodb"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/ec2"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/ecr"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/ecs"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/efs"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/eks"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/elasticache"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/elasticsearch"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/elb"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/emr"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/iam"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/kinesis"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/kms"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/lambda"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/mq"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/msk"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/neptune"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/rds"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/redshift"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/s3"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/sam"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/sns"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/sqs"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/ssm"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/aws/workspaces"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/appservice"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/authorization"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/container"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/database"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/datafactory"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/datalake"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/keyvault"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/monitor"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/network"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/securitycenter"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/storage"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/azure/synapse"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/cloudstack/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/digitalocean/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/digitalocean/spaces"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/github/actions"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/github/branch_protections"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/github/repositories"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/bigquery"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/dns"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/gke"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/iam"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/kms"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/sql"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/google/storage"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/computing"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/dns"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/nas"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/network"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/rdb"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/nifcloud/sslcertificate"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/openstack/compute"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/openstack/networking"
_ "github.com/simar7/trivy-policies/rules/cloud/policies/oracle/compute"
_ "github.com/simar7/trivy-policies/rules/kubernetes/network"
)
2 changes: 1 addition & 1 deletion pkg/spec/spec.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package spec

import (
"github.com/simar7/trivy-misconf-rules/rules/specs"
"github.com/simar7/trivy-policies/rules/specs"
)

// Loader access compliance specs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
defsecTypes "github.com/aquasecurity/defsec/pkg/types"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckEnableAccessAnalyzer = rules.Register(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckEnableAccessLogging = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/apigateway/enable_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckEnableCache = rules.Register(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckEnableCacheEncryption = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/apigateway/enable_tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckEnableTracing = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/apigateway/no_public_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckNoPublicAccess = rules.Register(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckUseSecureTlsPolicy = rules.Register(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckEnableAtRestEncryption = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/athena/no_encryption_override.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckNoEncryptionOverride = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/cloudfront/enable_logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckEnableLogging = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/cloudfront/enable_waf.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckEnableWaf = rules.Register(
Expand Down
2 changes: 1 addition & 1 deletion rules/cloud/policies/aws/cloudfront/enforce_https.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckEnforceHttps = rules.Register(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/aquasecurity/defsec/pkg/scan"
"github.com/aquasecurity/defsec/pkg/severity"
"github.com/aquasecurity/defsec/pkg/state"
"github.com/simar7/trivy-misconf-rules/internal/rules"
"github.com/simar7/trivy-policies/internal/rules"
)

var CheckUseSecureTlsPolicy = rules.Register(
Expand Down
Loading

0 comments on commit ef2642c

Please sign in to comment.