emasser 1.0.0 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (445) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +5 -8
  3. data/.env-example +3 -1
  4. data/.github/release-drafter.yml +2 -2
  5. data/.github/workflows/gh-pages.yml +4 -5
  6. data/.github/workflows/push-to-docker-mail.yml +28 -0
  7. data/.github/workflows/push-to-docker.yml +35 -0
  8. data/.github/workflows/release.yml +7 -3
  9. data/.github/workflows/test-cli.yml +4 -5
  10. data/.gitignore +3 -1
  11. data/Dockerfile +37 -3
  12. data/Gemfile +1 -1
  13. data/Gemfile.lock +37 -43
  14. data/README.md +131 -61
  15. data/docs/features.md +345 -207
  16. data/docs/images/emasser_architecture.jpg +0 -0
  17. data/emasser.gemspec +16 -12
  18. data/exe/emasser +0 -0
  19. data/images/emasser_architecture.jpg +0 -0
  20. data/images/emasser_diagram-Page-3.jpg +0 -0
  21. data/lib/emasser/cli.rb +12 -0
  22. data/lib/emasser/configuration.rb +22 -7
  23. data/lib/emasser/constants.rb +11 -3
  24. data/lib/emasser/delete.rb +14 -12
  25. data/lib/emasser/get.rb +83 -88
  26. data/lib/emasser/help/cloudresource_post_mapper.md +62 -0
  27. data/lib/emasser/help/container_post_mapper.md +44 -0
  28. data/lib/emasser/output_converters.rb +101 -4
  29. data/lib/emasser/post.rb +248 -55
  30. data/lib/emasser/put.rb +29 -22
  31. data/lib/emasser/version.rb +1 -1
  32. data/lib/emasser.rb +1 -1
  33. metadata +64 -447
  34. data/.github/workflows/generate_docs.yml +0 -33
  35. data/TAGS +0 -2393
  36. data/docs/developers.md +0 -115
  37. data/docs/swagger/dist/favicon-16x16.png +0 -0
  38. data/docs/swagger/dist/favicon-32x32.png +0 -0
  39. data/docs/swagger/dist/oauth2-redirect.html +0 -75
  40. data/docs/swagger/dist/swagger-ui-bundle.js +0 -3
  41. data/docs/swagger/dist/swagger-ui-bundle.js.map +0 -1
  42. data/docs/swagger/dist/swagger-ui-es-bundle-core.js +0 -3
  43. data/docs/swagger/dist/swagger-ui-es-bundle-core.js.map +0 -1
  44. data/docs/swagger/dist/swagger-ui-es-bundle.js +0 -3
  45. data/docs/swagger/dist/swagger-ui-es-bundle.js.map +0 -1
  46. data/docs/swagger/dist/swagger-ui-standalone-preset.js +0 -3
  47. data/docs/swagger/dist/swagger-ui-standalone-preset.js.map +0 -1
  48. data/docs/swagger/dist/swagger-ui.css +0 -4
  49. data/docs/swagger/dist/swagger-ui.css.map +0 -1
  50. data/docs/swagger/dist/swagger-ui.js +0 -3
  51. data/docs/swagger/dist/swagger-ui.js.map +0 -1
  52. data/docs/swagger/index.html +0 -60
  53. data/emass_client/eMASSRestOpenApi.yaml +0 -5698
  54. data/emass_client/ruby_client/.gitignore +0 -39
  55. data/emass_client/ruby_client/.rspec +0 -2
  56. data/emass_client/ruby_client/.rubocop.yml +0 -154
  57. data/emass_client/ruby_client/.swagger-codegen/VERSION +0 -1
  58. data/emass_client/ruby_client/.swagger-codegen-ignore +0 -23
  59. data/emass_client/ruby_client/Gemfile +0 -9
  60. data/emass_client/ruby_client/README.md +0 -1284
  61. data/emass_client/ruby_client/Rakefile +0 -8
  62. data/emass_client/ruby_client/docs/ArtifactsApi.md +0 -284
  63. data/emass_client/ruby_client/docs/ArtifactsDelete.md +0 -6
  64. data/emass_client/ruby_client/docs/ArtifactsDeleteInner.md +0 -7
  65. data/emass_client/ruby_client/docs/ArtifactsExportApi.md +0 -76
  66. data/emass_client/ruby_client/docs/ArtifactsGet.md +0 -20
  67. data/emass_client/ruby_client/docs/ArtifactsRequestPutBody.md +0 -16
  68. data/emass_client/ruby_client/docs/ArtifactsResponseDel.md +0 -8
  69. data/emass_client/ruby_client/docs/ArtifactsResponseDelData.md +0 -9
  70. data/emass_client/ruby_client/docs/ArtifactsResponseGet.md +0 -8
  71. data/emass_client/ruby_client/docs/ArtifactsResponsePutPost.md +0 -8
  72. data/emass_client/ruby_client/docs/CACApi.md +0 -140
  73. data/emass_client/ruby_client/docs/CMMCAssessmentsApi.md +0 -71
  74. data/emass_client/ruby_client/docs/CacGet.md +0 -13
  75. data/emass_client/ruby_client/docs/CacRequestPostBody.md +0 -8
  76. data/emass_client/ruby_client/docs/CacResponseGet.md +0 -8
  77. data/emass_client/ruby_client/docs/CacResponsePost.md +0 -8
  78. data/emass_client/ruby_client/docs/CacResponsePostData.md +0 -9
  79. data/emass_client/ruby_client/docs/CmmcGet.md +0 -19
  80. data/emass_client/ruby_client/docs/CmmcResponseGet.md +0 -8
  81. data/emass_client/ruby_client/docs/ConnectivityCcsd.md +0 -8
  82. data/emass_client/ruby_client/docs/ControlsApi.md +0 -140
  83. data/emass_client/ruby_client/docs/ControlsGet.md +0 -36
  84. data/emass_client/ruby_client/docs/ControlsPut.md +0 -9
  85. data/emass_client/ruby_client/docs/ControlsRequestPutBody.md +0 -29
  86. data/emass_client/ruby_client/docs/ControlsResponseGet.md +0 -8
  87. data/emass_client/ruby_client/docs/ControlsResponsePut.md +0 -8
  88. data/emass_client/ruby_client/docs/DefinitionTransitions.md +0 -9
  89. data/emass_client/ruby_client/docs/DeleteMilestone.md +0 -7
  90. data/emass_client/ruby_client/docs/DeletePoam.md +0 -7
  91. data/emass_client/ruby_client/docs/Empty200Response.md +0 -6
  92. data/emass_client/ruby_client/docs/Error.md +0 -8
  93. data/emass_client/ruby_client/docs/InstancesTransitions.md +0 -12
  94. data/emass_client/ruby_client/docs/MilestoneResponseGet.md +0 -8
  95. data/emass_client/ruby_client/docs/MilestoneResponsePost.md +0 -8
  96. data/emass_client/ruby_client/docs/MilestoneResponsePut.md +0 -8
  97. data/emass_client/ruby_client/docs/MilestonesApi.md +0 -350
  98. data/emass_client/ruby_client/docs/MilestonesDelete.md +0 -6
  99. data/emass_client/ruby_client/docs/MilestonesGet.md +0 -12
  100. data/emass_client/ruby_client/docs/MilestonesPost.md +0 -6
  101. data/emass_client/ruby_client/docs/MilestonesPut.md +0 -6
  102. data/emass_client/ruby_client/docs/MilestonesPutPostDelete.md +0 -11
  103. data/emass_client/ruby_client/docs/MilestonesRequestPostBody.md +0 -9
  104. data/emass_client/ruby_client/docs/MilestonesRequestPutBody.md +0 -9
  105. data/emass_client/ruby_client/docs/MilestonesRequiredPost.md +0 -8
  106. data/emass_client/ruby_client/docs/MilestonesRequiredPut.md +0 -9
  107. data/emass_client/ruby_client/docs/Model200.md +0 -7
  108. data/emass_client/ruby_client/docs/Model201.md +0 -7
  109. data/emass_client/ruby_client/docs/Model201Meta.md +0 -8
  110. data/emass_client/ruby_client/docs/Model400.md +0 -7
  111. data/emass_client/ruby_client/docs/Model400Meta.md +0 -8
  112. data/emass_client/ruby_client/docs/Model400Response.md +0 -7
  113. data/emass_client/ruby_client/docs/Model401.md +0 -7
  114. data/emass_client/ruby_client/docs/Model401Meta.md +0 -8
  115. data/emass_client/ruby_client/docs/Model403.md +0 -7
  116. data/emass_client/ruby_client/docs/Model403Meta.md +0 -8
  117. data/emass_client/ruby_client/docs/Model404.md +0 -8
  118. data/emass_client/ruby_client/docs/Model404Response.md +0 -7
  119. data/emass_client/ruby_client/docs/Model405.md +0 -7
  120. data/emass_client/ruby_client/docs/Model405Meta.md +0 -8
  121. data/emass_client/ruby_client/docs/Model411.md +0 -7
  122. data/emass_client/ruby_client/docs/Model411Meta.md +0 -8
  123. data/emass_client/ruby_client/docs/Model490.md +0 -7
  124. data/emass_client/ruby_client/docs/Model490Meta.md +0 -8
  125. data/emass_client/ruby_client/docs/Model500.md +0 -7
  126. data/emass_client/ruby_client/docs/Model500Meta.md +0 -8
  127. data/emass_client/ruby_client/docs/PACApi.md +0 -137
  128. data/emass_client/ruby_client/docs/POAMApi.md +0 -346
  129. data/emass_client/ruby_client/docs/PacGet.md +0 -14
  130. data/emass_client/ruby_client/docs/PacPost.md +0 -9
  131. data/emass_client/ruby_client/docs/PacRequestPostBody.md +0 -9
  132. data/emass_client/ruby_client/docs/PacResponseGet.md +0 -8
  133. data/emass_client/ruby_client/docs/PacResponsePost.md +0 -8
  134. data/emass_client/ruby_client/docs/PoamDelete.md +0 -6
  135. data/emass_client/ruby_client/docs/PoamGet.md +0 -39
  136. data/emass_client/ruby_client/docs/PoamPost.md +0 -6
  137. data/emass_client/ruby_client/docs/PoamPostPutDel.md +0 -10
  138. data/emass_client/ruby_client/docs/PoamPut.md +0 -6
  139. data/emass_client/ruby_client/docs/PoamRequestPostBody.md +0 -6
  140. data/emass_client/ruby_client/docs/PoamRequestPutBody.md +0 -6
  141. data/emass_client/ruby_client/docs/PoamRequiredPost.md +0 -32
  142. data/emass_client/ruby_client/docs/PoamRequiredPut.md +0 -35
  143. data/emass_client/ruby_client/docs/PoamResponseDelete.md +0 -8
  144. data/emass_client/ruby_client/docs/PoamResponseGet.md +0 -8
  145. data/emass_client/ruby_client/docs/PoamResponsePost.md +0 -8
  146. data/emass_client/ruby_client/docs/PoamResponsePut.md +0 -8
  147. data/emass_client/ruby_client/docs/Register.md +0 -8
  148. data/emass_client/ruby_client/docs/RegisterData.md +0 -7
  149. data/emass_client/ruby_client/docs/RegisterUserRequestPostBody.md +0 -7
  150. data/emass_client/ruby_client/docs/RegistrationApi.md +0 -71
  151. data/emass_client/ruby_client/docs/RoleCategory.md +0 -10
  152. data/emass_client/ruby_client/docs/Roles.md +0 -9
  153. data/emass_client/ruby_client/docs/Ssps.md +0 -9
  154. data/emass_client/ruby_client/docs/Stage.md +0 -8
  155. data/emass_client/ruby_client/docs/StaticCodeApplication.md +0 -12
  156. data/emass_client/ruby_client/docs/StaticCodeRequestPostBody.md +0 -6
  157. data/emass_client/ruby_client/docs/StaticCodeRequiredPost.md +0 -8
  158. data/emass_client/ruby_client/docs/StaticCodeRequiredPostApplication.md +0 -8
  159. data/emass_client/ruby_client/docs/StaticCodeScansApi.md +0 -73
  160. data/emass_client/ruby_client/docs/Success200Response.md +0 -8
  161. data/emass_client/ruby_client/docs/SystemIdArtifactsBody.md +0 -10
  162. data/emass_client/ruby_client/docs/SystemResponse.md +0 -8
  163. data/emass_client/ruby_client/docs/SystemRolesApi.md +0 -137
  164. data/emass_client/ruby_client/docs/SystemRolesCategoryResponse.md +0 -8
  165. data/emass_client/ruby_client/docs/SystemRolesResponse.md +0 -8
  166. data/emass_client/ruby_client/docs/SystemRolesResponseData.md +0 -8
  167. data/emass_client/ruby_client/docs/Systems.md +0 -70
  168. data/emass_client/ruby_client/docs/SystemsApi.md +0 -155
  169. data/emass_client/ruby_client/docs/Test.md +0 -8
  170. data/emass_client/ruby_client/docs/TestApi.md +0 -66
  171. data/emass_client/ruby_client/docs/TestData.md +0 -7
  172. data/emass_client/ruby_client/docs/TestResultsApi.md +0 -144
  173. data/emass_client/ruby_client/docs/TestResultsGet.md +0 -15
  174. data/emass_client/ruby_client/docs/TestResultsPost.md +0 -9
  175. data/emass_client/ruby_client/docs/TestResultsRequestPostBody.md +0 -11
  176. data/emass_client/ruby_client/docs/TestResultsResponseGet.md +0 -8
  177. data/emass_client/ruby_client/docs/TestResultsResponsePost.md +0 -8
  178. data/emass_client/ruby_client/docs/Users.md +0 -9
  179. data/emass_client/ruby_client/docs/WorkflowDefinitionGet.md +0 -11
  180. data/emass_client/ruby_client/docs/WorkflowDefinitionResponseGet.md +0 -8
  181. data/emass_client/ruby_client/docs/WorkflowDefinitionsApi.md +0 -74
  182. data/emass_client/ruby_client/docs/WorkflowInstancesApi.md +0 -146
  183. data/emass_client/ruby_client/docs/WorkflowInstancesGet.md +0 -16
  184. data/emass_client/ruby_client/docs/WorkflowInstancesResponseGet.md +0 -8
  185. data/emass_client/ruby_client/git_push.sh +0 -55
  186. data/emass_client/ruby_client/lib/swagger_client/api/artifacts_api.rb +0 -310
  187. data/emass_client/ruby_client/lib/swagger_client/api/artifacts_export_api.rb +0 -86
  188. data/emass_client/ruby_client/lib/swagger_client/api/cac_api.rb +0 -143
  189. data/emass_client/ruby_client/lib/swagger_client/api/cmmc_assessments_api.rb +0 -77
  190. data/emass_client/ruby_client/lib/swagger_client/api/controls_api.rb +0 -143
  191. data/emass_client/ruby_client/lib/swagger_client/api/milestones_api.rb +0 -366
  192. data/emass_client/ruby_client/lib/swagger_client/api/pac_api.rb +0 -140
  193. data/emass_client/ruby_client/lib/swagger_client/api/poam_api.rb +0 -345
  194. data/emass_client/ruby_client/lib/swagger_client/api/registration_api.rb +0 -78
  195. data/emass_client/ruby_client/lib/swagger_client/api/static_code_scans_api.rb +0 -84
  196. data/emass_client/ruby_client/lib/swagger_client/api/system_roles_api.rb +0 -150
  197. data/emass_client/ruby_client/lib/swagger_client/api/systems_api.rb +0 -162
  198. data/emass_client/ruby_client/lib/swagger_client/api/test_api.rb +0 -70
  199. data/emass_client/ruby_client/lib/swagger_client/api/test_results_api.rb +0 -149
  200. data/emass_client/ruby_client/lib/swagger_client/api/workflow_definitions_api.rb +0 -76
  201. data/emass_client/ruby_client/lib/swagger_client/api/workflow_instances_api.rb +0 -153
  202. data/emass_client/ruby_client/lib/swagger_client/api_client.rb +0 -389
  203. data/emass_client/ruby_client/lib/swagger_client/api_error.rb +0 -57
  204. data/emass_client/ruby_client/lib/swagger_client/configuration.rb +0 -224
  205. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete.rb +0 -201
  206. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_delete_inner.rb +0 -207
  207. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_get.rb +0 -383
  208. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_request_put_body.rb +0 -363
  209. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del.rb +0 -217
  210. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_del_data.rb +0 -225
  211. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_get.rb +0 -217
  212. data/emass_client/ruby_client/lib/swagger_client/models/artifacts_response_put_post.rb +0 -217
  213. data/emass_client/ruby_client/lib/swagger_client/models/cac_get.rb +0 -301
  214. data/emass_client/ruby_client/lib/swagger_client/models/cac_request_post_body.rb +0 -217
  215. data/emass_client/ruby_client/lib/swagger_client/models/cac_response_get.rb +0 -217
  216. data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post.rb +0 -217
  217. data/emass_client/ruby_client/lib/swagger_client/models/cac_response_post_data.rb +0 -225
  218. data/emass_client/ruby_client/lib/swagger_client/models/cmmc_get.rb +0 -398
  219. data/emass_client/ruby_client/lib/swagger_client/models/cmmc_response_get.rb +0 -217
  220. data/emass_client/ruby_client/lib/swagger_client/models/connectivity_ccsd.rb +0 -217
  221. data/emass_client/ruby_client/lib/swagger_client/models/controls_get.rb +0 -663
  222. data/emass_client/ruby_client/lib/swagger_client/models/controls_put.rb +0 -227
  223. data/emass_client/ruby_client/lib/swagger_client/models/controls_request_put_body.rb +0 -606
  224. data/emass_client/ruby_client/lib/swagger_client/models/controls_response_get.rb +0 -217
  225. data/emass_client/ruby_client/lib/swagger_client/models/controls_response_put.rb +0 -217
  226. data/emass_client/ruby_client/lib/swagger_client/models/definition_transitions.rb +0 -274
  227. data/emass_client/ruby_client/lib/swagger_client/models/delete_milestone.rb +0 -212
  228. data/emass_client/ruby_client/lib/swagger_client/models/delete_poam.rb +0 -212
  229. data/emass_client/ruby_client/lib/swagger_client/models/empty200_response.rb +0 -197
  230. data/emass_client/ruby_client/lib/swagger_client/models/error.rb +0 -225
  231. data/emass_client/ruby_client/lib/swagger_client/models/instances_transitions.rb +0 -327
  232. data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_get.rb +0 -217
  233. data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_post.rb +0 -217
  234. data/emass_client/ruby_client/lib/swagger_client/models/milestone_response_put.rb +0 -217
  235. data/emass_client/ruby_client/lib/swagger_client/models/milestones_delete.rb +0 -197
  236. data/emass_client/ruby_client/lib/swagger_client/models/milestones_get.rb +0 -291
  237. data/emass_client/ruby_client/lib/swagger_client/models/milestones_post.rb +0 -197
  238. data/emass_client/ruby_client/lib/swagger_client/models/milestones_put.rb +0 -197
  239. data/emass_client/ruby_client/lib/swagger_client/models/milestones_put_post_delete.rb +0 -247
  240. data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_post_body.rb +0 -242
  241. data/emass_client/ruby_client/lib/swagger_client/models/milestones_request_put_body.rb +0 -242
  242. data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_post.rb +0 -227
  243. data/emass_client/ruby_client/lib/swagger_client/models/milestones_required_put.rb +0 -242
  244. data/emass_client/ruby_client/lib/swagger_client/models/model_200.rb +0 -208
  245. data/emass_client/ruby_client/lib/swagger_client/models/model_201.rb +0 -206
  246. data/emass_client/ruby_client/lib/swagger_client/models/model_201_meta.rb +0 -219
  247. data/emass_client/ruby_client/lib/swagger_client/models/model_400.rb +0 -206
  248. data/emass_client/ruby_client/lib/swagger_client/models/model_400_meta.rb +0 -219
  249. data/emass_client/ruby_client/lib/swagger_client/models/model_400_response.rb +0 -206
  250. data/emass_client/ruby_client/lib/swagger_client/models/model_401.rb +0 -206
  251. data/emass_client/ruby_client/lib/swagger_client/models/model_401_meta.rb +0 -219
  252. data/emass_client/ruby_client/lib/swagger_client/models/model_403.rb +0 -206
  253. data/emass_client/ruby_client/lib/swagger_client/models/model_403_meta.rb +0 -219
  254. data/emass_client/ruby_client/lib/swagger_client/models/model_404.rb +0 -219
  255. data/emass_client/ruby_client/lib/swagger_client/models/model_404_response.rb +0 -206
  256. data/emass_client/ruby_client/lib/swagger_client/models/model_405.rb +0 -206
  257. data/emass_client/ruby_client/lib/swagger_client/models/model_405_meta.rb +0 -219
  258. data/emass_client/ruby_client/lib/swagger_client/models/model_411.rb +0 -206
  259. data/emass_client/ruby_client/lib/swagger_client/models/model_411_meta.rb +0 -219
  260. data/emass_client/ruby_client/lib/swagger_client/models/model_490.rb +0 -206
  261. data/emass_client/ruby_client/lib/swagger_client/models/model_490_meta.rb +0 -219
  262. data/emass_client/ruby_client/lib/swagger_client/models/model_500.rb +0 -206
  263. data/emass_client/ruby_client/lib/swagger_client/models/model_500_meta.rb +0 -219
  264. data/emass_client/ruby_client/lib/swagger_client/models/pac_get.rb +0 -311
  265. data/emass_client/ruby_client/lib/swagger_client/models/pac_post.rb +0 -259
  266. data/emass_client/ruby_client/lib/swagger_client/models/pac_request_post_body.rb +0 -261
  267. data/emass_client/ruby_client/lib/swagger_client/models/pac_response_get.rb +0 -217
  268. data/emass_client/ruby_client/lib/swagger_client/models/pac_response_post.rb +0 -217
  269. data/emass_client/ruby_client/lib/swagger_client/models/poam_delete.rb +0 -197
  270. data/emass_client/ruby_client/lib/swagger_client/models/poam_get.rb +0 -646
  271. data/emass_client/ruby_client/lib/swagger_client/models/poam_post.rb +0 -197
  272. data/emass_client/ruby_client/lib/swagger_client/models/poam_post_put_del.rb +0 -237
  273. data/emass_client/ruby_client/lib/swagger_client/models/poam_put.rb +0 -197
  274. data/emass_client/ruby_client/lib/swagger_client/models/poam_request_post_body.rb +0 -197
  275. data/emass_client/ruby_client/lib/swagger_client/models/poam_request_put_body.rb +0 -197
  276. data/emass_client/ruby_client/lib/swagger_client/models/poam_required_post.rb +0 -564
  277. data/emass_client/ruby_client/lib/swagger_client/models/poam_required_put.rb +0 -594
  278. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_delete.rb +0 -217
  279. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_get.rb +0 -217
  280. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_post.rb +0 -217
  281. data/emass_client/ruby_client/lib/swagger_client/models/poam_response_put.rb +0 -217
  282. data/emass_client/ruby_client/lib/swagger_client/models/register.rb +0 -215
  283. data/emass_client/ruby_client/lib/swagger_client/models/register_data.rb +0 -206
  284. data/emass_client/ruby_client/lib/swagger_client/models/register_user_request_post_body.rb +0 -211
  285. data/emass_client/ruby_client/lib/swagger_client/models/role_category.rb +0 -272
  286. data/emass_client/ruby_client/lib/swagger_client/models/roles.rb +0 -274
  287. data/emass_client/ruby_client/lib/swagger_client/models/ssps.rb +0 -227
  288. data/emass_client/ruby_client/lib/swagger_client/models/stage.rb +0 -252
  289. data/emass_client/ruby_client/lib/swagger_client/models/static_code_application.rb +0 -303
  290. data/emass_client/ruby_client/lib/swagger_client/models/static_code_request_post_body.rb +0 -197
  291. data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post.rb +0 -217
  292. data/emass_client/ruby_client/lib/swagger_client/models/static_code_required_post_application.rb +0 -217
  293. data/emass_client/ruby_client/lib/swagger_client/models/success200_response.rb +0 -217
  294. data/emass_client/ruby_client/lib/swagger_client/models/system_id_artifacts_body.rb +0 -284
  295. data/emass_client/ruby_client/lib/swagger_client/models/system_response.rb +0 -217
  296. data/emass_client/ruby_client/lib/swagger_client/models/system_roles_category_response.rb +0 -217
  297. data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response.rb +0 -217
  298. data/emass_client/ruby_client/lib/swagger_client/models/system_roles_response_data.rb +0 -219
  299. data/emass_client/ruby_client/lib/swagger_client/models/systems.rb +0 -1137
  300. data/emass_client/ruby_client/lib/swagger_client/models/test.rb +0 -215
  301. data/emass_client/ruby_client/lib/swagger_client/models/test_data.rb +0 -206
  302. data/emass_client/ruby_client/lib/swagger_client/models/test_results_get.rb +0 -333
  303. data/emass_client/ruby_client/lib/swagger_client/models/test_results_post.rb +0 -227
  304. data/emass_client/ruby_client/lib/swagger_client/models/test_results_request_post_body.rb +0 -306
  305. data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_get.rb +0 -217
  306. data/emass_client/ruby_client/lib/swagger_client/models/test_results_response_post.rb +0 -217
  307. data/emass_client/ruby_client/lib/swagger_client/models/users.rb +0 -224
  308. data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_get.rb +0 -282
  309. data/emass_client/ruby_client/lib/swagger_client/models/workflow_definition_response_get.rb +0 -217
  310. data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_get.rb +0 -368
  311. data/emass_client/ruby_client/lib/swagger_client/models/workflow_instances_response_get.rb +0 -217
  312. data/emass_client/ruby_client/lib/swagger_client/version.rb +0 -14
  313. data/emass_client/ruby_client/lib/swagger_client.rb +0 -161
  314. data/emass_client/ruby_client/spec/api/artifacts_api_spec.rb +0 -92
  315. data/emass_client/ruby_client/spec/api/artifacts_export_api_spec.rb +0 -48
  316. data/emass_client/ruby_client/spec/api/cac_api_spec.rb +0 -60
  317. data/emass_client/ruby_client/spec/api/cmmc_assessments_api_spec.rb +0 -46
  318. data/emass_client/ruby_client/spec/api/controls_api_spec.rb +0 -60
  319. data/emass_client/ruby_client/spec/api/milestones_api_spec.rb +0 -105
  320. data/emass_client/ruby_client/spec/api/pac_api_spec.rb +0 -59
  321. data/emass_client/ruby_client/spec/api/poam_api_spec.rb +0 -103
  322. data/emass_client/ruby_client/spec/api/registration_api_spec.rb +0 -46
  323. data/emass_client/ruby_client/spec/api/static_code_scans_api_spec.rb +0 -47
  324. data/emass_client/ruby_client/spec/api/system_roles_api_spec.rb +0 -60
  325. data/emass_client/ruby_client/spec/api/systems_api_spec.rb +0 -67
  326. data/emass_client/ruby_client/spec/api/test_api_spec.rb +0 -45
  327. data/emass_client/ruby_client/spec/api/test_results_api_spec.rb +0 -62
  328. data/emass_client/ruby_client/spec/api/workflow_definitions_api_spec.rb +0 -47
  329. data/emass_client/ruby_client/spec/api/workflow_instances_api_spec.rb +0 -63
  330. data/emass_client/ruby_client/spec/api_client_spec.rb +0 -225
  331. data/emass_client/ruby_client/spec/base_object_spec.rb +0 -109
  332. data/emass_client/ruby_client/spec/configuration_spec.rb +0 -41
  333. data/emass_client/ruby_client/spec/models/artifacts_delete_inner_spec.rb +0 -40
  334. data/emass_client/ruby_client/spec/models/artifacts_delete_spec.rb +0 -34
  335. data/emass_client/ruby_client/spec/models/artifacts_get_spec.rb +0 -126
  336. data/emass_client/ruby_client/spec/models/artifacts_request_put_body_spec.rb +0 -102
  337. data/emass_client/ruby_client/spec/models/artifacts_response_del_data_spec.rb +0 -52
  338. data/emass_client/ruby_client/spec/models/artifacts_response_del_spec.rb +0 -46
  339. data/emass_client/ruby_client/spec/models/artifacts_response_get_spec.rb +0 -46
  340. data/emass_client/ruby_client/spec/models/artifacts_response_put_post_spec.rb +0 -46
  341. data/emass_client/ruby_client/spec/models/cac_get_spec.rb +0 -80
  342. data/emass_client/ruby_client/spec/models/cac_request_post_body_spec.rb +0 -46
  343. data/emass_client/ruby_client/spec/models/cac_response_get_spec.rb +0 -46
  344. data/emass_client/ruby_client/spec/models/cac_response_post_data_spec.rb +0 -52
  345. data/emass_client/ruby_client/spec/models/cac_response_post_spec.rb +0 -46
  346. data/emass_client/ruby_client/spec/models/cmmc_get_spec.rb +0 -128
  347. data/emass_client/ruby_client/spec/models/cmmc_response_get_spec.rb +0 -46
  348. data/emass_client/ruby_client/spec/models/connectivity_ccsd_spec.rb +0 -46
  349. data/emass_client/ruby_client/spec/models/controls_get_spec.rb +0 -262
  350. data/emass_client/ruby_client/spec/models/controls_put_spec.rb +0 -52
  351. data/emass_client/ruby_client/spec/models/controls_request_put_body_spec.rb +0 -216
  352. data/emass_client/ruby_client/spec/models/controls_response_get_spec.rb +0 -46
  353. data/emass_client/ruby_client/spec/models/controls_response_put_spec.rb +0 -46
  354. data/emass_client/ruby_client/spec/models/definition_transitions_spec.rb +0 -64
  355. data/emass_client/ruby_client/spec/models/delete_milestone_spec.rb +0 -40
  356. data/emass_client/ruby_client/spec/models/delete_poam_spec.rb +0 -40
  357. data/emass_client/ruby_client/spec/models/empty200_response_spec.rb +0 -34
  358. data/emass_client/ruby_client/spec/models/error_spec.rb +0 -46
  359. data/emass_client/ruby_client/spec/models/instances_transitions_spec.rb +0 -86
  360. data/emass_client/ruby_client/spec/models/milestone_response_get_spec.rb +0 -46
  361. data/emass_client/ruby_client/spec/models/milestone_response_post_spec.rb +0 -46
  362. data/emass_client/ruby_client/spec/models/milestone_response_put_spec.rb +0 -46
  363. data/emass_client/ruby_client/spec/models/milestones_delete_spec.rb +0 -34
  364. data/emass_client/ruby_client/spec/models/milestones_get_spec.rb +0 -74
  365. data/emass_client/ruby_client/spec/models/milestones_post_spec.rb +0 -34
  366. data/emass_client/ruby_client/spec/models/milestones_put_post_delete_spec.rb +0 -64
  367. data/emass_client/ruby_client/spec/models/milestones_put_spec.rb +0 -34
  368. data/emass_client/ruby_client/spec/models/milestones_request_post_body_spec.rb +0 -52
  369. data/emass_client/ruby_client/spec/models/milestones_request_put_body_spec.rb +0 -52
  370. data/emass_client/ruby_client/spec/models/milestones_required_post_spec.rb +0 -46
  371. data/emass_client/ruby_client/spec/models/milestones_required_put_spec.rb +0 -52
  372. data/emass_client/ruby_client/spec/models/model_200_spec.rb +0 -40
  373. data/emass_client/ruby_client/spec/models/model_201_meta_spec.rb +0 -46
  374. data/emass_client/ruby_client/spec/models/model_201_spec.rb +0 -40
  375. data/emass_client/ruby_client/spec/models/model_400_meta_spec.rb +0 -46
  376. data/emass_client/ruby_client/spec/models/model_400_response_spec.rb +0 -40
  377. data/emass_client/ruby_client/spec/models/model_400_spec.rb +0 -40
  378. data/emass_client/ruby_client/spec/models/model_401_meta_spec.rb +0 -46
  379. data/emass_client/ruby_client/spec/models/model_401_spec.rb +0 -40
  380. data/emass_client/ruby_client/spec/models/model_403_meta_spec.rb +0 -46
  381. data/emass_client/ruby_client/spec/models/model_403_spec.rb +0 -40
  382. data/emass_client/ruby_client/spec/models/model_404_response_spec.rb +0 -40
  383. data/emass_client/ruby_client/spec/models/model_404_spec.rb +0 -46
  384. data/emass_client/ruby_client/spec/models/model_405_meta_spec.rb +0 -46
  385. data/emass_client/ruby_client/spec/models/model_405_spec.rb +0 -40
  386. data/emass_client/ruby_client/spec/models/model_411_meta_spec.rb +0 -46
  387. data/emass_client/ruby_client/spec/models/model_411_spec.rb +0 -40
  388. data/emass_client/ruby_client/spec/models/model_490_meta_spec.rb +0 -46
  389. data/emass_client/ruby_client/spec/models/model_490_spec.rb +0 -40
  390. data/emass_client/ruby_client/spec/models/model_500_meta_spec.rb +0 -46
  391. data/emass_client/ruby_client/spec/models/model_500_spec.rb +0 -40
  392. data/emass_client/ruby_client/spec/models/pac_get_spec.rb +0 -86
  393. data/emass_client/ruby_client/spec/models/pac_post_spec.rb +0 -56
  394. data/emass_client/ruby_client/spec/models/pac_request_post_body_spec.rb +0 -56
  395. data/emass_client/ruby_client/spec/models/pac_response_get_spec.rb +0 -46
  396. data/emass_client/ruby_client/spec/models/pac_response_post_spec.rb +0 -46
  397. data/emass_client/ruby_client/spec/models/poam_delete_spec.rb +0 -34
  398. data/emass_client/ruby_client/spec/models/poam_get_spec.rb +0 -264
  399. data/emass_client/ruby_client/spec/models/poam_post_put_del_spec.rb +0 -58
  400. data/emass_client/ruby_client/spec/models/poam_post_spec.rb +0 -34
  401. data/emass_client/ruby_client/spec/models/poam_put_spec.rb +0 -34
  402. data/emass_client/ruby_client/spec/models/poam_request_post_body_spec.rb +0 -34
  403. data/emass_client/ruby_client/spec/models/poam_request_put_body_spec.rb +0 -34
  404. data/emass_client/ruby_client/spec/models/poam_required_post_spec.rb +0 -218
  405. data/emass_client/ruby_client/spec/models/poam_required_put_spec.rb +0 -236
  406. data/emass_client/ruby_client/spec/models/poam_response_delete_spec.rb +0 -46
  407. data/emass_client/ruby_client/spec/models/poam_response_get_spec.rb +0 -46
  408. data/emass_client/ruby_client/spec/models/poam_response_post_spec.rb +0 -46
  409. data/emass_client/ruby_client/spec/models/poam_response_put_spec.rb +0 -46
  410. data/emass_client/ruby_client/spec/models/register_data_spec.rb +0 -40
  411. data/emass_client/ruby_client/spec/models/register_spec.rb +0 -46
  412. data/emass_client/ruby_client/spec/models/register_user_request_post_body_spec.rb +0 -40
  413. data/emass_client/ruby_client/spec/models/role_category_spec.rb +0 -62
  414. data/emass_client/ruby_client/spec/models/roles_spec.rb +0 -60
  415. data/emass_client/ruby_client/spec/models/ssps_spec.rb +0 -52
  416. data/emass_client/ruby_client/spec/models/stage_spec.rb +0 -50
  417. data/emass_client/ruby_client/spec/models/static_code_application_spec.rb +0 -78
  418. data/emass_client/ruby_client/spec/models/static_code_request_post_body_spec.rb +0 -34
  419. data/emass_client/ruby_client/spec/models/static_code_required_post_application_spec.rb +0 -46
  420. data/emass_client/ruby_client/spec/models/static_code_required_post_spec.rb +0 -46
  421. data/emass_client/ruby_client/spec/models/success200_response_spec.rb +0 -46
  422. data/emass_client/ruby_client/spec/models/system_id_artifacts_body_spec.rb +0 -66
  423. data/emass_client/ruby_client/spec/models/system_response_spec.rb +0 -46
  424. data/emass_client/ruby_client/spec/models/system_roles_category_response_spec.rb +0 -46
  425. data/emass_client/ruby_client/spec/models/system_roles_response_data_spec.rb +0 -46
  426. data/emass_client/ruby_client/spec/models/system_roles_response_spec.rb +0 -46
  427. data/emass_client/ruby_client/spec/models/systems_spec.rb +0 -510
  428. data/emass_client/ruby_client/spec/models/test_data_spec.rb +0 -40
  429. data/emass_client/ruby_client/spec/models/test_results_get_spec.rb +0 -96
  430. data/emass_client/ruby_client/spec/models/test_results_post_spec.rb +0 -52
  431. data/emass_client/ruby_client/spec/models/test_results_request_post_body_spec.rb +0 -68
  432. data/emass_client/ruby_client/spec/models/test_results_response_get_spec.rb +0 -46
  433. data/emass_client/ruby_client/spec/models/test_results_response_post_spec.rb +0 -46
  434. data/emass_client/ruby_client/spec/models/test_spec.rb +0 -46
  435. data/emass_client/ruby_client/spec/models/users_spec.rb +0 -52
  436. data/emass_client/ruby_client/spec/models/workflow_definition_get_spec.rb +0 -68
  437. data/emass_client/ruby_client/spec/models/workflow_definition_response_get_spec.rb +0 -46
  438. data/emass_client/ruby_client/spec/models/workflow_instances_get_spec.rb +0 -110
  439. data/emass_client/ruby_client/spec/models/workflow_instances_response_get_spec.rb +0 -46
  440. data/emass_client/ruby_client/spec/spec_helper.rb +0 -110
  441. data/emass_client/ruby_client/swagger_client.gemspec +0 -38
  442. data/emass_client/swagger-codegen/ruby_template/api_client.mustache +0 -384
  443. data/emass_client/swagger-codegen/ruby_template/api_info.mustache +0 -12
  444. data/emass_client/swagger-codegen/ruby_template/configuration.mustache +0 -234
  445. 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
- ## Required 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. An .env-example file is provided with the required fields (listed below).
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
- emasser environment variables required:
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
- * EMASSER_CLIENT_SIDE_VALIDATION=`<client side validation - true or false>`
14
- * EMASSER_VERIFY_SSL=`<verify SSL - true or false>`
15
- * EMASSER_VERIFY_SSL_HOST=`<verify host SSL - true or false>`
16
- * EMASSER_DEBUGGING=`<set debugging - true or false>`
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 this CLI only supports updating one entry at the time.
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
- - Invoking the GET systems endpoint from the compile binary (.gem) is:
44
+ ## Invoking emasser CLI Commands
30
45
 
31
- emasser get systems all
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-test_results)
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-workflow_definitions)
53
- * [/api/systems/{systemId}/workflow-instances](#get-workflow_instances)
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
- would list all available `GET` endpoint Commands:
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
- would list all available sub-commands and options for the `get artifacts` endpoint commands:
102
- - emasser get artifacts export --filename=FILENAME --systemId=N # Get artifa...
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
- would list all available options for the `get artifacts export` endpoint command:
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
- **The same format is applicable to POST, PUT and DELETE requests as well, however there may be additional help content**
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) list above.
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 id` is a notified call by the CLI to find a system ID based on the system `name` or `owner`
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 byId` is an eMASS GET request
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
- **NOTE** This call is based on the /api/systems endpoint
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
- To view a system by its identification (Id) use the following command:
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 view systems use the following command:
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
- | | loudServiceProvider, commonControlProvider |
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 view controls use the following command:
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 view test results use the following command:
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
- | | loudServiceProvider, commonControlProvider |
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
- - forSystem
459
- $ bundle exec exe/emasser get workflow_instances forSystem --systemId=SYSTEMID
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 --systemId=SYSTEMID --workflowInstanceId=--WORKFLOWID
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
- - POA&M Item cannot be saved if the Point of Contact fields exceed 100 characters:
576
- - Office / Organization (pocOrganization)
577
- - First Name (pocFirstName)
578
- - Last Name (pocLastName)
579
- - Email (email)
580
- - Phone Number (pocPhoneNumber)
581
- - POA&M Items cannot be saved if Mitigation field (mitigation) exceeds 2000 characters.
582
- - POA&M Items cannot be saved if Source Identifying Vulnerability field exceeds 2000 characters.
583
- - POA&M Items cannot be saved if Comments (comments) field exceeds 2000 characters
584
- - POA&M Items cannot be saved if Resource (resource) field exceeds 250 characters.
585
- - POA&M Items cannot be saved if Milestone Description exceeds 2000 characters.
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. 2000 Characters |
610
- |--sourceIdentVuln |String - Include Source Identifying Vulnerability text. 2000 Characters |
611
- |--pocOrganization |String - Organization/Office represented. 100 Characters |
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. 100 Characters |
622
- |--pocLastName |String - Last name of POC. 100 Characters |
623
- |--pocEmail |String - Email address of POC. 100 Characters |
624
- |--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format. 100 Characters |
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. 2000 Characters|
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. 100 Characters |
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. Character Limit 2,000 |
651
- |--mitigation |String - Include mitigation explanation. 2000 Characters |
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 |Strings - Comments submitted upon initiation of the indicated workflow, 4,000 character|
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. 2000 Characters |
1010
- |--sourceIdentVuln |String - Include Source Identifying Vulnerability text. 2000 Characters |
1011
- |--pocOrganization |String - Organization/Office represented. 100 Characters |
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. 100 Characters |
1022
- |--pocLastName |String - Last name of POC. 100 Characters |
1023
- |--pocEmail |String - Email address of POC. 100 Characters |
1024
- |--pocPhoneNumber |String - Phone number of POC (area code) ***-**** format. 100 Characters |
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. 2000 Characters|
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. 100 Characters |
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. Character Limit 2,000 |
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)