Skip to content

Commit

Permalink
chore(checks): deprecate some checks
Browse files Browse the repository at this point in the history
Signed-off-by: Nikita Pivkin <[email protected]>
  • Loading branch information
nikpivkin committed Aug 27, 2024
1 parent fba5276 commit 05be048
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion checks/cloud/aws/iam/no_policy_wildcards.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ var CheckNoPolicyWildcards = rules.Register(
Links: cloudFormationNoPolicyWildcardsLinks,
RemediationMarkdown: cloudFormationNoPolicyWildcardsRemediationMarkdown,
},
Severity: severity.High,
Severity: severity.High,
Deprecated: true,
},
func(s *state.State) (results scan.Results) {
for _, policy := range s.AWS.IAM.Policies {
Expand Down
3 changes: 2 additions & 1 deletion checks/cloud/aws/iam/require_support_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ IAM Policy to allow Support Center Access in order to manage Incidents with AWS
Links: []string{
"https://console.aws.amazon.com/iam/",
},
Severity: severity.Low,
Severity: severity.Low,
Deprecated: true,
},
func(s *state.State) (results scan.Results) {

Expand Down
3 changes: 2 additions & 1 deletion checks/cloud/aws/sam/no_function_policy_wildcards.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ var CheckNoFunctionPolicyWildcards = rules.Register(
Links: cloudFormationNoFunctionPolicyWildcardsLinks,
RemediationMarkdown: cloudFormationNoFunctionPolicyWildcardsRemediationMarkdown,
},
Severity: severity.High,
Severity: severity.High,
Deprecated: true,
},
func(s *state.State) (results scan.Results) {

Expand Down
3 changes: 2 additions & 1 deletion checks/cloud/aws/sam/no_state_machine_policy_wildcards.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ var CheckNoStateMachinePolicyWildcards = rules.Register(
Links: cloudFormationNoStateMachinePolicyWildcardsLinks,
RemediationMarkdown: cloudFormationNoStateMachinePolicyWildcardsRemediationMarkdown,
},
Severity: severity.High,
Severity: severity.High,
Deprecated: true,
},
func(s *state.State) (results scan.Results) {

Expand Down
3 changes: 2 additions & 1 deletion checks/cloud/aws/ssm/avoid_leaks_via_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ var AvoidLeaksViaHTTP = rules.Register(
},
},
},
Severity: severity.Critical,
Severity: severity.Critical,
Deprecated: true,
},
nil,
)

0 comments on commit 05be048

Please sign in to comment.