Skip to content

Commit

Permalink
Polished some messages
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Knight <[email protected]>
  • Loading branch information
eddie-knight committed Oct 31, 2023
1 parent 4f74582 commit d2e1501
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions strikes/Encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ func (a *Strikes) Encryption() (strikeName string, result raidengine.StrikeResul
}

result.Passed = true
result.Message = "Completed Successfully"
result.Message = "Storage encryption is enabled"
return
}

func checkIfStorageIsEncryptedMovement(cfg aws.Config) (result raidengine.MovementResult) {

result = raidengine.MovementResult{
Description: "Check if the instance has storage encryption enabled",
Description: "Check whether the instance has storage encryption enabled",
Function: utils.CallerPath(0),
}

Expand Down
8 changes: 4 additions & 4 deletions strikes/RBAC.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func (a *Strikes) RBAC() (strikeName string, result raidengine.StrikeResult) {
strikeName = "RBAC"
result = raidengine.StrikeResult{
Passed: false,
Description: "Check if database IAM authentication is enabled on the specified RDS instance",
Description: "Check whether primary RDS instance supports RBAC authentication",
DocsURL: "https://www.github.com/krumIO/raid-rds",
ControlID: "CCC-Taxonomy-1",
Movements: make(map[string]raidengine.MovementResult),
Expand All @@ -36,20 +36,19 @@ func (a *Strikes) RBAC() (strikeName string, result raidengine.StrikeResult) {

iamDatabaseAuthMovement := checkForIAMDatabaseAuthMovement(cfg)
result.Movements["CheckForIAMDatabaseAuth"] = iamDatabaseAuthMovement
result.Message = iamDatabaseAuthMovement.Message
if !iamDatabaseAuthMovement.Passed {
result.Message = iamDatabaseAuthMovement.Message
return
}

result.Passed = true
result.Message = "Completed Successfully"
return
}

func checkForIAMDatabaseAuthMovement(cfg aws.Config) (result raidengine.MovementResult) {

result = raidengine.MovementResult{
Description: "Check if the instance has IAM Database Authentication enabled",
Description: "Check whether the instance has IAM Database Authentication enabled",
Function: utils.CallerPath(0),
}

Expand All @@ -71,5 +70,6 @@ func checkForIAMDatabaseAuthMovement(cfg aws.Config) (result raidengine.Movement

// Loop through the instances and print information
result.Passed = true
result.Message = "IAM Database Authentication is enabled"
return
}

0 comments on commit d2e1501

Please sign in to comment.