-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added bullet numbering and made semantic changes Signed-off-by: Shivani Karikar <[email protected]> * Fixed typos Signed-off-by: Shivani Karikar <[email protected]> * Corrected link and fixed typos Signed-off-by: Shivani Karikar <[email protected]> * Added bullet number Signed-off-by: Shivani Karikar <[email protected]> * Fixed links and typos Signed-off-by: Shivani Karikar <[email protected]> * Testing tip Signed-off-by: Shivani Karikar <[email protected]> * Testing tip again Signed-off-by: Shivani Karikar <[email protected]> * Addressed comments and fixed link Signed-off-by: Shivani Karikar <[email protected]> * copilot suggestions - stage 1 Signed-off-by: Aaron Lippold <[email protected]> * Enhancements Signed-off-by: Shivani Karikar <[email protected]> * copilot suggestions - 8 Signed-off-by: Aaron Lippold <[email protected]> * copilot suggestions - 9 Signed-off-by: Aaron Lippold <[email protected]> * Corrected flag and acronyms Signed-off-by: Shivani Karikar <[email protected]> * Standardized code blocks Signed-off-by: Shivani Karikar <[email protected]> * Enhancements Signed-off-by: Shivani Karikar <[email protected]> * fixed section numbering and section 6.3 Signed-off-by: Aaron Lippold <[email protected]> * Added link + Grammar fixes Signed-off-by: Shivani Karikar <[email protected]> * fixed more numbering issues 8 - 16 Signed-off-by: Aaron Lippold <[email protected]> * Grammar fixes Signed-off-by: Shivani Karikar <[email protected]> * typo in section title Signed-off-by: Will <[email protected]> * small fix to 15 Signed-off-by: Aaron Lippold <[email protected]> * wordsmithing in section 6 Signed-off-by: Will <[email protected]> * Bump the vuepress group with 2 updates Bumps the vuepress group with 2 updates: [@vuepress/plugin-markdown-image](https://github.com/vuepress/ecosystem/tree/HEAD/plugins/plugin-markdown-image) and [@vuepress/plugin-markdown-tab](https://github.com/vuepress/ecosystem/tree/HEAD/plugins/markdown/plugin-markdown-tab). Updates `@vuepress/plugin-markdown-image` from 2.0.0-rc.60 to 2.0.0-rc.61 - [Release notes](https://github.com/vuepress/ecosystem/releases) - [Commits](https://github.com/vuepress/ecosystem/commits/v2.0.0-rc.61/plugins/plugin-markdown-image) Updates `@vuepress/plugin-markdown-tab` from 2.0.0-rc.60 to 2.0.0-rc.61 - [Release notes](https://github.com/vuepress/ecosystem/releases) - [Changelog](https://github.com/vuepress/ecosystem/blob/main/plugins/markdown/plugin-markdown-tab/CHANGELOG.md) - [Commits](https://github.com/vuepress/ecosystem/commits/v2.0.0-rc.61/plugins/markdown/plugin-markdown-tab) --- updated-dependencies: - dependency-name: "@vuepress/plugin-markdown-image" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: vuepress - dependency-name: "@vuepress/plugin-markdown-tab" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: vuepress ... Signed-off-by: dependabot[bot] <[email protected]> * Bump mermaid from 11.4.0 to 11.4.1 Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 11.4.0 to 11.4.1. - [Release notes](https://github.com/mermaid-js/mermaid/releases) - [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md) - [Commits](https://github.com/mermaid-js/mermaid/compare/[email protected]@11.4.1) --- updated-dependencies: - dependency-name: mermaid dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * DEC Training - Guidance Course (#263) * typos, adding details, updating control in section 7 to use a more intuitive example Signed-off-by: Will <[email protected]> * fixing navbar to show all resource pages, combining and updating resource pages, adding the STIG vendor process guide as a downloadable PDF Signed-off-by: Will <[email protected]> * updating the screenshots to use the right component (updating examples to be based off of most recent GPOS SRG Signed-off-by: Will <[email protected]> * updating more screenshots, removing the step numbers in 5-7 since they dont make much sense for a doc with headers like this Signed-off-by: Will <[email protected]> * updating images to use correct SRG version, fleshing out some sections, typos/copyediting Signed-off-by: Will <[email protected]> * section 7 too long, decided it needed to be its own section -- TODO: decide if we want more content re: adding requirements Signed-off-by: Will <[email protected]> * updating diff viewer section Signed-off-by: Will <[email protected]> * flow editing for STIGs Signed-off-by: Will <[email protected]> * typos Signed-off-by: Will <[email protected]> --------- Signed-off-by: Will <[email protected]> * typo Signed-off-by: Will <[email protected]> * moving section 15 to an appendix Signed-off-by: Will <[email protected]> * forgot to save last change Signed-off-by: Will <[email protected]> * taking the wrong numbers out of the appendices Signed-off-by: Will <[email protected]> --------- Signed-off-by: Shivani Karikar <[email protected]> Signed-off-by: Aaron Lippold <[email protected]> Signed-off-by: Will <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Aaron Lippold <[email protected]> Co-authored-by: Will <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: wdower <[email protected]>
- Loading branch information
1 parent
7d7ffb3
commit 0245cf0
Showing
20 changed files
with
403 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,9 @@ headerDepth: 3 | |
|
||
As an example we will go through a few custom resources that were built and approved. | ||
|
||
### 14.1. IPv6 resource | ||
#### 14.1.1. docs/resources/ip6tables.md.erb | ||
### The IPv6 resource | ||
|
||
#### docs/resources/ip6tables.md.erb | ||
```ruby | ||
--- | ||
title: About the ip6tables Resource | ||
|
@@ -86,7 +87,7 @@ The `have_rule` matcher tests the named rule against the information in the `ip6 | |
it { should have_rule('RULE') } | ||
``` | ||
|
||
#### 14.1.2. lib/inspec/resources.rb | ||
#### lib/inspec/resources.rb | ||
```ruby | ||
require "inspec/resources/iis_site" | ||
require "inspec/resources/inetd_conf" | ||
|
@@ -97,7 +98,7 @@ require "inspec/resources/kernel_module" | |
require "inspec/resources/kernel_parameter" | ||
``` | ||
|
||
#### 14.1.3. lib/inspec/resources/ip6tables.rb | ||
#### lib/inspec/resources/ip6tables.rb | ||
```ruby | ||
require "inspec/resources/command" | ||
|
||
|
@@ -184,7 +185,7 @@ end | |
While submitting PR it may be possible to extend existing test elements from current resources to perform integration and unit testing such is seen in this example, the ipv6 resource extends the testing for [iptables](https://www.inspec.io/docs/reference/resources/iptables/) resource | ||
::: | ||
|
||
#### 14.1.4. test/integration/default/controls/ip6tables_spec.rb | ||
#### test/integration/default/controls/ip6tables_spec.rb | ||
```ruby | ||
case os[:family] | ||
when 'ubuntu', 'fedora', 'debian', 'suse' | ||
|
@@ -211,7 +212,7 @@ when 'redhat', 'centos' | |
end | ||
``` | ||
|
||
#### 14.1.5. test/unit/resources/ip6tables_test.rb | ||
#### test/unit/resources/ip6tables_test.rb | ||
```ruby | ||
require "helper" | ||
require "inspec/resource" | ||
|
@@ -247,8 +248,8 @@ describe "Inspec::Resources::Ip6tables" do | |
end | ||
``` | ||
|
||
### 14.2. NGINX resource | ||
#### 14.2.1. docs/resources/nginx.md.erb | ||
### The NGINX resource | ||
#### docs/resources/nginx.md.erb | ||
```ruby | ||
--- | ||
title: The Nginx Resource | ||
|
@@ -324,7 +325,7 @@ where | |
end | ||
``` | ||
#### 14.2.2. lib/inspec/resource.rb | ||
#### lib/inspec/resource.rb | ||
```ruby | ||
require 'resources/mysql' | ||
require 'resources/mysql_conf' | ||
|
@@ -335,7 +336,7 @@ require 'resources/npm' | |
require 'resources/ntp_conf' | ||
``` | ||
#### 14.2.3. lib/resources/nginx.rb | ||
#### lib/resources/nginx.rb | ||
```ruby | ||
# encoding: utf-8 | ||
# author: Aaron Lippold, [email protected] | ||
|
@@ -436,7 +437,7 @@ module Inspec::Resources | |
end | ||
``` | ||
#### 14.2.4. test/unit/resources/nginx_test.rb | ||
#### test/unit/resources/nginx_test.rb | ||
```ruby | ||
# encoding: utf-8 | ||
# author: Aaron Lippold, [email protected] | ||
|
@@ -534,10 +535,11 @@ describe 'Inspec::Resources::Nginx' do | |
end | ||
``` | ||
### 14.3. Additional examples | ||
#### 14.3.1. PAM resource currently open PR | ||
### Additional examples | ||
#### PAM resource currently open PR | ||
- [PAM Resource](https://github.com/simp/inspec-profile-disa_stig-el7/blob/master/libraries/pam.rb) | ||
- [PAM PR](https://github.com/inspec/inspec/pull/3993) | ||
#### 14.3.2. Customizing an already existing resource (windows registry) | ||
#### Customizing an already existing resource (windows registry) | ||
- [https://github.com/mitre/microsoft-windows-2012r2-memberserver-stig-baseline/blob/master/libraries/windows_registry.rb](https://github.com/mitre/microsoft-windows-2012r2-memberserver-stig-baseline/blob/master/libraries/windows_registry.rb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.