emasser 1.0.0 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dockerignore +5 -8
- data/.env-example +3 -1
- data/.github/release-drafter.yml +2 -2
- data/.github/workflows/gh-pages.yml +4 -5
- data/.github/workflows/push-to-docker-mail.yml +28 -0
- data/.github/workflows/push-to-docker.yml +35 -0
- data/.github/workflows/release.yml +7 -3
- data/.github/workflows/test-cli.yml +4 -5
- data/.gitignore +3 -1
- data/Dockerfile +37 -3
- data/Gemfile +1 -1
- data/Gemfile.lock +37 -43
- data/README.md +131 -61
- data/docs/features.md +345 -207
- data/docs/images/emasser_architecture.jpg +0 -0
- data/emasser.gemspec +16 -12
- data/exe/emasser +0 -0
- data/images/emasser_architecture.jpg +0 -0
- data/images/emasser_diagram-Page-3.jpg +0 -0
- data/lib/emasser/cli.rb +12 -0
- data/lib/emasser/configuration.rb +22 -7
- data/lib/emasser/constants.rb +11 -3
- data/lib/emasser/delete.rb +14 -12
- data/lib/emasser/get.rb +83 -88
- data/lib/emasser/help/cloudresource_post_mapper.md +62 -0
- data/lib/emasser/help/container_post_mapper.md +44 -0
- data/lib/emasser/output_converters.rb +101 -4
- data/lib/emasser/post.rb +248 -55
- data/lib/emasser/put.rb +29 -22
- data/lib/emasser/version.rb +1 -1
- data/lib/emasser.rb +1 -1
- metadata +64 -447
- data/.github/workflows/generate_docs.yml +0 -33
- data/TAGS +0 -2393
- data/docs/developers.md +0 -115
- data/docs/swagger/dist/favicon-16x16.png +0 -0
- data/docs/swagger/dist/favicon-32x32.png +0 -0
- data/docs/swagger/dist/oauth2-redirect.html +0 -75
- data/docs/swagger/dist/swagger-ui-bundle.js +0 -3
- data/docs/swagger/dist/swagger-ui-bundle.js.map +0 -1
- data/docs/swagger/dist/swagger-ui-es-bundle-core.js +0 -3
- data/docs/swagger/dist/swagger-ui-es-bundle-core.js.map +0 -1
- data/docs/swagger/dist/swagger-ui-es-bundle.js +0 -3
- data/docs/swagger/dist/swagger-ui-es-bundle.js.map +0 -1
- data/docs/swagger/dist/swagger-ui-standalone-preset.js +0 -3
- data/docs/swagger/dist/swagger-ui-standalone-preset.js.map +0 -1
- data/docs/swagger/dist/swagger-ui.css +0 -4
- data/docs/swagger/dist/swagger-ui.css.map +0 -1
- data/docs/swagger/dist/swagger-ui.js +0 -3
- data/docs/swagger/dist/swagger-ui.js.map +0 -1
- data/docs/swagger/index.html +0 -60
- data/emass_client/eMASSRestOpenApi.yaml +0 -5698
- data/emass_client/ruby_client/.gitignore +0 -39
- data/emass_client/ruby_client/.rspec +0 -2
- data/emass_client/ruby_client/.rubocop.yml +0 -154
- data/emass_client/ruby_client/.swagger-codegen/VERSION +0 -1
- data/emass_client/ruby_client/.swagger-codegen-ignore +0 -23
- data/emass_client/ruby_client/Gemfile +0 -9
- data/emass_client/ruby_client/README.md +0 -1284
- data/emass_client/ruby_client/Rakefile +0 -8
- data/emass_client/ruby_client/docs/ArtifactsApi.md +0 -284
- data/emass_client/ruby_client/docs/ArtifactsDelete.md +0 -6
- data/emass_client/ruby_client/docs/ArtifactsDeleteInner.md +0 -7
- data/emass_client/ruby_client/docs/ArtifactsExportApi.md +0 -76
- data/emass_client/ruby_client/docs/ArtifactsGet.md +0 -20
- data/emass_client/ruby_client/docs/ArtifactsRequestPutBody.md +0 -16
- data/emass_client/ruby_client/docs/ArtifactsResponseDel.md +0 -8
- data/emass_client/ruby_client/docs/ArtifactsResponseDelData.md +0 -9
- data/emass_client/ruby_client/docs/ArtifactsResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/ArtifactsResponsePutPost.md +0 -8
- data/emass_client/ruby_client/docs/CACApi.md +0 -140
- data/emass_client/ruby_client/docs/CMMCAssessmentsApi.md +0 -71
- data/emass_client/ruby_client/docs/CacGet.md +0 -13
- data/emass_client/ruby_client/docs/CacRequestPostBody.md +0 -8
- data/emass_client/ruby_client/docs/CacResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/CacResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/CacResponsePostData.md +0 -9
- data/emass_client/ruby_client/docs/CmmcGet.md +0 -19
- data/emass_client/ruby_client/docs/CmmcResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/ConnectivityCcsd.md +0 -8
- data/emass_client/ruby_client/docs/ControlsApi.md +0 -140
- data/emass_client/ruby_client/docs/ControlsGet.md +0 -36
- data/emass_client/ruby_client/docs/ControlsPut.md +0 -9
- data/emass_client/ruby_client/docs/ControlsRequestPutBody.md +0 -29
- data/emass_client/ruby_client/docs/ControlsResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/ControlsResponsePut.md +0 -8
- data/emass_client/ruby_client/docs/DefinitionTransitions.md +0 -9
- data/emass_client/ruby_client/docs/DeleteMilestone.md +0 -7
- data/emass_client/ruby_client/docs/DeletePoam.md +0 -7
- data/emass_client/ruby_client/docs/Empty200Response.md +0 -6
- data/emass_client/ruby_client/docs/Error.md +0 -8
- data/emass_client/ruby_client/docs/InstancesTransitions.md +0 -12
- data/emass_client/ruby_client/docs/MilestoneResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/MilestoneResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/MilestoneResponsePut.md +0 -8
- data/emass_client/ruby_client/docs/MilestonesApi.md +0 -350
- data/emass_client/ruby_client/docs/MilestonesDelete.md +0 -6
- data/emass_client/ruby_client/docs/MilestonesGet.md +0 -12
- data/emass_client/ruby_client/docs/MilestonesPost.md +0 -6
- data/emass_client/ruby_client/docs/MilestonesPut.md +0 -6
- data/emass_client/ruby_client/docs/MilestonesPutPostDelete.md +0 -11
- data/emass_client/ruby_client/docs/MilestonesRequestPostBody.md +0 -9
- data/emass_client/ruby_client/docs/MilestonesRequestPutBody.md +0 -9
- data/emass_client/ruby_client/docs/MilestonesRequiredPost.md +0 -8
- data/emass_client/ruby_client/docs/MilestonesRequiredPut.md +0 -9
- data/emass_client/ruby_client/docs/Model200.md +0 -7
- data/emass_client/ruby_client/docs/Model201.md +0 -7
- data/emass_client/ruby_client/docs/Model201Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model400.md +0 -7
- data/emass_client/ruby_client/docs/Model400Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model400Response.md +0 -7
- data/emass_client/ruby_client/docs/Model401.md +0 -7
- data/emass_client/ruby_client/docs/Model401Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model403.md +0 -7
- data/emass_client/ruby_client/docs/Model403Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model404.md +0 -8
- data/emass_client/ruby_client/docs/Model404Response.md +0 -7
- data/emass_client/ruby_client/docs/Model405.md +0 -7
- data/emass_client/ruby_client/docs/Model405Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model411.md +0 -7
- data/emass_client/ruby_client/docs/Model411Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model490.md +0 -7
- data/emass_client/ruby_client/docs/Model490Meta.md +0 -8
- data/emass_client/ruby_client/docs/Model500.md +0 -7
- data/emass_client/ruby_client/docs/Model500Meta.md +0 -8
- data/emass_client/ruby_client/docs/PACApi.md +0 -137
- data/emass_client/ruby_client/docs/POAMApi.md +0 -346
- data/emass_client/ruby_client/docs/PacGet.md +0 -14
- data/emass_client/ruby_client/docs/PacPost.md +0 -9
- data/emass_client/ruby_client/docs/PacRequestPostBody.md +0 -9
- data/emass_client/ruby_client/docs/PacResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/PacResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/PoamDelete.md +0 -6
- data/emass_client/ruby_client/docs/PoamGet.md +0 -39
- data/emass_client/ruby_client/docs/PoamPost.md +0 -6
- data/emass_client/ruby_client/docs/PoamPostPutDel.md +0 -10
- data/emass_client/ruby_client/docs/PoamPut.md +0 -6
- data/emass_client/ruby_client/docs/PoamRequestPostBody.md +0 -6
- data/emass_client/ruby_client/docs/PoamRequestPutBody.md +0 -6
- data/emass_client/ruby_client/docs/PoamRequiredPost.md +0 -32
- data/emass_client/ruby_client/docs/PoamRequiredPut.md +0 -35
- data/emass_client/ruby_client/docs/PoamResponseDelete.md +0 -8
- data/emass_client/ruby_client/docs/PoamResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/PoamResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/PoamResponsePut.md +0 -8
- data/emass_client/ruby_client/docs/Register.md +0 -8
- data/emass_client/ruby_client/docs/RegisterData.md +0 -7
- data/emass_client/ruby_client/docs/RegisterUserRequestPostBody.md +0 -7
- data/emass_client/ruby_client/docs/RegistrationApi.md +0 -71
- data/emass_client/ruby_client/docs/RoleCategory.md +0 -10
- data/emass_client/ruby_client/docs/Roles.md +0 -9
- data/emass_client/ruby_client/docs/Ssps.md +0 -9
- data/emass_client/ruby_client/docs/Stage.md +0 -8
- data/emass_client/ruby_client/docs/StaticCodeApplication.md +0 -12
- data/emass_client/ruby_client/docs/StaticCodeRequestPostBody.md +0 -6
- data/emass_client/ruby_client/docs/StaticCodeRequiredPost.md +0 -8
- data/emass_client/ruby_client/docs/StaticCodeRequiredPostApplication.md +0 -8
- data/emass_client/ruby_client/docs/StaticCodeScansApi.md +0 -73
- data/emass_client/ruby_client/docs/Success200Response.md +0 -8
- data/emass_client/ruby_client/docs/SystemIdArtifactsBody.md +0 -10
- data/emass_client/ruby_client/docs/SystemResponse.md +0 -8
- data/emass_client/ruby_client/docs/SystemRolesApi.md +0 -137
- data/emass_client/ruby_client/docs/SystemRolesCategoryResponse.md +0 -8
- data/emass_client/ruby_client/docs/SystemRolesResponse.md +0 -8
- data/emass_client/ruby_client/docs/SystemRolesResponseData.md +0 -8
- data/emass_client/ruby_client/docs/Systems.md +0 -70
- data/emass_client/ruby_client/docs/SystemsApi.md +0 -155
- data/emass_client/ruby_client/docs/Test.md +0 -8
- data/emass_client/ruby_client/docs/TestApi.md +0 -66
- data/emass_client/ruby_client/docs/TestData.md +0 -7
- data/emass_client/ruby_client/docs/TestResultsApi.md +0 -144
- data/emass_client/ruby_client/docs/TestResultsGet.md +0 -15
- data/emass_client/ruby_client/docs/TestResultsPost.md +0 -9
- data/emass_client/ruby_client/docs/TestResultsRequestPostBody.md +0 -11
- data/emass_client/ruby_client/docs/TestResultsResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/TestResultsResponsePost.md +0 -8
- data/emass_client/ruby_client/docs/Users.md +0 -9
- data/emass_client/ruby_client/docs/WorkflowDefinitionGet.md +0 -11
- data/emass_client/ruby_client/docs/WorkflowDefinitionResponseGet.md +0 -8
- data/emass_client/ruby_client/docs/WorkflowDefinitionsApi.md +0 -74
- data/emass_client/ruby_client/docs/WorkflowInstancesApi.md +0 -146
- data/emass_client/ruby_client/docs/WorkflowInstancesGet.md +0 -16
- data/emass_client/ruby_client/docs/WorkflowInstancesResponseGet.md +0 -8
- data/emass_client/ruby_client/git_push.sh +0 -55
- data/emass_client/ruby_client/lib/swagger_client/api/artifacts_api.rb +0 -310
- data/emass_client/ruby_client/lib/swagger_client/api/artifacts_export_api.rb +0 -86
- data/emass_client/ruby_client/lib/swagger_client/api/cac_api.rb +0 -143
- data/emass_client/ruby_client/lib/swagger_client/api/cmmc_assessments_api.rb +0 -77
- data/emass_client/ruby_client/lib/swagger_client/api/controls_api.rb +0 -143
- data/emass_client/ruby_client/lib/swagger_client/api/milestones_api.rb +0 -366
- data/emass_client/ruby_client/lib/swagger_client/api/pac_api.rb +0 -140
- data/emass_client/ruby_client/lib/swagger_client/api/poam_api.rb +0 -345
- data/emass_client/ruby_client/lib/swagger_client/api/registration_api.rb +0 -78
- data/emass_client/ruby_client/lib/swagger_client/api/static_code_scans_api.rb +0 -84
- data/emass_client/ruby_client/lib/swagger_client/api/system_roles_api.rb +0 -150
- data/emass_client/ruby_client/lib/swagger_client/api/systems_api.rb +0 -162
- data/emass_client/ruby_client/lib/swagger_client/api/test_api.rb +0 -70
- data/emass_client/ruby_client/lib/swagger_client/api/test_results_api.rb +0 -149
- data/emass_client/ruby_client/lib/swagger_client/api/workflow_definitions_api.rb +0 -76
- data/emass_client/ruby_client/lib/swagger_client/api/workflow_instances_api.rb +0 -153
- data/emass_client/ruby_client/lib/swagger_client/api_client.rb +0 -389
- data/emass_client/ruby_client/lib/swagger_client/api_error.rb +0 -57
- data/emass_client/ruby_client/lib/swagger_client/configuration.rb +0 -224
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete.rb +0 -201
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete_inner.rb +0 -207
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_get.rb +0 -383
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_request_put_body.rb +0 -363
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del_data.rb +0 -225
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_put_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_get.rb +0 -301
- data/emass_client/ruby_client/lib/swagger_client/models/cac_request_post_body.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post_data.rb +0 -225
- data/emass_client/ruby_client/lib/swagger_client/models/cmmc_get.rb +0 -398
- data/emass_client/ruby_client/lib/swagger_client/models/cmmc_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/connectivity_ccsd.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/controls_get.rb +0 -663
- data/emass_client/ruby_client/lib/swagger_client/models/controls_put.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/controls_request_put_body.rb +0 -606
- data/emass_client/ruby_client/lib/swagger_client/models/controls_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/controls_response_put.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/definition_transitions.rb +0 -274
- data/emass_client/ruby_client/lib/swagger_client/models/delete_milestone.rb +0 -212
- data/emass_client/ruby_client/lib/swagger_client/models/delete_poam.rb +0 -212
- data/emass_client/ruby_client/lib/swagger_client/models/empty200_response.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/error.rb +0 -225
- data/emass_client/ruby_client/lib/swagger_client/models/instances_transitions.rb +0 -327
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_put.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_delete.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_get.rb +0 -291
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_post.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_put.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_put_post_delete.rb +0 -247
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_post_body.rb +0 -242
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_put_body.rb +0 -242
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_post.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_put.rb +0 -242
- data/emass_client/ruby_client/lib/swagger_client/models/model_200.rb +0 -208
- data/emass_client/ruby_client/lib/swagger_client/models/model_201.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_201_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_400.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_400_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_400_response.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_401.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_401_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_403.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_403_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_404.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_404_response.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_405.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_405_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_411.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_411_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_490.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_490_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/model_500.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/model_500_meta.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/pac_get.rb +0 -311
- data/emass_client/ruby_client/lib/swagger_client/models/pac_post.rb +0 -259
- data/emass_client/ruby_client/lib/swagger_client/models/pac_request_post_body.rb +0 -261
- data/emass_client/ruby_client/lib/swagger_client/models/pac_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/pac_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_delete.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_get.rb +0 -646
- data/emass_client/ruby_client/lib/swagger_client/models/poam_post.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_post_put_del.rb +0 -237
- data/emass_client/ruby_client/lib/swagger_client/models/poam_put.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_request_post_body.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_request_put_body.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/poam_required_post.rb +0 -564
- data/emass_client/ruby_client/lib/swagger_client/models/poam_required_put.rb +0 -594
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_delete.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/poam_response_put.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/register.rb +0 -215
- data/emass_client/ruby_client/lib/swagger_client/models/register_data.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/register_user_request_post_body.rb +0 -211
- data/emass_client/ruby_client/lib/swagger_client/models/role_category.rb +0 -272
- data/emass_client/ruby_client/lib/swagger_client/models/roles.rb +0 -274
- data/emass_client/ruby_client/lib/swagger_client/models/ssps.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/stage.rb +0 -252
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_application.rb +0 -303
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_request_post_body.rb +0 -197
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post_application.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/success200_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_id_artifacts_body.rb +0 -284
- data/emass_client/ruby_client/lib/swagger_client/models/system_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_category_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response_data.rb +0 -219
- data/emass_client/ruby_client/lib/swagger_client/models/systems.rb +0 -1137
- data/emass_client/ruby_client/lib/swagger_client/models/test.rb +0 -215
- data/emass_client/ruby_client/lib/swagger_client/models/test_data.rb +0 -206
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_get.rb +0 -333
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_post.rb +0 -227
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_request_post_body.rb +0 -306
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_post.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/users.rb +0 -224
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_get.rb +0 -282
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_get.rb +0 -368
- data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_response_get.rb +0 -217
- data/emass_client/ruby_client/lib/swagger_client/version.rb +0 -14
- data/emass_client/ruby_client/lib/swagger_client.rb +0 -161
- data/emass_client/ruby_client/spec/api/artifacts_api_spec.rb +0 -92
- data/emass_client/ruby_client/spec/api/artifacts_export_api_spec.rb +0 -48
- data/emass_client/ruby_client/spec/api/cac_api_spec.rb +0 -60
- data/emass_client/ruby_client/spec/api/cmmc_assessments_api_spec.rb +0 -46
- data/emass_client/ruby_client/spec/api/controls_api_spec.rb +0 -60
- data/emass_client/ruby_client/spec/api/milestones_api_spec.rb +0 -105
- data/emass_client/ruby_client/spec/api/pac_api_spec.rb +0 -59
- data/emass_client/ruby_client/spec/api/poam_api_spec.rb +0 -103
- data/emass_client/ruby_client/spec/api/registration_api_spec.rb +0 -46
- data/emass_client/ruby_client/spec/api/static_code_scans_api_spec.rb +0 -47
- data/emass_client/ruby_client/spec/api/system_roles_api_spec.rb +0 -60
- data/emass_client/ruby_client/spec/api/systems_api_spec.rb +0 -67
- data/emass_client/ruby_client/spec/api/test_api_spec.rb +0 -45
- data/emass_client/ruby_client/spec/api/test_results_api_spec.rb +0 -62
- data/emass_client/ruby_client/spec/api/workflow_definitions_api_spec.rb +0 -47
- data/emass_client/ruby_client/spec/api/workflow_instances_api_spec.rb +0 -63
- data/emass_client/ruby_client/spec/api_client_spec.rb +0 -225
- data/emass_client/ruby_client/spec/base_object_spec.rb +0 -109
- data/emass_client/ruby_client/spec/configuration_spec.rb +0 -41
- data/emass_client/ruby_client/spec/models/artifacts_delete_inner_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/artifacts_delete_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/artifacts_get_spec.rb +0 -126
- data/emass_client/ruby_client/spec/models/artifacts_request_put_body_spec.rb +0 -102
- data/emass_client/ruby_client/spec/models/artifacts_response_del_data_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/artifacts_response_del_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/artifacts_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/artifacts_response_put_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cac_get_spec.rb +0 -80
- data/emass_client/ruby_client/spec/models/cac_request_post_body_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cac_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cac_response_post_data_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/cac_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/cmmc_get_spec.rb +0 -128
- data/emass_client/ruby_client/spec/models/cmmc_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/connectivity_ccsd_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/controls_get_spec.rb +0 -262
- data/emass_client/ruby_client/spec/models/controls_put_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/controls_request_put_body_spec.rb +0 -216
- data/emass_client/ruby_client/spec/models/controls_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/controls_response_put_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/definition_transitions_spec.rb +0 -64
- data/emass_client/ruby_client/spec/models/delete_milestone_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/delete_poam_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/empty200_response_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/error_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/instances_transitions_spec.rb +0 -86
- data/emass_client/ruby_client/spec/models/milestone_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestone_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestone_response_put_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestones_delete_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/milestones_get_spec.rb +0 -74
- data/emass_client/ruby_client/spec/models/milestones_post_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/milestones_put_post_delete_spec.rb +0 -64
- data/emass_client/ruby_client/spec/models/milestones_put_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/milestones_request_post_body_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/milestones_request_put_body_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/milestones_required_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/milestones_required_put_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/model_200_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_201_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_201_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_400_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_400_response_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_400_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_401_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_401_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_403_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_403_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_404_response_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_404_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_405_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_405_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_411_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_411_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_490_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_490_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/model_500_meta_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/model_500_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/pac_get_spec.rb +0 -86
- data/emass_client/ruby_client/spec/models/pac_post_spec.rb +0 -56
- data/emass_client/ruby_client/spec/models/pac_request_post_body_spec.rb +0 -56
- data/emass_client/ruby_client/spec/models/pac_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/pac_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_delete_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_get_spec.rb +0 -264
- data/emass_client/ruby_client/spec/models/poam_post_put_del_spec.rb +0 -58
- data/emass_client/ruby_client/spec/models/poam_post_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_put_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_request_post_body_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_request_put_body_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/poam_required_post_spec.rb +0 -218
- data/emass_client/ruby_client/spec/models/poam_required_put_spec.rb +0 -236
- data/emass_client/ruby_client/spec/models/poam_response_delete_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/poam_response_put_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/register_data_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/register_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/register_user_request_post_body_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/role_category_spec.rb +0 -62
- data/emass_client/ruby_client/spec/models/roles_spec.rb +0 -60
- data/emass_client/ruby_client/spec/models/ssps_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/stage_spec.rb +0 -50
- data/emass_client/ruby_client/spec/models/static_code_application_spec.rb +0 -78
- data/emass_client/ruby_client/spec/models/static_code_request_post_body_spec.rb +0 -34
- data/emass_client/ruby_client/spec/models/static_code_required_post_application_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/static_code_required_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/success200_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_id_artifacts_body_spec.rb +0 -66
- data/emass_client/ruby_client/spec/models/system_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_roles_category_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_roles_response_data_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/system_roles_response_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/systems_spec.rb +0 -510
- data/emass_client/ruby_client/spec/models/test_data_spec.rb +0 -40
- data/emass_client/ruby_client/spec/models/test_results_get_spec.rb +0 -96
- data/emass_client/ruby_client/spec/models/test_results_post_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/test_results_request_post_body_spec.rb +0 -68
- data/emass_client/ruby_client/spec/models/test_results_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/test_results_response_post_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/test_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/users_spec.rb +0 -52
- data/emass_client/ruby_client/spec/models/workflow_definition_get_spec.rb +0 -68
- data/emass_client/ruby_client/spec/models/workflow_definition_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/models/workflow_instances_get_spec.rb +0 -110
- data/emass_client/ruby_client/spec/models/workflow_instances_response_get_spec.rb +0 -46
- data/emass_client/ruby_client/spec/spec_helper.rb +0 -110
- data/emass_client/ruby_client/swagger_client.gemspec +0 -38
- data/emass_client/swagger-codegen/ruby_template/api_client.mustache +0 -384
- data/emass_client/swagger-codegen/ruby_template/api_info.mustache +0 -12
- data/emass_client/swagger-codegen/ruby_template/configuration.mustache +0 -234
- data/emass_client/swagger-codegen/ruby_template/gemspec.mustache +0 -37
data/docs/features.md
CHANGED
@@ -1,34 +1,49 @@
|
|
1
1
|
# emasser CLI Features
|
2
2
|
|
3
|
-
##
|
4
|
-
To facilitate setting the required environment variables the emasser CLI utilized the zero-dependency module to load these variables from a
|
3
|
+
## Environment Variables
|
4
|
+
To facilitate setting the required environment variables the `emasser `CLI utilized the zero-dependency module to load these variables from a `.env` file.
|
5
5
|
|
6
|
-
|
6
|
+
### Configuring the `.env` File
|
7
|
+
An `.env-example` file is provided with the required and optional fields.
|
8
|
+
|
9
|
+
Modify the `.env_example` as necessary and save it as a `.env` file.
|
10
|
+
|
11
|
+
Place the file on the path where the `emasser` command is executed.
|
12
|
+
|
13
|
+
### Required and Optional Environment Variables
|
14
|
+
The following environment variables are required:
|
7
15
|
* EMASSER_API_KEY_API_KEY=`<API key>`
|
8
16
|
* EMASSER_API_KEY_USER_UID=`<unique identifier for the API Key (EMASSER_API_KEY_API_KEY)`
|
9
17
|
* EMASSER_HOST=`<FQDN of the eMASS server>`
|
10
18
|
* EMASSER_KEY_FILE_PATH=`<path to your eMASS key in PEM format>`
|
11
19
|
* EMASSER_CERT_FILE_PATH=`<path to your eMASS certificate in PEM format>`
|
12
20
|
* EMASSER_KEY_PASSWORD=`<password for the key given in EMASSER_KEY_FILE_PATH>`
|
13
|
-
|
14
|
-
|
15
|
-
*
|
16
|
-
*
|
21
|
+
|
22
|
+
The following environment variables are *optional:
|
23
|
+
* EMASSER_CLIENT_SIDE_VALIDATION=`<client side validation - true or false (default true)>`
|
24
|
+
* EMASSER_VERIFY_SSL=`<verify SSL - true or false (default true)>`
|
25
|
+
* EMASSER_VERIFY_SSL_HOST=`<verify host SSL - true or false (default true)>`
|
26
|
+
* EMASSER_DEBUGGING=`<set debugging - true or false (default false)>`
|
27
|
+
* EMASSER_CLI_DISPLAY_NULL=`<display null value fields - true or false (default true)>`
|
28
|
+
* EMASSER_POCH_TO_DATETIME=`<convert epoch to data/time value - true or false (default false)>`
|
29
|
+
|
30
|
+
\* If not provided defaults are used
|
17
31
|
|
32
|
+
The proper format to set these variables in the `.env` files is as follows:
|
33
|
+
```bash
|
34
|
+
export [VARIABLE_NAME]='value'
|
35
|
+
```
|
36
|
+
***NOTE***
|
37
|
+
`emasser` requires authentication to an eMASS instance as well as authorization to use the eMASS API. This authentication and authorization is **not** a function of `emasser` and needs to be accomplished with the eMASS instances owner organization. Further information about eMASS credential requirements refer to [Defense Counterintelligence and Security Agency](https://www.dcsa.mil/is/emass/) about eMASS access.
|
38
|
+
|
39
|
+
---
|
18
40
|
## Common emasser Endpoint Requests Information
|
19
41
|
- To invoke any boolean parameters use --parameterName for TRUE and --no-parameterName for FALSE
|
20
|
-
- The eMASS API provides the capability of updating multiple entries within several endpoints, however
|
21
|
-
|
22
|
-
## Invoking emmaser CLI Commands
|
23
|
-
|
24
|
-
The CLI invoke commands listed in this document shows them when executing from the source code (after a pull from GitHub). If an executable (.gem) is created the command to invoke the endpoint is different. For example:
|
25
|
-
- Invoking the GET systems endpoint from the source code is:
|
26
|
-
|
27
|
-
bundle exec exe/emasser get systems all
|
42
|
+
- The eMASS API provides the capability of updating multiple entries within several endpoints, however the `emasser` CLI, in some cases only supports updating one entry at the time.
|
28
43
|
|
29
|
-
|
44
|
+
## Invoking emasser CLI Commands
|
30
45
|
|
31
|
-
|
46
|
+
The CLI invoke commands listed in this document shows them when executing from the source code (after a pull from GitHub). Please reference the [`emasser` README](https://mitre.github.io/emasser/) on how to invoke the CLI using other available executables (gem or docker).
|
32
47
|
|
33
48
|
## API Endpoints Provided
|
34
49
|
|
@@ -36,10 +51,11 @@ The CLI invoke commands listed in this document shows them when executing from t
|
|
36
51
|
* [/api](#get-test-connection)
|
37
52
|
* [/api/system](#get-system)
|
38
53
|
* [/api/systems](#get-systems)
|
54
|
+
* [/api/systems/{systemId}](#get-system)
|
39
55
|
* [/api/system-roles](#get-roles)
|
40
56
|
* [/api/system-roles/{roleCategory}](#get-roles)
|
41
57
|
* [/api/systems/{systemId}/controls](#get-controls)
|
42
|
-
* [/api/systems/{systemId}/test-results](#get-
|
58
|
+
* [/api/systems/{systemId}/test-results](#get-testresults)
|
43
59
|
* [/api/systems/{systemId}/poams](#get-poams)
|
44
60
|
* [/api/systems/{systemId}/poams/{poamId}](#get-poams)
|
45
61
|
* [/api/systems/{systemId}/poams/{poamId}/milestones](#get-milestones)
|
@@ -49,8 +65,8 @@ The CLI invoke commands listed in this document shows them when executing from t
|
|
49
65
|
* [/api/systems/{systemId}/approval/cac](#get-cac)
|
50
66
|
* [/api/systems/{systemId}/approval/pac](#get-pac)
|
51
67
|
* [/api/cmmc-assessments](#get-cmmc)
|
52
|
-
* [/api/workflow-definitions](#get-
|
53
|
-
* [/api/systems/{systemId}/workflow-instances](#get-
|
68
|
+
* [/api/workflow-definitions](#get-workflowdefinitions)
|
69
|
+
* [/api/systems/{systemId}/workflow-instances](#get-workflowinstances)
|
54
70
|
|
55
71
|
### POST
|
56
72
|
* [/api/systems/{systemId}/test-results](#post-test_results)
|
@@ -60,6 +76,8 @@ The CLI invoke commands listed in this document shows them when executing from t
|
|
60
76
|
* [/api/systems/{systemId}/approval/cac](#post-cac)
|
61
77
|
* [/api/systems/{systemId}/approval/pac](#post-pac)
|
62
78
|
* [/api/systems/{systemId}/static-code-scans](#post-static_code_scan)
|
79
|
+
* [/api/systems/{systemId}/cloud-resource-results](#post-cloudresource)
|
80
|
+
* [/api/systems/{systemId}/container-scan-results](#post-container)
|
63
81
|
|
64
82
|
### PUT
|
65
83
|
* [/api/systems/{systemId}/controls](#put-controls)
|
@@ -75,77 +93,76 @@ The CLI invoke commands listed in this document shows them when executing from t
|
|
75
93
|
## Endpoints CLI help
|
76
94
|
|
77
95
|
Each CLI endpoint command has several layers of help.
|
78
|
-
- Using `help` after a `get, put, post, or delete` command lists all available endpoint calls
|
96
|
+
- Using `help` after a `get, put, post, or delete` command lists all available endpoint calls. The following command would list all available `GET` endpoints commands.
|
79
97
|
|
80
|
-
```
|
98
|
+
```bash
|
81
99
|
$ bundle exec exe/emasser get help
|
100
|
+
Commands:
|
101
|
+
emasser get artifacts # Get system Artifacts
|
102
|
+
emasser get cac # Get location of one or many controls in...
|
103
|
+
emasser get cmmc # Get CMMC assessment information
|
104
|
+
emasser get controls # Get system Controls
|
105
|
+
emasser get help [COMMAND] # Describe subcommands or one specific su...
|
106
|
+
emasser get milestones # Get system Milestones
|
107
|
+
emasser get pac # Get status of active workflows in a system
|
108
|
+
emasser get poams # Get system Poams
|
109
|
+
emasser get roles # Get all system roles or by category Id
|
110
|
+
emasser get system # Get a system ID given name/owner, or ge...
|
111
|
+
emasser get systems # Get all systems
|
112
|
+
emasser get test # Test connection to the configured eMASS...
|
113
|
+
emasser get test_results # Get system Test Results
|
114
|
+
emasser get workflow_definitions # Get workflow definitions in a site
|
115
|
+
emasser get workflow_instances # Get workflow instance by system and/or ...
|
82
116
|
```
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
- emasser get approval ...
|
87
|
-
- emasser get artifacts ...
|
88
|
-
- emasser get controls ...
|
89
|
-
- emasser get help [COMMAND] ...
|
90
|
-
- emasser get poams ...
|
91
|
-
- emasser get roles ...
|
92
|
-
- emasser get system [--system-name [SYSTEM_NAME]] [--system-owner [SYSTEM_OW...
|
93
|
-
- emasser get systems [options] ...
|
94
|
-
- emasser get test_results ...
|
95
|
-
|
96
|
-
- Preceding any command with `help` provides help for the command
|
97
|
-
|
98
|
-
```
|
117
|
+
- Preceding any command with `help` provides help for the command. The following command would list all available sub-commands and options for the `get artifacts` endpoint command.
|
118
|
+
```bash
|
99
119
|
$ bundle exec exe/emasser get help artifacts
|
120
|
+
commands:
|
121
|
+
emasser get artifacts export --filename=FILENAME --systemId=N # Get artifa...
|
122
|
+
emasser get artifacts forSystem --systemId=N # Get all sy...
|
123
|
+
emasser get artifacts help [COMMAND] # Describe s...
|
100
124
|
```
|
101
|
-
|
102
|
-
|
103
|
-
- emasser get artifacts help [COMMAND] # Describe s...
|
104
|
-
- emasser get artifacts system --systemId=N # Get all sy...
|
105
|
-
|
106
|
-
- Using `help` after any command lists all available options
|
107
|
-
|
108
|
-
```
|
125
|
+
- Using `help` after any command lists all available options. The following command would list all available options for the `get artifacts export` endpoint command.
|
126
|
+
```bash
|
109
127
|
$ bundle exec exe/emasser get artifacts help export
|
110
|
-
|
111
|
-
|
112
|
-
- Usage:
|
113
|
-
- emasser get artifacts export --filename=FILENAME --systemId=N
|
114
|
-
- Options:
|
115
|
-
- --systemId=N # A numeric value representing the system identification
|
116
|
-
- --filename=FILENAME # The artifact file name
|
117
|
-
- --compress # BOOLEAN - true or false.
|
128
|
+
Usage:
|
129
|
+
emasser get artifacts export --filename=FILENAME --systemId=N
|
118
130
|
|
119
|
-
|
131
|
+
Options:
|
132
|
+
--systemId=N # A numeric value representing the system identification
|
133
|
+
--filename=FILENAME # The artifact file name
|
134
|
+
[--compress], [--no-compress] # BOOLEAN - true or false.
|
135
|
+
```
|
136
|
+
**The same format is applicable for POST, PUT and DELETE requests as well, however there may be additional help content**
|
120
137
|
|
121
138
|
|
122
139
|
## Usage - GET
|
123
140
|
|
124
|
-
### ```get test connection```
|
125
|
-
[top](#api-endpoints-provided)
|
126
|
-
|
141
|
+
### ```get test connection```
|
127
142
|
---
|
128
143
|
The Test Connection endpoint provides the ability to verify connection to the web service.
|
129
144
|
|
130
145
|
$ bundle exec exe/emasser get test connection
|
131
146
|
|
132
147
|
A return of success from the call indicates that the CLI can reach the configure server URL.
|
133
|
-
References [Required Environment Variables](#required-environment-variables)
|
148
|
+
References [Required Environment Variables](#required-environment-variables) for the necessary environment variables.
|
134
149
|
|
135
|
-
### ```get system```
|
136
150
|
[top](#api-endpoints-provided)
|
137
151
|
|
152
|
+
### ```get system```
|
153
|
+
|
138
154
|
---
|
139
|
-
The `get system
|
155
|
+
The `get system` command is not a sanctioned eMASS endpoint, it makes use of the `get systems` endpoint with added business logic.
|
156
|
+
|
157
|
+
There are two commands provided by the get system:
|
140
158
|
|
141
|
-
The `get system
|
159
|
+
- The `get system id` - returns system ID's based on the system `name` or `owner`
|
160
|
+
- The `get system byId` - returns the system content for parameter system ID
|
142
161
|
|
143
162
|
### get system id
|
144
163
|
Retrieves a system identification based on the SYSTEM_NAME (name) or SYSTEM_OWNER (systemOwner) fields.
|
145
164
|
|
146
|
-
|
147
|
-
|
148
|
-
To invoke the `get system` use the following command:
|
165
|
+
To invoke the `get system id` use the following command:
|
149
166
|
|
150
167
|
$ bundle exec exe/emasser get system id --system_name "system name" --system_owner "system owner"
|
151
168
|
|
@@ -155,7 +172,7 @@ If using a platform that has `awk` installed the following command can be used t
|
|
155
172
|
|
156
173
|
|
157
174
|
### get system byId
|
158
|
-
|
175
|
+
Retrieves the system content for provided identification (ID) number. To invoke the endpoint use the following command:
|
159
176
|
|
160
177
|
$ bundle exec exe/emasser get system byId
|
161
178
|
|
@@ -172,14 +189,16 @@ To view a system by its identification (Id) use the following command:
|
|
172
189
|
|--includePackage |BOOLEAN - true or false |
|
173
190
|
|--policy |Possible values: diacap, rmf, reporting |
|
174
191
|
|
192
|
+
[top](#api-endpoints-provided)
|
175
193
|
|
176
194
|
### ```get systems```
|
177
|
-
[top](#api-endpoints-provided)
|
178
195
|
|
179
196
|
----
|
180
|
-
To
|
181
|
-
|
197
|
+
To retrieve controls use the following command:
|
198
|
+
- all - Retrieves all available systems
|
199
|
+
```
|
182
200
|
$ bundle exec exe/emasser get systems all
|
201
|
+
```
|
183
202
|
|
184
203
|
- Optional parameters are:
|
185
204
|
|
@@ -192,12 +211,11 @@ To view systems use the following command:
|
|
192
211
|
|--includePackage |BOOLEAN - true or false |
|
193
212
|
|--policy |Possible values: diacap, rmf, reporting |
|
194
213
|
|--registrationType |Possible values: assessAndAuthorize, assessOnly, guest, regular, functional, |
|
195
|
-
| |
|
214
|
+
| | cloudServiceProvider, commonControlProvider |
|
196
215
|
|--reportsForScorecard |BOOLEAN - true or false |
|
197
216
|
|
198
|
-
|
199
|
-
### ```get roles```
|
200
217
|
[top](#api-endpoints-provided)
|
218
|
+
### ```get roles```
|
201
219
|
|
202
220
|
----
|
203
221
|
There are two get endpoints for system roles:
|
@@ -223,12 +241,11 @@ There are two get endpoints for system roles:
|
|
223
241
|
|--policy |Possible values: diacap, rmf, reporting |
|
224
242
|
|--includeDecommissioned |BOOLEAN - true or false |
|
225
243
|
|
226
|
-
|
227
|
-
### ```get controls```
|
228
244
|
[top](#api-endpoints-provided)
|
245
|
+
### ```get controls```
|
229
246
|
|
230
247
|
----
|
231
|
-
To
|
248
|
+
To retrieve controls use the following command:
|
232
249
|
|
233
250
|
$ bundle exec exe/emasser get controls forSystem --systemId=SYSTEMID
|
234
251
|
|
@@ -244,12 +261,11 @@ To view controls use the following command:
|
|
244
261
|
|-------------|:------------------------------------------|
|
245
262
|
|--acronyms |The system acronym(s) e.g "AC-1, AC-2" - if not provided all controls for systemId are returned |
|
246
263
|
|
247
|
-
|
248
|
-
### ```get test_results```
|
249
264
|
[top](#api-endpoints-provided)
|
265
|
+
### ```get test_results```
|
250
266
|
|
251
267
|
----
|
252
|
-
To
|
268
|
+
To retrieve test results use the following command:
|
253
269
|
|
254
270
|
$ bundle exec exe/emasser get test_results forSystem --systemId=SYSTEMID
|
255
271
|
|
@@ -267,9 +283,8 @@ To view test results use the following command:
|
|
267
283
|
|--ccis |String - The system CCIS string numerical value |
|
268
284
|
|--latestOnly |BOOLEAN - true or false|
|
269
285
|
|
270
|
-
|
271
|
-
### ```get poams```
|
272
286
|
[top](#api-endpoints-provided)
|
287
|
+
### ```get poams```
|
273
288
|
|
274
289
|
----
|
275
290
|
There are two get endpoints for system poams:
|
@@ -305,9 +320,8 @@ There are two get endpoints for system poams:
|
|
305
320
|
|--systemId |Integer - Unique system identifier |
|
306
321
|
|--poamId |Integer - Unique poam identifier |
|
307
322
|
|
308
|
-
|
309
|
-
### ```get milestones```
|
310
323
|
[top](#api-endpoints-provided)
|
324
|
+
### ```get milestones```
|
311
325
|
|
312
326
|
----
|
313
327
|
There are two get endpoints for system milestones:
|
@@ -342,9 +356,8 @@ There are two get endpoints for system milestones:
|
|
342
356
|
|--poamId |Integer - Unique poam identifier |
|
343
357
|
|--milestoneId |Integer - Unique milestone identifier |
|
344
358
|
|
345
|
-
|
346
|
-
### ```get artifacts```
|
347
359
|
[top](#api-endpoints-provided)
|
360
|
+
### ```get artifacts```
|
348
361
|
|
349
362
|
----
|
350
363
|
There are two get endpoints that provides the ability to view existing `Artifacts` in a system:
|
@@ -378,11 +391,14 @@ There are two get endpoints that provides the ability to view existing `Artifact
|
|
378
391
|
|-------------|:----------------------------------|
|
379
392
|
|--systemId |Integer - Unique system identifier |
|
380
393
|
|--filename |The artifact file name |
|
394
|
+
|
395
|
+
- optional parameter is:
|
396
|
+
|parameter | type or values |
|
397
|
+
|-------------|:----------------------------------|
|
381
398
|
|--compress |BOOLEAN - true or false. |
|
382
399
|
|
383
|
-
|
384
|
-
### ```get cac```
|
385
400
|
[top](#api-endpoints-provided)
|
401
|
+
### ```get cac```
|
386
402
|
|
387
403
|
----
|
388
404
|
To view one or many Control Approval Chain (CAC) in a system specified system ID use the following command:
|
@@ -401,9 +417,8 @@ To view one or many Control Approval Chain (CAC) in a system specified system ID
|
|
401
417
|
|-------------------------------|:----------------------------------------------|
|
402
418
|
|--controlAcronyms |String - The system acronym(s) e.g "AC-1, AC-2"|
|
403
419
|
|
404
|
-
|
405
|
-
### ```get pac```
|
406
420
|
[top](#api-endpoints-provided)
|
421
|
+
### ```get pac```
|
407
422
|
|
408
423
|
----
|
409
424
|
To view one or many Package Approval Chain (PAC) in a system specified system ID use the following command:
|
@@ -417,9 +432,8 @@ To view one or many Package Approval Chain (PAC) in a system specified system ID
|
|
417
432
|
|-------------|:----------------------------------|
|
418
433
|
|--systemId |Integer - Unique system identifier |
|
419
434
|
|
420
|
-
|
421
|
-
### ```get cmmc```
|
422
435
|
[top](#api-endpoints-provided)
|
436
|
+
### ```get cmmc```
|
423
437
|
|
424
438
|
----
|
425
439
|
To view Cybersecurity Maturity Model Certification (CMMC) Assessments use the following command:
|
@@ -432,9 +446,8 @@ To view Cybersecurity Maturity Model Certification (CMMC) Assessments use the fo
|
|
432
446
|
|----------------|:--------------------------------------|
|
433
447
|
|--sinceDate |Date - The CMMC date. Unix date format |
|
434
448
|
|
435
|
-
|
436
|
-
### ```get workflow_definitions```
|
437
449
|
[top](#api-endpoints-provided)
|
450
|
+
### ```get workflow_definitions```
|
438
451
|
|
439
452
|
----
|
440
453
|
To view Workflow Definitions use the following command:
|
@@ -447,22 +460,15 @@ To view Workflow Definitions use the following command:
|
|
447
460
|
|---------------------|:----------------------------------------------------------------------------|
|
448
461
|
|--includeInactive |BOOLEAN - true or false |
|
449
462
|
|--registrationType |Possible values: assessAndAuthorize, assessOnly, guest, regular, functional, |
|
450
|
-
| |
|
451
|
-
|
463
|
+
| | cloudServiceProvider, commonControlProvider |
|
452
464
|
|
453
|
-
### ```get workflow_instances```
|
454
465
|
[top](#api-endpoints-provided)
|
455
466
|
|
467
|
+
### ```get workflow_instances```
|
456
468
|
----
|
457
469
|
There are two get endpoints to view workflow instances:
|
458
|
-
-
|
459
|
-
$ bundle exec exe/emasser get workflow_instances
|
460
|
-
|
461
|
-
- required parameter is:
|
462
|
-
|
463
|
-
|parameter | type or values |
|
464
|
-
|-------------|:----------------------------------|
|
465
|
-
|--systemId |Integer - Unique system identifier |
|
470
|
+
- all
|
471
|
+
$ bundle exec exe/emasser get workflow_instances all
|
466
472
|
|
467
473
|
- Optional parameters are:
|
468
474
|
|
@@ -474,21 +480,20 @@ There are two get endpoints to view workflow instances:
|
|
474
480
|
|--status |Possible values: active, inactive, all |
|
475
481
|
|
476
482
|
- byWorkflowInstanceId
|
477
|
-
$ bundle exec exe/emasser get workflow_instances byWorkflowInstanceId --
|
483
|
+
$ bundle exec exe/emasser get workflow_instances byWorkflowInstanceId --workflowInstanceId=--WORKFLOWID
|
478
484
|
|
479
485
|
- required parameter is:
|
480
486
|
|
481
487
|
|parameter | type or values |
|
482
488
|
|---------------------|:---------------------------------------------|
|
483
|
-
|--systemId |Integer - Unique system identifier |
|
484
489
|
|--workflowInstanceId |Integer - Unique workflow instance identifier |
|
485
490
|
|
491
|
+
[top](#api-endpoints-provided)
|
492
|
+
|
486
493
|
|
487
494
|
## Usage - POST
|
488
495
|
|
489
496
|
### ``post test_results``
|
490
|
-
[top](#api-endpoints-provided)
|
491
|
-
|
492
497
|
---
|
493
498
|
Test Result add (POST) endpoint API business rules.
|
494
499
|
|
@@ -529,11 +534,9 @@ For information at the command line use:
|
|
529
534
|
```
|
530
535
|
$ bundle exec exe/emasser post test_results help add
|
531
536
|
```
|
532
|
-
|
537
|
+
[top](#post)
|
533
538
|
|
534
539
|
### ``post poams``
|
535
|
-
[top](#api-endpoints-provided)
|
536
|
-
|
537
540
|
---
|
538
541
|
Plan of Action and Milestones (POA&M) add (POST) endpoint API business rules.
|
539
542
|
|
@@ -571,19 +574,23 @@ Business logic, the following rules apply when adding POA&Ms
|
|
571
574
|
- If the Security Control or Assessment Procedure does not exist in the system we may have to just import POA&M Item at the System Level.
|
572
575
|
|
573
576
|
|
574
|
-
The following parameters/fields have the following character limitations:
|
575
|
-
-
|
576
|
-
- Office / Organization (pocOrganization)
|
577
|
-
- First Name (pocFirstName)
|
578
|
-
- Last Name (pocLastName)
|
579
|
-
- Email (email)
|
580
|
-
- Phone Number (pocPhoneNumber)
|
581
|
-
-
|
582
|
-
-
|
583
|
-
-
|
584
|
-
-
|
585
|
-
-
|
586
|
-
|
577
|
+
The following POA&M parameters/fields have the following character limitations:
|
578
|
+
- Fields that can not exceed 100 characters:
|
579
|
+
- Office / Organization (`pocOrganization`)
|
580
|
+
- First Name (`pocFirstName`)
|
581
|
+
- Last Name (`pocLastName`)
|
582
|
+
- Email (`email`)
|
583
|
+
- Phone Number (`pocPhoneNumber`)
|
584
|
+
- External Unique ID (`externalUid`)
|
585
|
+
- Fields that can not exceed 250 characters:
|
586
|
+
- Resource (`resource`)
|
587
|
+
- Fields have can not exceed 2000 character:
|
588
|
+
- Vulnerability Description (`vulnerabilityDescription`)
|
589
|
+
- Source Identifying Vulnerability (`sourceIdentVuln`)
|
590
|
+
- Recommendations (`recommendations`)
|
591
|
+
- Risk Accepted Comments (`comments`)
|
592
|
+
- Milestone Description (`description`)
|
593
|
+
- Mitigation Justification (`mitigation`)
|
587
594
|
|
588
595
|
To add (POST) POA&Ms use the following command:
|
589
596
|
```
|
@@ -602,30 +609,30 @@ $ bundle exec exe/emasser post poams add --systemId [value] --status [value] --v
|
|
602
609
|
Client API parameters/fields (required, conditional, and optional).
|
603
610
|
- required parameter are:
|
604
611
|
|
605
|
-
|parameter | type or values
|
606
|
-
|
607
|
-
|--systemId |Integer - Unique system identifier
|
608
|
-
|--status |Possible Values: Ongoing,Risk Accepted,Completed,Not Applicable
|
609
|
-
|--vulnerabilityDescription |String - Vulnerability description for the POA&M Item
|
610
|
-
|--sourceIdentVuln |String - Include Source Identifying Vulnerability text
|
611
|
-
|--pocOrganization |String - Organization/Office represented
|
612
|
-
|--resources |String - List of resources used. Character Limit = 250
|
612
|
+
|parameter | type or values |
|
613
|
+
|---------------------------|:---------------------------------------------------------------|
|
614
|
+
|--systemId |Integer - Unique system identifier |
|
615
|
+
|--status |Possible Values: Ongoing,Risk Accepted,Completed,Not Applicable |
|
616
|
+
|--vulnerabilityDescription |String - Vulnerability description for the POA&M Item |
|
617
|
+
|--sourceIdentVuln |String - Include Source Identifying Vulnerability text |
|
618
|
+
|--pocOrganization |String - Organization/Office represented |
|
619
|
+
|--resources |String - List of resources used. Character Limit = 250 |
|
613
620
|
|
614
621
|
** If any poc information is provided all POC fields are required. See additional details for POC fields below.
|
615
622
|
|
616
623
|
- conditional parameters are:
|
617
624
|
|
618
|
-
|parameter | type or values
|
619
|
-
|
620
|
-
|--milestones |JSON - see milestone format
|
621
|
-
|--pocFirstName |String - First name of POC
|
622
|
-
|--pocLastName |String - Last name of POC
|
623
|
-
|--pocEmail |String - Email address of POC
|
624
|
-
|--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format
|
625
|
-
|--severity |Possible values - Very Low, Low, Moderate, High, Very High
|
626
|
-
|--scheduledCompletionDate |Date - Required for ongoing and completed POA&M items. Unix time format
|
627
|
-
|--completionDate |Date - Field is required for completed POA&M items. Unix time format
|
628
|
-
|--comments |String - Field is required for completed and risk accepted POA&M items.
|
625
|
+
|parameter | type or values |
|
626
|
+
|--------------------------|:------------------------------------------------------------------------|
|
627
|
+
|--milestones |JSON - see milestone format |
|
628
|
+
|--pocFirstName |String - First name of POC |
|
629
|
+
|--pocLastName |String - Last name of POC |
|
630
|
+
|--pocEmail |String - Email address of POC |
|
631
|
+
|--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format |
|
632
|
+
|--severity |Possible values - Very Low, Low, Moderate, High, Very High |
|
633
|
+
|--scheduledCompletionDate |Date - Required for ongoing and completed POA&M items. Unix time format |
|
634
|
+
|--completionDate |Date - Field is required for completed POA&M items. Unix time format |
|
635
|
+
|--comments |String - Field is required for completed and risk accepted POA&M items. |
|
629
636
|
|
630
637
|
** If a POC email is supplied, the application will attempt to locate a user already registered within the application and pre-populate any information not explicitly supplied in the request. If no such user is found, these fields are required within the request:
|
631
638
|
pocFirstName, pocLastName, pocPhoneNumber
|
@@ -637,7 +644,7 @@ Client API parameters/fields (required, conditional, and optional).
|
|
637
644
|
|
638
645
|
|parameter | type or values |
|
639
646
|
|--------------------|:-----------------------------------------------------------------------------------------|
|
640
|
-
|--externalUid |String - External unique identifier for use with associating POA&M Items
|
647
|
+
|--externalUid |String - External unique identifier for use with associating POA&M Items |
|
641
648
|
|--controlAcronym |String - Control acronym associated with the POA&M Item. NIST SP 800-53 Revision 4 defined|
|
642
649
|
|--cci |String - CCI associated with the test result |
|
643
650
|
|--securityChecks |String - Security Checks that are associated with the POA&M |
|
@@ -647,8 +654,8 @@ Client API parameters/fields (required, conditional, and optional).
|
|
647
654
|
|--impact |Possible values: Very Low, Low, Moderate, High, Very High |
|
648
655
|
|--impactDescription |String - Include description of Security Control’s impact |
|
649
656
|
|--residualRiskLevel |Possible values: Very Low, Low, Moderate, High, Very High |
|
650
|
-
|--recommendations |String - Include recommendations
|
651
|
-
|--mitigation |String - Include mitigation explanation
|
657
|
+
|--recommendations |String - Include recommendations |
|
658
|
+
|--mitigation |String - Include mitigation explanation |
|
652
659
|
|
653
660
|
|
654
661
|
**Note**
|
@@ -656,11 +663,9 @@ For information at the command line use:
|
|
656
663
|
```
|
657
664
|
$ bundle exec exe/emasser post poams help add
|
658
665
|
```
|
659
|
-
|
666
|
+
[top](#post)
|
660
667
|
|
661
668
|
### ``post milestones``
|
662
|
-
[top](#api-endpoints-provided)
|
663
|
-
|
664
669
|
---
|
665
670
|
To add (POST) milestones in a system for one or more POA&M items use the following command:
|
666
671
|
|
@@ -682,11 +687,9 @@ For information at the command line use:
|
|
682
687
|
```
|
683
688
|
$ bundle exec exe/emasser post milestones help add
|
684
689
|
```
|
685
|
-
|
690
|
+
[top](#post)
|
686
691
|
|
687
692
|
### ``post artifacts``
|
688
|
-
[top](#api-endpoints-provided)
|
689
|
-
|
690
693
|
---
|
691
694
|
The add (POST) artifacts endpoint accepts a single binary file with file extension.zip only. The command line (CI) reads the files provided and zips them before sending to eMASS.
|
692
695
|
|
@@ -743,11 +746,9 @@ For information at the command line use:
|
|
743
746
|
```
|
744
747
|
$ bundle exec exe/emasser post artifacts help upload
|
745
748
|
```
|
746
|
-
|
749
|
+
[top](#post)
|
747
750
|
|
748
751
|
### ``post cac``
|
749
|
-
[top](#api-endpoints-provided)
|
750
|
-
|
751
752
|
----
|
752
753
|
Submit control to second role of CAC
|
753
754
|
|
@@ -777,11 +778,9 @@ For information at the command line use:
|
|
777
778
|
```
|
778
779
|
$ bundle exec exe/emasser post cac help add
|
779
780
|
```
|
780
|
-
|
781
|
+
[top](#post)
|
781
782
|
|
782
783
|
### ``post pac``
|
783
|
-
[top](#api-endpoints-provided)
|
784
|
-
|
785
784
|
----
|
786
785
|
Submit control to second role of CAC
|
787
786
|
|
@@ -797,20 +796,17 @@ To add (POST) test PAC use the following command:
|
|
797
796
|
|--systemId |Integer - Unique system identifier |
|
798
797
|
|--workflow |Possible Values: Assess and Authorize, Assess Only, Security Plan Approval |
|
799
798
|
|--name |String - Package name. 100 Characters |
|
800
|
-
|--comments |
|
799
|
+
|--comments |String - Comments submitted upon initiation of the indicated workflow, 4,000 character|
|
801
800
|
|
802
801
|
**Note**
|
803
802
|
For information at the command line use:
|
804
803
|
```
|
805
804
|
$ bundle exec exe/emasser post pac help add
|
806
805
|
```
|
807
|
-
|
806
|
+
[top](#post)
|
808
807
|
|
809
808
|
### ``post static_code_scan``
|
810
|
-
[top](#api-endpoints-provided)
|
811
|
-
|
812
809
|
----
|
813
|
-
|
814
810
|
To add (POST) static code scans use the following command:
|
815
811
|
|
816
812
|
````
|
@@ -856,12 +852,139 @@ For information at the command line use:
|
|
856
852
|
```
|
857
853
|
$ bundle exec exe/emasser post scan_findings help add
|
858
854
|
```
|
855
|
+
[top](#post)
|
856
|
+
|
857
|
+
### ```post cloud_resource```
|
858
|
+
---
|
859
|
+
|
860
|
+
The following Cloud Resource parameters/fields have the following character limitations:
|
861
|
+
- Fields that can not exceed 50 characters:
|
862
|
+
- Policy Deployment Version (`policyDeploymentVersion`)
|
863
|
+
- Fields that can not exceed 100 characters:
|
864
|
+
- Assessment Procedure (`assessmentProcedure`)
|
865
|
+
- Security Control Acronym (`control`)
|
866
|
+
- CSP Account ID (`cspAccountId`)
|
867
|
+
- CSP Region (`cspRegion`)
|
868
|
+
- Email of POC (`initiatedBy`)
|
869
|
+
- Cloud Service Provider (`provider`)
|
870
|
+
- Type of Cloud resource (`resourceType`)
|
871
|
+
- Fields that can not exceed 500 characters:
|
872
|
+
- CSP/Resource’s Policy ID (`cspPolicyDefinitionId`)
|
873
|
+
- Policy Deployment Name (`policyDeploymentName`)
|
874
|
+
- Policy Compliance ID (`resourceId`)
|
875
|
+
- Cloud Resource Name (`resourceName`)
|
876
|
+
- Fields that can not exceed 1000 characters:
|
877
|
+
- Reason for Compliance (`complianceReason`)
|
878
|
+
- Fields that can not exceed 2000 characters:
|
879
|
+
- Policy Short Title (`policyDefinitionTitle`)
|
880
|
+
|
881
|
+
To add a cloud resource and their scan results in the assets module for a system use the following command:
|
882
|
+
````
|
883
|
+
$ bundle exec exe/emasser post cloud_resource add --systemId [value] --provider [value] --resourceId [value] --resourceName [value] --resourceType [value] --cspPolicyDefinitionId [value] --isCompliant or --is-not-Compliant --policyDefinitionTitle [value] --test [value]
|
884
|
+
````
|
885
|
+
- required parameter are:
|
886
|
+
|
887
|
+
|parameter | type or values |
|
888
|
+
|------------------------|:--------------------------------------------------------------------------|
|
889
|
+
|--systemId |Integer - Unique system identifier |
|
890
|
+
|--provider |string - Cloud service provider name |
|
891
|
+
|--resourceId |String - Unique identifier/resource namespace for policy compliance result |
|
892
|
+
|--resourceName |String - Friendly name of Cloud resource |
|
893
|
+
|--resourceType |String - Type of Cloud resource |
|
894
|
+
|--cspPolicyDefinitionId |String - Unique identifier/compliance namespace for CSP/Resource\'s policy definition/compliance check|
|
895
|
+
|--isCompliant | Boolean - Compliance status of the policy for the identified cloud resource |
|
896
|
+
|--policyDefinitionTitle | String - Friendly policy/compliance check title. Recommend short title |
|
897
|
+
|
898
|
+
- optional parameters are:
|
899
|
+
|
900
|
+
|parameter | type or values |
|
901
|
+
|-------------------|:------------------------------------------------------|
|
902
|
+
|--initiatedBy |String - Person initiating the process email address |
|
903
|
+
|--cspAccountId |String - System/owner\'s CSP account ID/number |
|
904
|
+
|--cspRegion |String - CSP region of system |
|
905
|
+
|--isBaseline |Boolean - Flag that indicates in results is a baseline |
|
906
|
+
|Tags Object (tags)|
|
907
|
+
|--text | String - Text that specifies the tag type |
|
908
|
+
|Compliance Results Array Objects (complianceResults)|
|
909
|
+
|--assessmentProcedure |String - Comma separated correlation to Assessment Procedure (i.e. CCI number for DoD Control Set) |
|
910
|
+
|--complianceCheckTimestamp |Date - The compliance check date - Unix time format |
|
911
|
+
|--complianceReason |String - Reason/comments for compliance result |
|
912
|
+
|--control |String - Comma separated correlation to Security Control (e.g. exact NIST Control acronym) |
|
913
|
+
|--policyDeploymentName |String - Name of policy deployment |
|
914
|
+
|--policyDeploymentVersion |String - Version of policy deployment |
|
915
|
+
|--severity |Possible Values: Low, Medium, High, Critical |
|
916
|
+
|
917
|
+
|
918
|
+
**Note**
|
919
|
+
For information at the command line use:
|
920
|
+
```
|
921
|
+
$ bundle exec exe/emasser post cloud_resource help add
|
922
|
+
```
|
923
|
+
|
924
|
+
[top](#post)
|
925
|
+
|
926
|
+
|
927
|
+
### ```post container```
|
928
|
+
---
|
929
|
+
The following Container parameters/fields have the following character limitations:
|
930
|
+
- Fields that can not exceed 100 characters:
|
931
|
+
- STIG Benchmark ID (`benchmark`)
|
932
|
+
- Container Namespace (`namespace`)
|
933
|
+
- Kubernetes assigned IP (`podIp`)
|
934
|
+
- Kubernetes Pod Name) (`podName`)
|
935
|
+
- Fields that can not exceed 500 characters:
|
936
|
+
- Container ID (`containerId`)
|
937
|
+
- Friendly Container Name (`containerName`)
|
938
|
+
- Fields that can not exceed 1000 characters:
|
939
|
+
- Result Comments (`message`)
|
940
|
+
|
941
|
+
|
942
|
+
|
943
|
+
To add containers and their scan results in the assets module for a system use the following command:
|
944
|
+
````
|
945
|
+
$ bundle exec ruby exe/emasser post container add --systemId [value] --containerId [value] --containerName [value] --time [value] --benchmark [value] --lastSeen [value] --ruleId [value] --status [value]
|
946
|
+
|
947
|
+
````
|
948
|
+
|
949
|
+
- required parameter are:
|
950
|
+
|
951
|
+
|parameter | type or values |
|
952
|
+
|------------------------|:--------------------------------------------------------------------------|
|
953
|
+
|--systemId |Integer - Unique system identifier |
|
954
|
+
|--containerId |String - Unique identifier of the container |
|
955
|
+
|--containerName |String - Friendly name of the container |
|
956
|
+
|--time |Date - Datetime of scan/result. Unix date format |
|
957
|
+
|Bench Marks Object (benchmarks)|
|
958
|
+
|--benchmark |String - Identifier of the benchmark/grouping of compliance results |
|
959
|
+
|benchmarks.results |Object
|
960
|
+
|--ruleId |String - Identifier for the compliance result, vulnerability, etc.
|
961
|
+
|--status |String - Benchmark result status
|
962
|
+
|--lastSeen |Date - Date last seen, Unix date format
|
963
|
+
|
964
|
+
- optional parameters are:
|
965
|
+
|
966
|
+
|parameter | type or values |
|
967
|
+
|----------------------------|:------------------------------------------------------|
|
968
|
+
|--podName |String - Name of pod (e.g. Kubernetes pod) |
|
969
|
+
|--podIp |String - IP address of pod |
|
970
|
+
|--namespace |String - Namespace of container in container orchestration (e.g. Kubernetes namespace)|
|
971
|
+
|Tags Object (tags)|
|
972
|
+
|--text | String - Text that specifies the tag type |
|
973
|
+
|Bench Marks Object (benchmarks)
|
974
|
+
|--isBaseline |Boolean - True/false flag for providing results as baseline. If true, all existing compliance results for the provided benchmark within the container will be replaced by results in the current call|
|
975
|
+
|benchmarks.results |Object
|
976
|
+
|--message |String - Comments for the result
|
859
977
|
|
978
|
+
**Note**
|
979
|
+
For information at the command line use:
|
980
|
+
```
|
981
|
+
$ bundle exec exe/emasser post container help add
|
982
|
+
```
|
983
|
+
[top](#post)
|
860
984
|
|
861
985
|
## Usage - PUT
|
862
986
|
|
863
987
|
### ``put controls``
|
864
|
-
[top](#api-endpoints-provided)
|
865
988
|
|
866
989
|
----
|
867
990
|
Business Rules
|
@@ -880,16 +1003,16 @@ Implementation Plan cannot be updated if a Security Control is "Inherited" excep
|
|
880
1003
|
|
881
1004
|
The following parameters/fields have the following character limitations:
|
882
1005
|
- Implementation Plan information cannot be saved if the fields below exceed 2,000 character limits:
|
883
|
-
- N/A Justification (naJustification)
|
884
|
-
- Responsible Entities (responsibleEntities)
|
885
|
-
- Implementation Narrative (implementationNarrative)
|
886
|
-
- Criticality (slcmCriticality)
|
887
|
-
- Reporting (slcmReporting)
|
888
|
-
- Tracking (slcmTracking)
|
889
|
-
- Vulnerability Summary (vulnerabilitySummary)
|
890
|
-
- Recommendations (recommendations)
|
1006
|
+
- N/A Justification (`naJustification`)
|
1007
|
+
- Responsible Entities (`responsibleEntities`)
|
1008
|
+
- Implementation Narrative (`implementationNarrative`)
|
1009
|
+
- Criticality (`slcmCriticality`)
|
1010
|
+
- Reporting (`slcmReporting`)
|
1011
|
+
- Tracking (`slcmTracking`)
|
1012
|
+
- Vulnerability Summary (`vulnerabilitySummary`)
|
1013
|
+
- Recommendations (`recommendations`)
|
891
1014
|
- Implementation Plan information cannot be saved if the fields below exceed 4,000 character limits:
|
892
|
-
- SLCM Comments (slcmComments)
|
1015
|
+
- SLCM Comments (`slcmComments`)
|
893
1016
|
|
894
1017
|
Implementation Plan information cannot be updated if Security Control does not exist in the system record.
|
895
1018
|
|
@@ -941,10 +1064,9 @@ For information at the command line use:
|
|
941
1064
|
```
|
942
1065
|
$ bundle exec exe/emasser put controls help update
|
943
1066
|
```
|
944
|
-
|
1067
|
+
[top](#put)
|
945
1068
|
|
946
1069
|
### ``put poams``
|
947
|
-
[top](#api-endpoints-provided)
|
948
1070
|
|
949
1071
|
----
|
950
1072
|
Business Rules
|
@@ -994,6 +1116,26 @@ The following parameters/fields have the following character limitations:
|
|
994
1116
|
- POA&M Item cannot be saved if Resource field (resource) exceeds 250 characters.
|
995
1117
|
- POA&M Items cannot be saved if Milestone Description (description) exceeds 2,000 characters.
|
996
1118
|
|
1119
|
+
|
1120
|
+
The following POA&M parameters/fields have the following character limitations:
|
1121
|
+
- Fields that can not exceed 100 characters:
|
1122
|
+
- Office / Organization (`pocOrganization`)
|
1123
|
+
- First Name (`pocFirstName`)
|
1124
|
+
- Last Name (`pocLastName`)
|
1125
|
+
- Email (`email`)
|
1126
|
+
- Phone Number (`pocPhoneNumber`)
|
1127
|
+
- External Unique ID (`externalUid`)
|
1128
|
+
- Fields that can not exceed 250 characters:
|
1129
|
+
- Resource (`resource`)
|
1130
|
+
- Fields have can not exceed 2000 character:
|
1131
|
+
- Vulnerability Description (`vulnerabilityDescription`)
|
1132
|
+
- Source Identifying Vulnerability (`sourceIdentVuln`)
|
1133
|
+
- Recommendations (`recommendations`)
|
1134
|
+
- Risk Accepted Comments (`comments`)
|
1135
|
+
- Milestone Description (`description`)
|
1136
|
+
- Mitigation Justification (`mitigation`)
|
1137
|
+
|
1138
|
+
|
997
1139
|
---
|
998
1140
|
Updating (PUT) a POA&M can be accomplished by invoking the following command:
|
999
1141
|
````
|
@@ -1001,32 +1143,32 @@ Updating (PUT) a POA&M can be accomplished by invoking the following command:
|
|
1001
1143
|
````
|
1002
1144
|
- required parameter are:
|
1003
1145
|
|
1004
|
-
|parameter | type or values
|
1005
|
-
|
1006
|
-
|--systemId |Integer - Unique system identifier
|
1007
|
-
|--displayPoamId |Integer - Globally unique identifier for individual POA&M Items
|
1008
|
-
|--status |Possible Values: Ongoing,Risk Accepted,Completed,Not Applicable
|
1009
|
-
|--vulnerabilityDescription |String - Vulnerability description for the POA&M Item
|
1010
|
-
|--sourceIdentVuln |String - Include Source Identifying Vulnerability text
|
1011
|
-
|--pocOrganization |String - Organization/Office represented
|
1012
|
-
|--resources |String - List of resources used. Character Limit = 250
|
1146
|
+
|parameter | type or values |
|
1147
|
+
|---------------------------|:---------------------------------------------------------------|
|
1148
|
+
|--systemId |Integer - Unique system identifier |
|
1149
|
+
|--displayPoamId |Integer - Globally unique identifier for individual POA&M Items |
|
1150
|
+
|--status |Possible Values: Ongoing,Risk Accepted,Completed,Not Applicable |
|
1151
|
+
|--vulnerabilityDescription |String - Vulnerability description for the POA&M Item |
|
1152
|
+
|--sourceIdentVuln |String - Include Source Identifying Vulnerability text |
|
1153
|
+
|--pocOrganization |String - Organization/Office represented |
|
1154
|
+
|--resources |String - List of resources used. Character Limit = 250 |
|
1013
1155
|
|
1014
1156
|
** If any poc information is provided all POC fields are required. See additional details for POC fields below.
|
1015
1157
|
|
1016
1158
|
- conditional parameters are:
|
1017
1159
|
|
1018
|
-
|parameter | type or values
|
1019
|
-
|
1020
|
-
|--milestones |JSON - see milestone format
|
1021
|
-
|--pocFirstName |String - First name of POC
|
1022
|
-
|--pocLastName |String - Last name of POC
|
1023
|
-
|--pocEmail |String - Email address of POC
|
1024
|
-
|--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format
|
1025
|
-
|--severity |Possible values - Very Low, Low, Moderate, High, Very High
|
1026
|
-
|--scheduledCompletionDate |Date - Required for ongoing and completed POA&M items. Unix time format
|
1027
|
-
|--completionDate |Date - Field is required for completed POA&M items. Unix time format
|
1028
|
-
|--comments |String - Field is required for completed and risk accepted POA&M items
|
1029
|
-
|--isActive |Boolean - Used to delete milestones when updating a POA&M
|
1160
|
+
|parameter | type or values |
|
1161
|
+
|--------------------------|:-----------------------------------------------------------------------|
|
1162
|
+
|--milestones |JSON - see milestone format |
|
1163
|
+
|--pocFirstName |String - First name of POC |
|
1164
|
+
|--pocLastName |String - Last name of POC |
|
1165
|
+
|--pocEmail |String - Email address of POC |
|
1166
|
+
|--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format |
|
1167
|
+
|--severity |Possible values - Very Low, Low, Moderate, High, Very High |
|
1168
|
+
|--scheduledCompletionDate |Date - Required for ongoing and completed POA&M items. Unix time format |
|
1169
|
+
|--completionDate |Date - Field is required for completed POA&M items. Unix time format |
|
1170
|
+
|--comments |String - Field is required for completed and risk accepted POA&M items |
|
1171
|
+
|--isActive |Boolean - Used to delete milestones when updating a POA&M |
|
1030
1172
|
|
1031
1173
|
** If a POC email is supplied, the application will attempt to locate a user already registered within the application and pre-populate any information not explicitly supplied in the request. If no such user is found, these fields are required within the request:
|
1032
1174
|
pocFirstName, pocLastName, pocPhoneNumber
|
@@ -1039,7 +1181,7 @@ Updating (PUT) a POA&M can be accomplished by invoking the following command:
|
|
1039
1181
|
|
1040
1182
|
|parameter | type or values |
|
1041
1183
|
|--------------------|:-----------------------------------------------------------------------------------------|
|
1042
|
-
|--externalUid |String - External unique identifier for use with associating POA&M Items
|
1184
|
+
|--externalUid |String - External unique identifier for use with associating POA&M Items |
|
1043
1185
|
|--controlAcronym |String - Control acronym associated with the POA&M Item. NIST SP 800-53 Revision 4 defined|
|
1044
1186
|
|--cci |String - CCI associated with the test result |
|
1045
1187
|
|--securityChecks |String - Security Checks that are associated with the POA&M |
|
@@ -1049,7 +1191,7 @@ Updating (PUT) a POA&M can be accomplished by invoking the following command:
|
|
1049
1191
|
|--impact |Possible values: Very Low, Low, Moderate, High, Very High |
|
1050
1192
|
|--impactDescription |String - Include description of Security Control’s impact |
|
1051
1193
|
|--residualRiskLevel |Possible values: Very Low, Low, Moderate, High, Very High |
|
1052
|
-
|--recommendations |String - Include recommendations
|
1194
|
+
|--recommendations |String - Include recommendations |
|
1053
1195
|
|--mitigation |String - Include mitigation explanation. 2000 Characters |
|
1054
1196
|
|
1055
1197
|
**Note**
|
@@ -1057,10 +1199,9 @@ For information at the command line use:
|
|
1057
1199
|
```
|
1058
1200
|
$ bundle exec exe/emasser put poams help update
|
1059
1201
|
```
|
1060
|
-
|
1202
|
+
[top](#put)
|
1061
1203
|
|
1062
1204
|
### ``put milestones``
|
1063
|
-
[top](#api-endpoints-provided)
|
1064
1205
|
|
1065
1206
|
----
|
1066
1207
|
|
@@ -1085,10 +1226,9 @@ For information at the command line use:
|
|
1085
1226
|
```
|
1086
1227
|
$ bundle exec exe/emasser put milestones help update
|
1087
1228
|
```
|
1088
|
-
|
1229
|
+
[top](#put)
|
1089
1230
|
|
1090
1231
|
### ``put artifacts``
|
1091
|
-
[top](#api-endpoints-provided)
|
1092
1232
|
|
1093
1233
|
----
|
1094
1234
|
Business Rules
|
@@ -1141,12 +1281,11 @@ For information at the command line use:
|
|
1141
1281
|
```
|
1142
1282
|
$ bundle exec exe/emasser put artifacts help update
|
1143
1283
|
```
|
1144
|
-
|
1284
|
+
[top](#put)
|
1145
1285
|
|
1146
1286
|
## Usage - DELETE
|
1147
1287
|
|
1148
1288
|
### ``delete poams``
|
1149
|
-
[top](#api-endpoints-provided)
|
1150
1289
|
|
1151
1290
|
----
|
1152
1291
|
Remove one or many poa&m items in a system
|
@@ -1155,10 +1294,9 @@ To remove (DELETE) one or more POA&M items use the following command:
|
|
1155
1294
|
```
|
1156
1295
|
bundle exec exe/emasser delete poams remove --systemId [value] --poamId [value]
|
1157
1296
|
```
|
1158
|
-
|
1297
|
+
[top](#delete)
|
1159
1298
|
|
1160
1299
|
### ``delete milestones``
|
1161
|
-
[top](#api-endpoints-provided)
|
1162
1300
|
|
1163
1301
|
----
|
1164
1302
|
Remove milestones in a system for one or many POA&M items
|
@@ -1173,10 +1311,9 @@ To remove (DELETE) one or more Milestones in a system use the following command:
|
|
1173
1311
|
```
|
1174
1312
|
bundle exec exe/emasser delete milestones remove--systemId [value] --poamId [value] --milestoneId [value]
|
1175
1313
|
```
|
1176
|
-
|
1314
|
+
[top](#delete)
|
1177
1315
|
|
1178
1316
|
### ``delete artifacts``
|
1179
|
-
[top](#api-endpoints-provided)
|
1180
1317
|
|
1181
1318
|
---
|
1182
1319
|
Remove one or many artifacts in a system
|
@@ -1191,3 +1328,4 @@ bundle exec exe/emasser delete artifacts remove --systemId [value] --files [valu
|
|
1191
1328
|
or
|
1192
1329
|
bundle exec exe/emasser delete artifacts remove --systemId [value] --files [value, value...]
|
1193
1330
|
```
|
1331
|
+
[top](#delete)
|