foreman_openscap 9.0.3 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/foreman_openscap/locale/cs_CZ/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/de/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/en/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/en_GB/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/es/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/fr/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/gl/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/it/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/ja/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/ka/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/ko/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/pt_BR/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/ru/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/sv_SE/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/zh_CN/foreman_openscap.js +0 -9
- data/app/assets/javascripts/foreman_openscap/locale/zh_TW/foreman_openscap.js +0 -9
- data/app/helpers/foreman_openscap_helper.rb +2 -18
- data/db/migrate/20201217161511_add_url_to_oval_content.rb +1 -1
- data/lib/foreman_openscap/engine.rb +148 -155
- data/lib/foreman_openscap/version.rb +1 -1
- data/locale/cs_CZ/foreman_openscap.edit.po +42 -54
- data/locale/cs_CZ/foreman_openscap.po +0 -9
- data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/de/foreman_openscap.edit.po +51 -250
- data/locale/de/foreman_openscap.po +0 -9
- data/locale/en/foreman_openscap.edit.po +42 -54
- data/locale/en/foreman_openscap.po +0 -9
- data/locale/en_GB/foreman_openscap.edit.po +42 -66
- data/locale/en_GB/foreman_openscap.po +0 -9
- data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/es/foreman_openscap.edit.po +51 -252
- data/locale/es/foreman_openscap.po +0 -9
- data/locale/foreman_openscap.pot +47 -57
- data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/fr/foreman_openscap.edit.po +51 -258
- data/locale/fr/foreman_openscap.po +0 -9
- data/locale/gl/foreman_openscap.edit.po +42 -54
- data/locale/gl/foreman_openscap.po +0 -9
- data/locale/it/foreman_openscap.edit.po +42 -63
- data/locale/it/foreman_openscap.po +0 -9
- data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ja/foreman_openscap.edit.po +49 -248
- data/locale/ja/foreman_openscap.po +0 -9
- data/locale/ka/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/ka/foreman_openscap.edit.po +46 -251
- data/locale/ka/foreman_openscap.po +0 -9
- data/locale/ko/foreman_openscap.edit.po +42 -69
- data/locale/ko/foreman_openscap.po +0 -9
- data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/pt_BR/foreman_openscap.edit.po +51 -252
- data/locale/pt_BR/foreman_openscap.po +0 -9
- data/locale/ru/foreman_openscap.edit.po +42 -69
- data/locale/ru/foreman_openscap.po +0 -9
- data/locale/sv_SE/foreman_openscap.edit.po +42 -54
- data/locale/sv_SE/foreman_openscap.po +0 -9
- data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
- data/locale/zh_CN/foreman_openscap.edit.po +49 -246
- data/locale/zh_CN/foreman_openscap.po +0 -9
- data/locale/zh_TW/foreman_openscap.edit.po +42 -69
- data/locale/zh_TW/foreman_openscap.po +0 -9
- data/test/unit/message_cleaner_test.rb +1 -0
- data/webpack/components/OpenscapRemediationWizard/Footer.js +54 -0
- data/webpack/components/OpenscapRemediationWizard/constants.js +9 -0
- data/webpack/components/OpenscapRemediationWizard/index.js +11 -5
- metadata +6 -5
|
@@ -166,7 +166,7 @@ msgstr ""
|
|
|
166
166
|
msgid "XML containing SCAP content"
|
|
167
167
|
msgstr ""
|
|
168
168
|
|
|
169
|
-
#: ../app/controllers/api/v2/compliance/scap_contents_controller.rb:42 ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:
|
|
169
|
+
#: ../app/controllers/api/v2/compliance/scap_contents_controller.rb:42 ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:36
|
|
170
170
|
msgid "Original file name of the XML file"
|
|
171
171
|
msgstr ""
|
|
172
172
|
|
|
@@ -202,35 +202,35 @@ msgstr ""
|
|
|
202
202
|
msgid "Please specify import type, received: %{received}, expected one of: %{expected}"
|
|
203
203
|
msgstr ""
|
|
204
204
|
|
|
205
|
-
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:
|
|
205
|
+
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:10
|
|
206
206
|
msgid "List Tailoring files"
|
|
207
207
|
msgstr ""
|
|
208
208
|
|
|
209
|
-
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:
|
|
209
|
+
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:18
|
|
210
210
|
msgid "Download a Tailoring file as XML"
|
|
211
211
|
msgstr ""
|
|
212
212
|
|
|
213
|
-
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:
|
|
213
|
+
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:27
|
|
214
214
|
msgid "Show a Tailoring file"
|
|
215
215
|
msgstr ""
|
|
216
216
|
|
|
217
|
-
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:
|
|
217
|
+
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:34
|
|
218
218
|
msgid "Tailoring file name"
|
|
219
219
|
msgstr ""
|
|
220
220
|
|
|
221
|
-
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:
|
|
221
|
+
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:35
|
|
222
222
|
msgid "XML containing tailoring file"
|
|
223
223
|
msgstr ""
|
|
224
224
|
|
|
225
|
-
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:
|
|
225
|
+
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:41
|
|
226
226
|
msgid "Create a Tailoring file"
|
|
227
227
|
msgstr ""
|
|
228
228
|
|
|
229
|
-
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:
|
|
229
|
+
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:49
|
|
230
230
|
msgid "Update a Tailoring file"
|
|
231
231
|
msgstr ""
|
|
232
232
|
|
|
233
|
-
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:
|
|
233
|
+
#: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:57
|
|
234
234
|
msgid "Deletes a Tailoring file"
|
|
235
235
|
msgstr ""
|
|
236
236
|
|
|
@@ -441,7 +441,7 @@ msgstr "取消指定合規政策"
|
|
|
441
441
|
msgid "Change OpenSCAP Proxy"
|
|
442
442
|
msgstr ""
|
|
443
443
|
|
|
444
|
-
#: ../app/helpers/compliance_hosts_helper.rb:37 ../app/models/foreman_openscap/compliance_status.rb:8 ../lib/foreman_openscap/engine.rb:
|
|
444
|
+
#: ../app/helpers/compliance_hosts_helper.rb:37 ../app/models/foreman_openscap/compliance_status.rb:8 ../lib/foreman_openscap/engine.rb:132 ../webpack/components/HostExtentions/HostKebabItems.js:39
|
|
445
445
|
msgid "Compliance"
|
|
446
446
|
msgstr "合規"
|
|
447
447
|
|
|
@@ -489,7 +489,7 @@ msgstr ""
|
|
|
489
489
|
msgid "Submit"
|
|
490
490
|
msgstr "提交"
|
|
491
491
|
|
|
492
|
-
#: ../app/helpers/policies_helper.rb:115 ../app/views/arf_reports/_list.html.erb:53 ../webpack/components/ConfirmModal.js:29
|
|
492
|
+
#: ../app/helpers/policies_helper.rb:115 ../app/views/arf_reports/_list.html.erb:53 ../webpack/components/ConfirmModal.js:29 ../webpack/components/OpenscapRemediationWizard/Footer.js:47
|
|
493
493
|
msgid "Cancel"
|
|
494
494
|
msgstr "取消"
|
|
495
495
|
|
|
@@ -617,23 +617,23 @@ msgstr ""
|
|
|
617
617
|
msgid "Cannot generate HTML guide, no valid OpenSCAP proxy server found."
|
|
618
618
|
msgstr ""
|
|
619
619
|
|
|
620
|
-
#: ../app/models/foreman_openscap/policy.rb:
|
|
620
|
+
#: ../app/models/foreman_openscap/policy.rb:223
|
|
621
621
|
msgid "must be present when tailoring file profile present"
|
|
622
622
|
msgstr ""
|
|
623
623
|
|
|
624
|
-
#: ../app/models/foreman_openscap/policy.rb:
|
|
624
|
+
#: ../app/models/foreman_openscap/policy.rb:224
|
|
625
625
|
msgid "must be present when tailoring file present"
|
|
626
626
|
msgstr ""
|
|
627
627
|
|
|
628
|
-
#: ../app/models/foreman_openscap/policy.rb:
|
|
628
|
+
#: ../app/models/foreman_openscap/policy.rb:229
|
|
629
629
|
msgid "does not come from selected tailoring file"
|
|
630
630
|
msgstr ""
|
|
631
631
|
|
|
632
|
-
#: ../app/models/foreman_openscap/policy.rb:
|
|
632
|
+
#: ../app/models/foreman_openscap/policy.rb:235
|
|
633
633
|
msgid "does not have the selected SCAP content profile"
|
|
634
634
|
msgstr ""
|
|
635
635
|
|
|
636
|
-
#: ../app/models/foreman_openscap/policy.rb:
|
|
636
|
+
#: ../app/models/foreman_openscap/policy.rb:267
|
|
637
637
|
msgid "cannot assign to %s, all assigned policies must be deployed in the same way, check 'deploy by' for each assigned policy"
|
|
638
638
|
msgstr ""
|
|
639
639
|
|
|
@@ -697,18 +697,6 @@ msgstr ""
|
|
|
697
697
|
msgid "Failed to save when overriding parameters for %{config_tool}, cause: %{errors}"
|
|
698
698
|
msgstr ""
|
|
699
699
|
|
|
700
|
-
#: ../app/services/foreman_openscap/openscap_proxy_version_check.rb:39
|
|
701
|
-
msgid "This feature is temporarily disabled. "
|
|
702
|
-
msgstr ""
|
|
703
|
-
|
|
704
|
-
#: ../app/services/foreman_openscap/openscap_proxy_version_check.rb:40
|
|
705
|
-
msgid "The following Smart Proxies need to be updated to unlock the feature: %s. "
|
|
706
|
-
msgstr ""
|
|
707
|
-
|
|
708
|
-
#: ../app/services/foreman_openscap/openscap_proxy_version_check.rb:41
|
|
709
|
-
msgid "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions."
|
|
710
|
-
msgstr ""
|
|
711
|
-
|
|
712
700
|
#: ../app/validators/foreman_openscap/data_stream_validator.rb:9
|
|
713
701
|
msgid "No proxy with OpenSCAP feature was found."
|
|
714
702
|
msgstr ""
|
|
@@ -817,7 +805,7 @@ msgstr "刪除"
|
|
|
817
805
|
msgid "these Compliance reports"
|
|
818
806
|
msgstr ""
|
|
819
807
|
|
|
820
|
-
#: ../app/views/arf_reports/show.html.erb:14
|
|
808
|
+
#: ../app/views/arf_reports/show.html.erb:14 ../webpack/components/OpenscapRemediationWizard/Footer.js:40
|
|
821
809
|
msgid "Back"
|
|
822
810
|
msgstr "上一頁"
|
|
823
811
|
|
|
@@ -871,7 +859,7 @@ msgstr "%s 一直以來的報告"
|
|
|
871
859
|
msgid "No report for this policy"
|
|
872
860
|
msgstr "此政策沒有報告"
|
|
873
861
|
|
|
874
|
-
#: ../app/views/dashboard/_compliance_host_reports_widget.html.erb:1 ../lib/foreman_openscap/engine.rb:
|
|
862
|
+
#: ../app/views/dashboard/_compliance_host_reports_widget.html.erb:1 ../lib/foreman_openscap/engine.rb:148
|
|
875
863
|
msgid "Latest Compliance Reports"
|
|
876
864
|
msgstr ""
|
|
877
865
|
|
|
@@ -887,7 +875,7 @@ msgstr "主機不復存在"
|
|
|
887
875
|
msgid "Policy is missing"
|
|
888
876
|
msgstr ""
|
|
889
877
|
|
|
890
|
-
#: ../app/views/dashboard/_compliance_reports_breakdown_widget.html.erb:1 ../lib/foreman_openscap/engine.rb:
|
|
878
|
+
#: ../app/views/dashboard/_compliance_reports_breakdown_widget.html.erb:1 ../lib/foreman_openscap/engine.rb:150
|
|
891
879
|
msgid "Compliance Reports Breakdown"
|
|
892
880
|
msgstr ""
|
|
893
881
|
|
|
@@ -1041,7 +1029,7 @@ msgstr ""
|
|
|
1041
1029
|
msgid "Choose day in month"
|
|
1042
1030
|
msgstr ""
|
|
1043
1031
|
|
|
1044
|
-
#: ../app/views/policies/steps/_step_form.html.erb:11
|
|
1032
|
+
#: ../app/views/policies/steps/_step_form.html.erb:11 ../webpack/components/OpenscapRemediationWizard/Footer.js:31
|
|
1045
1033
|
msgid "Next"
|
|
1046
1034
|
msgstr "下一個"
|
|
1047
1035
|
|
|
@@ -1201,7 +1189,7 @@ msgstr ""
|
|
|
1201
1189
|
msgid "Delete tailoring file %s?"
|
|
1202
1190
|
msgstr ""
|
|
1203
1191
|
|
|
1204
|
-
#: ../app/views/tailoring_files/index.html.erb:1 ../app/views/tailoring_files/welcome.html.erb:1 ../app/views/tailoring_files/welcome.html.erb:6 ../lib/foreman_openscap/engine.rb:
|
|
1192
|
+
#: ../app/views/tailoring_files/index.html.erb:1 ../app/views/tailoring_files/welcome.html.erb:1 ../app/views/tailoring_files/welcome.html.erb:6 ../lib/foreman_openscap/engine.rb:142
|
|
1205
1193
|
msgid "Tailoring Files"
|
|
1206
1194
|
msgstr ""
|
|
1207
1195
|
|
|
@@ -1223,7 +1211,7 @@ msgid ""
|
|
|
1223
1211
|
" via %s"
|
|
1224
1212
|
msgstr ""
|
|
1225
1213
|
|
|
1226
|
-
#: ../app/views/tailoring_files/welcome.html.erb:
|
|
1214
|
+
#: ../app/views/tailoring_files/welcome.html.erb:12
|
|
1227
1215
|
msgid "New Tailoring File"
|
|
1228
1216
|
msgstr ""
|
|
1229
1217
|
|
|
@@ -1267,39 +1255,39 @@ msgstr ""
|
|
|
1267
1255
|
msgid "%s content"
|
|
1268
1256
|
msgstr ""
|
|
1269
1257
|
|
|
1270
|
-
#: ../lib/foreman_openscap/engine.rb:
|
|
1258
|
+
#: ../lib/foreman_openscap/engine.rb:133
|
|
1271
1259
|
msgid "Policies"
|
|
1272
1260
|
msgstr "方針"
|
|
1273
1261
|
|
|
1274
|
-
#: ../lib/foreman_openscap/engine.rb:
|
|
1262
|
+
#: ../lib/foreman_openscap/engine.rb:136
|
|
1275
1263
|
msgid "SCAP contents"
|
|
1276
1264
|
msgstr "SCAP 內容"
|
|
1277
1265
|
|
|
1278
|
-
#: ../lib/foreman_openscap/engine.rb:
|
|
1266
|
+
#: ../lib/foreman_openscap/engine.rb:139
|
|
1279
1267
|
msgid "Reports"
|
|
1280
1268
|
msgstr "報告"
|
|
1281
1269
|
|
|
1282
|
-
#: ../lib/foreman_openscap/engine.rb:
|
|
1270
|
+
#: ../lib/foreman_openscap/engine.rb:164
|
|
1283
1271
|
msgid "OpenSCAP Proxy to use for fetching SCAP content and uploading ARF reports. Leave blank and override appropriate parameters when using proxy load balancer."
|
|
1284
1272
|
msgstr ""
|
|
1285
1273
|
|
|
1286
|
-
#: ../lib/foreman_openscap/engine.rb:
|
|
1274
|
+
#: ../lib/foreman_openscap/engine.rb:168 ../lib/foreman_openscap/engine.rb:173
|
|
1287
1275
|
msgid "OpenSCAP Proxy"
|
|
1288
1276
|
msgstr ""
|
|
1289
1277
|
|
|
1290
|
-
#: ../lib/foreman_openscap/engine.rb:
|
|
1278
|
+
#: ../lib/foreman_openscap/engine.rb:170 ../lib/foreman_openscap/engine.rb:175
|
|
1291
1279
|
msgid "ID of OpenSCAP Proxy"
|
|
1292
1280
|
msgstr ""
|
|
1293
1281
|
|
|
1294
|
-
#: ../lib/foreman_openscap/engine.rb:
|
|
1282
|
+
#: ../lib/foreman_openscap/engine.rb:215 ../lib/foreman_openscap/engine.rb:233
|
|
1295
1283
|
msgid "Run OpenSCAP scan"
|
|
1296
1284
|
msgstr ""
|
|
1297
1285
|
|
|
1298
|
-
#: ../lib/foreman_openscap/engine.rb:
|
|
1286
|
+
#: ../lib/foreman_openscap/engine.rb:220 ../lib/foreman_openscap/engine.rb:234
|
|
1299
1287
|
msgid "Run OpenSCAP remediation with Ansible"
|
|
1300
1288
|
msgstr ""
|
|
1301
1289
|
|
|
1302
|
-
#: ../lib/foreman_openscap/engine.rb:
|
|
1290
|
+
#: ../lib/foreman_openscap/engine.rb:225 ../lib/foreman_openscap/engine.rb:235
|
|
1303
1291
|
msgid "Run OpenSCAP remediation with Shell"
|
|
1304
1292
|
msgstr ""
|
|
1305
1293
|
|
|
@@ -1315,31 +1303,31 @@ msgstr ""
|
|
|
1315
1303
|
msgid "There's no available report for this host"
|
|
1316
1304
|
msgstr ""
|
|
1317
1305
|
|
|
1318
|
-
#: ../webpack/components/OpenscapRemediationWizard/
|
|
1319
|
-
msgid "
|
|
1306
|
+
#: ../webpack/components/OpenscapRemediationWizard/Footer.js:30 ../webpack/components/OpenscapRemediationWizard/index.js:94
|
|
1307
|
+
msgid "Run"
|
|
1320
1308
|
msgstr ""
|
|
1321
1309
|
|
|
1322
|
-
#: ../webpack/components/OpenscapRemediationWizard/
|
|
1323
|
-
msgid "
|
|
1310
|
+
#: ../webpack/components/OpenscapRemediationWizard/ViewSelectedHostsLink.js:28
|
|
1311
|
+
msgid "View selected hosts"
|
|
1324
1312
|
msgstr ""
|
|
1325
1313
|
|
|
1326
|
-
#: ../webpack/components/OpenscapRemediationWizard/
|
|
1314
|
+
#: ../webpack/components/OpenscapRemediationWizard/constants.js:19 ../webpack/components/OpenscapRemediationWizard/steps/SnippetSelect.js:123
|
|
1327
1315
|
msgid "Select snippet"
|
|
1328
1316
|
msgstr ""
|
|
1329
1317
|
|
|
1330
|
-
#: ../webpack/components/OpenscapRemediationWizard/
|
|
1331
|
-
msgid "Review
|
|
1318
|
+
#: ../webpack/components/OpenscapRemediationWizard/constants.js:20 ../webpack/components/OpenscapRemediationWizard/steps/ReviewHosts.js:193
|
|
1319
|
+
msgid "Review hosts"
|
|
1332
1320
|
msgstr ""
|
|
1333
1321
|
|
|
1334
|
-
#: ../webpack/components/OpenscapRemediationWizard/
|
|
1335
|
-
msgid "
|
|
1322
|
+
#: ../webpack/components/OpenscapRemediationWizard/constants.js:21 ../webpack/components/OpenscapRemediationWizard/steps/ReviewRemediation.js:97
|
|
1323
|
+
msgid "Review remediation"
|
|
1336
1324
|
msgstr ""
|
|
1337
1325
|
|
|
1338
|
-
#: ../webpack/components/OpenscapRemediationWizard/
|
|
1326
|
+
#: ../webpack/components/OpenscapRemediationWizard/constants.js:22
|
|
1339
1327
|
msgid "Done"
|
|
1340
1328
|
msgstr ""
|
|
1341
1329
|
|
|
1342
|
-
#: ../webpack/components/OpenscapRemediationWizard/index.js:
|
|
1330
|
+
#: ../webpack/components/OpenscapRemediationWizard/index.js:132
|
|
1343
1331
|
msgid "Remediate %s rule"
|
|
1344
1332
|
msgstr ""
|
|
1345
1333
|
|
|
@@ -1454,18 +1442,3 @@ msgstr ""
|
|
|
1454
1442
|
#: ../webpack/helpers/permissionsHelper.js:37
|
|
1455
1443
|
msgid "Request the following permissions from administrator: %s."
|
|
1456
1444
|
msgstr ""
|
|
1457
|
-
|
|
1458
|
-
#~ msgid "Action with sub plans"
|
|
1459
|
-
#~ msgstr "有子計畫的動作"
|
|
1460
|
-
|
|
1461
|
-
#~ msgid "Import Puppet classes"
|
|
1462
|
-
#~ msgstr "匯入 Puppet 類別"
|
|
1463
|
-
|
|
1464
|
-
#~ msgid "Import facts"
|
|
1465
|
-
#~ msgstr "匯入詳情"
|
|
1466
|
-
|
|
1467
|
-
#~ msgid "Remote action:"
|
|
1468
|
-
#~ msgstr "遠端動作:"
|
|
1469
|
-
|
|
1470
|
-
#~ msgid "hosts"
|
|
1471
|
-
#~ msgstr "主機"
|
|
@@ -914,12 +914,6 @@ msgstr ""
|
|
|
914
914
|
msgid "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding."
|
|
915
915
|
msgstr ""
|
|
916
916
|
|
|
917
|
-
msgid "The following Smart Proxies need to be updated to unlock the feature: %s. "
|
|
918
|
-
msgstr ""
|
|
919
|
-
|
|
920
|
-
msgid "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions."
|
|
921
|
-
msgstr ""
|
|
922
|
-
|
|
923
917
|
msgid "The identifier of the host"
|
|
924
918
|
msgstr ""
|
|
925
919
|
|
|
@@ -938,9 +932,6 @@ msgstr ""
|
|
|
938
932
|
msgid "There's no available report for this host"
|
|
939
933
|
msgstr ""
|
|
940
934
|
|
|
941
|
-
msgid "This feature is temporarily disabled. "
|
|
942
|
-
msgstr ""
|
|
943
|
-
|
|
944
935
|
msgid "This leaves the setup of the foreman_scap_client solely on the user. The policy still needs to be defined in order to link incoming ARF reports."
|
|
945
936
|
msgstr ""
|
|
946
937
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
WizardFooter,
|
|
5
|
+
WizardContextConsumer,
|
|
6
|
+
} from '@patternfly/react-core';
|
|
7
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
|
8
|
+
import { WIZARD_TITLES } from './constants';
|
|
9
|
+
|
|
10
|
+
export const Footer = () => (
|
|
11
|
+
<WizardFooter>
|
|
12
|
+
<WizardContextConsumer>
|
|
13
|
+
{({ activeStep, onNext, onBack, onClose, goToStepByName }) => {
|
|
14
|
+
const isValid =
|
|
15
|
+
activeStep && activeStep.enableNext !== undefined
|
|
16
|
+
? activeStep.enableNext
|
|
17
|
+
: true;
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<>
|
|
21
|
+
{!activeStep.isFinishedStep ? (
|
|
22
|
+
<Button
|
|
23
|
+
ouiaId="oscap-rem-wiz-next-button"
|
|
24
|
+
variant="primary"
|
|
25
|
+
type="submit"
|
|
26
|
+
onClick={onNext}
|
|
27
|
+
isDisabled={!isValid}
|
|
28
|
+
>
|
|
29
|
+
{activeStep.name === WIZARD_TITLES.reviewRemediation
|
|
30
|
+
? __('Run')
|
|
31
|
+
: __('Next')}
|
|
32
|
+
</Button>
|
|
33
|
+
) : null}
|
|
34
|
+
<Button
|
|
35
|
+
ouiaId="oscap-rem-wiz-back-button"
|
|
36
|
+
variant="secondary"
|
|
37
|
+
onClick={onBack}
|
|
38
|
+
isDisabled={activeStep.name === WIZARD_TITLES.snippetSelect}
|
|
39
|
+
>
|
|
40
|
+
{__('Back')}
|
|
41
|
+
</Button>
|
|
42
|
+
<Button
|
|
43
|
+
ouiaId="oscap-rem-wiz-cancel-button"
|
|
44
|
+
variant="link"
|
|
45
|
+
onClick={onClose}
|
|
46
|
+
>
|
|
47
|
+
{__('Cancel')}
|
|
48
|
+
</Button>
|
|
49
|
+
</>
|
|
50
|
+
);
|
|
51
|
+
}}
|
|
52
|
+
</WizardContextConsumer>
|
|
53
|
+
</WizardFooter>
|
|
54
|
+
);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { translate as __ } from 'foremanReact/common/I18n';
|
|
2
|
+
|
|
1
3
|
export const OPENSCAP_REMEDIATION_MODAL_ID = 'openscapRemediationModal';
|
|
2
4
|
export const HOSTS_PATH = '/hosts';
|
|
3
5
|
export const FAIL_RULE_SEARCH = 'fails_xccdf_rule';
|
|
@@ -12,3 +14,10 @@ export const JOB_INVOCATION_API_REQUEST_KEY = 'OPENSCAP_REX_JOB_INVOCATIONS';
|
|
|
12
14
|
|
|
13
15
|
export const SNIPPET_SH = 'urn:xccdf:fix:script:sh';
|
|
14
16
|
export const SNIPPET_ANSIBLE = 'urn:xccdf:fix:script:ansible';
|
|
17
|
+
|
|
18
|
+
export const WIZARD_TITLES = {
|
|
19
|
+
snippetSelect: __('Select snippet'),
|
|
20
|
+
reviewHosts: __('Review hosts'),
|
|
21
|
+
reviewRemediation: __('Review remediation'),
|
|
22
|
+
finish: __('Done'),
|
|
23
|
+
};
|
|
@@ -7,12 +7,17 @@ import { sprintf, translate as __ } from 'foremanReact/common/I18n';
|
|
|
7
7
|
import { API_OPERATIONS, get } from 'foremanReact/redux/API';
|
|
8
8
|
|
|
9
9
|
import OpenscapRemediationWizardContext from './OpenscapRemediationWizardContext';
|
|
10
|
+
import { Footer } from './Footer';
|
|
10
11
|
import {
|
|
11
12
|
selectLogResponse,
|
|
12
13
|
selectLogError,
|
|
13
14
|
selectLogStatus,
|
|
14
15
|
} from './OpenscapRemediationSelectors';
|
|
15
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
REPORT_LOG_REQUEST_KEY,
|
|
18
|
+
FAIL_RULE_SEARCH,
|
|
19
|
+
WIZARD_TITLES,
|
|
20
|
+
} from './constants';
|
|
16
21
|
import { SnippetSelect, ReviewHosts, ReviewRemediation, Finish } from './steps';
|
|
17
22
|
|
|
18
23
|
const OpenscapRemediationWizard = ({
|
|
@@ -66,7 +71,7 @@ const OpenscapRemediationWizard = ({
|
|
|
66
71
|
|
|
67
72
|
const reviewHostsStep = {
|
|
68
73
|
id: 2,
|
|
69
|
-
name:
|
|
74
|
+
name: WIZARD_TITLES.reviewHosts,
|
|
70
75
|
component: <ReviewHosts />,
|
|
71
76
|
canJumpTo: Boolean(snippet && method === 'job'),
|
|
72
77
|
enableNext: Boolean(snippet && method),
|
|
@@ -74,7 +79,7 @@ const OpenscapRemediationWizard = ({
|
|
|
74
79
|
const steps = [
|
|
75
80
|
{
|
|
76
81
|
id: 1,
|
|
77
|
-
name:
|
|
82
|
+
name: WIZARD_TITLES.snippetSelect,
|
|
78
83
|
component: <SnippetSelect />,
|
|
79
84
|
canJumpTo: true,
|
|
80
85
|
enableNext: Boolean(snippet && method),
|
|
@@ -82,7 +87,7 @@ const OpenscapRemediationWizard = ({
|
|
|
82
87
|
...(snippet && method === 'job' ? [reviewHostsStep] : []),
|
|
83
88
|
{
|
|
84
89
|
id: 3,
|
|
85
|
-
name:
|
|
90
|
+
name: WIZARD_TITLES.reviewRemediation,
|
|
86
91
|
component: <ReviewRemediation />,
|
|
87
92
|
canJumpTo: Boolean(snippet && method),
|
|
88
93
|
enableNext: method === 'job',
|
|
@@ -90,7 +95,7 @@ const OpenscapRemediationWizard = ({
|
|
|
90
95
|
},
|
|
91
96
|
{
|
|
92
97
|
id: 4,
|
|
93
|
-
name:
|
|
98
|
+
name: WIZARD_TITLES.finish,
|
|
94
99
|
component: <Finish onClose={onWizardClose} />,
|
|
95
100
|
isFinishedStep: true,
|
|
96
101
|
},
|
|
@@ -128,6 +133,7 @@ const OpenscapRemediationWizard = ({
|
|
|
128
133
|
isOpen={isRemediationWizardOpen}
|
|
129
134
|
steps={steps}
|
|
130
135
|
onClose={onWizardClose}
|
|
136
|
+
footer={<Footer />}
|
|
131
137
|
/>
|
|
132
138
|
</OpenscapRemediationWizardContext.Provider>
|
|
133
139
|
)}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_openscap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 10.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- slukasik@redhat.com
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-09-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -418,6 +418,7 @@ files:
|
|
|
418
418
|
- webpack/components/IndexTable/IndexTableHelper.js
|
|
419
419
|
- webpack/components/IndexTable/index.js
|
|
420
420
|
- webpack/components/LinkButton.js
|
|
421
|
+
- webpack/components/OpenscapRemediationWizard/Footer.js
|
|
421
422
|
- webpack/components/OpenscapRemediationWizard/OpenscapRemediationSelectors.js
|
|
422
423
|
- webpack/components/OpenscapRemediationWizard/OpenscapRemediationWizardContext.js
|
|
423
424
|
- webpack/components/OpenscapRemediationWizard/ViewSelectedHostsLink.js
|
|
@@ -457,7 +458,7 @@ homepage: https://github.com/theforeman/foreman_openscap
|
|
|
457
458
|
licenses:
|
|
458
459
|
- GPL-3.0
|
|
459
460
|
metadata: {}
|
|
460
|
-
post_install_message:
|
|
461
|
+
post_install_message:
|
|
461
462
|
rdoc_options: []
|
|
462
463
|
require_paths:
|
|
463
464
|
- lib
|
|
@@ -473,7 +474,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
473
474
|
version: '0'
|
|
474
475
|
requirements: []
|
|
475
476
|
rubygems_version: 3.2.33
|
|
476
|
-
signing_key:
|
|
477
|
+
signing_key:
|
|
477
478
|
specification_version: 4
|
|
478
479
|
summary: Foreman plug-in for displaying OpenSCAP audit reports
|
|
479
480
|
test_files:
|