Skip to content

Commit

Permalink
remove inspec overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlongcc committed Jul 1, 2024
1 parent f5773e4 commit e212e68
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Full repository [here](https://github.com/mitre/mongodb-enterprise-advanced-4-st
- Remove the `--controls` flag to run all inspec checks at once.

```sh
inspec exec spec/mongo-inspec-profile/ -t docker://mongo-hardened --controls=SV-252134 --input-file=spec/mongo-inspec-profile/inputs.yml --reporter cli json:reports/inspec_results.json --no-create-lockfile --show-progress
inspec exec spec/mongo-inspec-profile/ -t docker://mongo-hardened --controls=SV-252134 --input-file=spec/mongo-inspec-profile/inputs.yml --reporter cli json:reports/inspec_results.json --no-create-lockfile --enhanced-outcomes
```

- Deeper Testing with InSpec Shell
Expand Down
2 changes: 1 addition & 1 deletion mongo-validate.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ variable "input_hardened_image" {
variable "scan" {
type = map(string)
default = {
"inspec_profile" = "https://github.com/mitre/mongodb-enterprise-advanced-4-stig-baseline.git",
"report_dir" = "reports",
"inspec_profile" = "spec/mongo-inspec-profile",
"inspec_report_filename" = "inspec_results.json",
"inspec_input_file" = "spec/mongo-inspec-profile/inputs.yml"
}
Expand Down
13 changes: 7 additions & 6 deletions spec/ansible/mongo-stig-hardening-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
- hosts:
- localhost
roles:
- roles/prep
- mitre.yedit
- mongo-stig
- role: roles/prep
- role: mitre.yedit
- role: mongoSTIG
vars:
fips_mode: true
enterprise_edition: true
serial: 50
user: 0
vars:
fips_mode: true
enterprise_edition: true

7 changes: 4 additions & 3 deletions spec/ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
roles:
- name: rhel8STIG
src: https://github.com/ansible-lockdown/RHEL8-STIG

- name: mongoSTIG
src: https://github.com/mitre/ansible-mongodb-enterprise-advanced-4-stig-hardening
version: main

- src: mitre.yedit

collections:
Expand Down
1 change: 0 additions & 1 deletion spec/mongo-inspec-profile/controls/overlay.rb

This file was deleted.

15 changes: 0 additions & 15 deletions spec/mongo-inspec-profile/inspec.yml

This file was deleted.

5 changes: 3 additions & 2 deletions spec/scripts/scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ echo "--- Running InSpec Profile ($PROFILE) against target ---"
inspec exec $PROFILE \
-t docker://$CONTAINER_ID \
--input-file=$INPUT_FILE \
--reporter cli json:$REPORT_DIR/$REPORT_FILE \
--no-create-lockfile
--reporter progress-bar json:$REPORT_DIR/$REPORT_FILE \
--no-create-lockfile \
--enhanced-outcomes

0 comments on commit e212e68

Please sign in to comment.