Skip to content

Commit

Permalink
Merge pull request #39 from mitre/v3_4_0
Browse files Browse the repository at this point in the history
V3_4_0
  • Loading branch information
georgedias authored Sep 23, 2022
2 parents 43d3358 + f291f3b commit 1eda13e
Show file tree
Hide file tree
Showing 6 changed files with 412 additions and 27 deletions.
16 changes: 8 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
PATH
remote: .
specs:
emasser (1.0.6)
emasser (3.4.0)
activesupport (~> 6.1.4)
colorize (~> 0.8.1)
dotenv (~> 2.7.6)
emass_client (~> 1.0, != 1.0.3)
emass_client (~> 3.0)
rubyzip (~> 2.3.2)
thor (~> 1.1.0)

GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.6)
activesupport (6.1.7)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
Expand All @@ -27,14 +27,14 @@ GEM
concurrent-ruby (1.1.10)
diff-lcs (1.5.0)
dotenv (2.7.6)
emass_client (1.0.6)
emass_client (3.4.0)
typhoeus (~> 1.0, >= 1.0.1)
ethon (0.15.0)
ffi (>= 1.15.0)
ffi (1.15.5-x64-mingw32)
i18n (1.10.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
minitest (5.15.0)
minitest (5.16.3)
parallel (1.22.1)
parser (3.1.2.0)
ast (~> 2.4.1)
Expand Down Expand Up @@ -78,11 +78,11 @@ GEM
thor (1.1.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (2.0.4)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
unicode-display_width (2.1.0)
yaml (0.2.0)
zeitwerk (2.5.4)
zeitwerk (2.6.0)

PLATFORMS
x64-mingw32
Expand Down
130 changes: 118 additions & 12 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,25 @@ The CLI invoke commands listed in this document shows them when executing from t
* [/api/systems/{systemId}/approval/cac](#get-cac)
* [/api/systems/{systemId}/approval/pac](#get-pac)
* [/api/cmmc-assessments](#get-cmmc)
* [/api/workflow-definitions](#get-workflowdefinitions)
* [/api/systems/{systemId}/workflow-instances](#get-workflowinstances)

* [/api/workflow-definitions](#get-workflow_definitions)
* [/api/systems/{systemId}/workflow-instances](#get-workflow_instances)
* [/api/dashboards/system-status-details](#get-dashboards)
* [/api/dashboards/system-control-compliance-summary](#get-dashboards)
* [/api/dashboards/system-security-controls-details](#get-dashboards)
* [/api/dashboards/system-assessment-procedures-details](#get-dashboards)
* [/api/dashboards/system-poam-summary](#get-dashboards)
* [/api/dashboards/system-poam-details](#get-dashboards)
* [/api/dashboards/system-hardware-summary](#get-dashboards)
* [/api/dashboards/system-hardware-details](#get-dashboards)
* [/api/dashboards/system-associations-details](#get-dashboards)
* [/api/dashboards/user-system-assignments-details](#get-dashboards)
* [/api/dashboards/system-privacy-summary](#get-dashboards)
* [/api/dashboards/va-omb-fisma-saop-summary](#get-dashboards)
* [/api/dashboards/va-system-aa-summary](#get-dashboards)
* [/api/dashboards/va-system-a2-summary](#get-dashboards)
* [/api/dashboards/va-system-pl-109-reporting-summary](#get-dashboards)
* [/api/dashboards/va-system-fisma-inventory-summary](#get-dashboards)

### POST
* [/api/systems/{systemId}/test-results](#post-test_results)
* [/api/systems/{systemId}/poam](#post-poams)
Expand All @@ -78,7 +94,7 @@ The CLI invoke commands listed in this document shows them when executing from t
* [/api/systems/{systemId}/static-code-scans](#post-static_code_scan)
* [/api/systems/{systemId}/cloud-resource-results](#post-cloudresource)
* [/api/systems/{systemId}/container-scan-results](#post-container)

### PUT
* [/api/systems/{systemId}/controls](#put-controls)
* [/api/systems/{systemId}/poams](#put-poams)
Expand All @@ -102,6 +118,7 @@ Each CLI endpoint command has several layers of help.
emasser get cac # Get location of one or many controls in...
emasser get cmmc # Get CMMC assessment information
emasser get controls # Get system Controls
emasser get dashboards # Get dashboard information
emasser get help [COMMAND] # Describe subcommands or one specific su...
emasser get milestones # Get system Milestones
emasser get pac # Get status of active workflows in a system
Expand Down Expand Up @@ -381,10 +398,11 @@ There are two get endpoints that provides the ability to view existing `Artifact
|--ccis |String - The system CCIS string numerical value|
|--systemOnly |BOOLEAN - true or false|
- export - Retrieves the file artifacts (if compress is true the file binary contents are returned, otherwise the file textual contents are returned.)
````
$ bundle exec exe/emasser get artifacts export --systemId=SYSTEMID
````
````
$ bundle exec exe/emasser get artifacts export --systemId=SYSTEMID
````
- required parameters are:
|parameter | type or values |
Expand All @@ -393,6 +411,7 @@ There are two get endpoints that provides the ability to view existing `Artifact
|--filename |The artifact file name |
- optional parameter is:
|parameter | type or values |
|-------------|:----------------------------------|
|--compress |BOOLEAN - true or false. |
Expand Down Expand Up @@ -440,7 +459,7 @@ To view Cybersecurity Maturity Model Certification (CMMC) Assessments use the fo
$ bundle exec exe/emasser get workflow_definitions forSite --sinceDate=SINCEDATE
- Required parameters are:
- Required parameter is:
|parameter | type or values |
|----------------|:--------------------------------------|
Expand All @@ -463,13 +482,14 @@ To view Workflow Definitions use the following command:
| | cloudServiceProvider, commonControlProvider |
[top](#api-endpoints-provided)
### ```get workflow_instances```
----
There are two get endpoints to view workflow instances:
- all
```
$ bundle exec exe/emasser get workflow_instances all
```
- Optional parameters are:
|parameter | type or values |
Expand All @@ -480,16 +500,102 @@ There are two get endpoints to view workflow instances:
|--status |Possible values: active, inactive, all |
- byWorkflowInstanceId
$ bundle exec exe/emasser get workflow_instances byWorkflowInstanceId --workflowInstanceId=--WORKFLOWID
```
$ bundle exec exe/emasser get workflow_instances byWorkflowInstanceId --workflowInstanceId=WORKFLOWID
```
- required parameter is:
|parameter | type or values |
|---------------------|:---------------------------------------------|
|--workflowInstanceId |Integer - Unique workflow instance identifier |
[top](#api-endpoints-provided)
### ```get dashboards```
----
The Dashboards endpoints provide the ability to view data contained in dashboard exports. In the eMASS front end, these dashboard exports are generated as Excel exports.
All endpoint calls utilize the same parameter values, they are:
- Required parameter is:
|parameter | type or values |
|--------------|:------------------------------------------------|
|--orgId |Integer - The organization identification number |
- Optional parameters are:
|parameter | type or values |
|-------------|:--------------------------------------------------------------|
|--pageIndex |Integer - The index of the starting page (default first page 0)|
|--pageSize |Integer - The number of entries per page (default 20000) |
Available commands are:
- Get systems status detail dashboard information
```
$ bundle exec exe/emasser get status_details --orgId=ORGID
```
- Get systems control compliance summary dashboard information
```
$ bundle exec exe/emasser get control_compliance_summary --orgId=ORGID
```
- Get systems security control details dashboard information
```
$ bundle exec exe/emasser get security_control_details --orgId=ORGID
```
- Get systems assessment procedures details dashboard information
```
$ bundle exec exe/emasser get assessment_procedures_details --orgId=ORGID
```
- Get systems POA&Ms summary dashboard information
```
$ bundle exec exe/emasser get poam_summary --orgId=ORGID
```
- Get system POA&Ms details dashboard information
```
$ bundle exec exe/emasser get poam_details --orgId=ORGID
```
- Get system hardware summary dashboard information
```
$ bundle exec exe/emasser get hardware_summary --orgId=ORGID
```
- Get system hardware details dashboard information
```
$ bundle exec exe/emasser get hardware_details --orgId=ORGID
```
- Get system associations details dashboard information
```
$ bundle exec exe/emasser get associations_details --orgId=ORGID
```
- Get user system assignments details dashboard information
```
$ bundle exec exe/emasser get assignments_details --orgId=ORGID
```
- Get user system privacy summary dashboard information
```
$ bundle exec exe/emasser get privacy_summary --orgId=ORGID
```
- Get VA OMB-FISMA SAOP summary dashboard information
```
$ bundle exec exe/emasser get fisma_saop_summary --orgId=ORGID
```
- Get VA system A&A summary dashboard information
```
$ bundle exec exe/emasser get va_aa_summary --orgId=ORGID
```
- Get VA system A2.0 summary dashboard information
```
$ bundle exec exe/emasser get va_a2_summary --orgId=ORGID
```
- Get VA System P.L. 109 reporting summary dashboard information
```
$ bundle exec exe/emasser get va_pl_109_summary --orgId=ORGID
```
- Get VA system FISMA inventory summary dashboard information
```
$ bundle exec exe/emasser get fisma_inventory_summary --orgId=ORGID
```
[top](#api-endpoints-provided)
## Usage - POST
Expand Down
2 changes: 1 addition & 1 deletion emasser.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'dotenv', '~> 2.7.6'
spec.add_runtime_dependency 'rubyzip', '~> 2.3.2'
spec.add_runtime_dependency 'thor', '~> 1.1.0'
spec.add_runtime_dependency 'emass_client', '~> 1.0', '!= 1.0.3'
spec.add_runtime_dependency 'emass_client', '~> 3.0'

spec.add_development_dependency 'bundler', '~> 2.3'
spec.add_development_dependency 'bundler-audit', '~> 0.7'
Expand Down
Loading

0 comments on commit 1eda13e

Please sign in to comment.