foreman_openscap 0.5.4 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -7
  2. data/README.md +14 -0
  3. data/app/assets/javascripts/foreman_openscap/policy_edit.js +1 -1
  4. data/app/controllers/api/v2/compliance/policies_controller.rb +12 -9
  5. data/app/controllers/api/v2/compliance/scap_contents_controller.rb +4 -2
  6. data/app/controllers/concerns/foreman/controller/parameters/policy.rb +12 -0
  7. data/app/controllers/concerns/foreman/controller/parameters/policy_api.rb +21 -0
  8. data/app/controllers/concerns/foreman/controller/parameters/scap_content.rb +15 -0
  9. data/app/controllers/policies_controller.rb +7 -3
  10. data/app/controllers/scap_contents_controller.rb +4 -2
  11. data/app/helpers/{dashboard_helper.rb → compliance_dashboard_helper.rb} +2 -2
  12. data/app/helpers/policy_dashboard_helper.rb +9 -4
  13. data/app/models/concerns/foreman_openscap/host_extensions.rb +3 -5
  14. data/app/models/concerns/foreman_openscap/hostgroup_extensions.rb +1 -1
  15. data/app/models/concerns/foreman_openscap/log_extensions.rb +0 -1
  16. data/app/models/concerns/foreman_openscap/openscap_proxy_core_extensions.rb +1 -1
  17. data/app/models/concerns/foreman_openscap/openscap_proxy_extensions.rb +1 -2
  18. data/app/models/foreman_openscap/arf_report.rb +6 -4
  19. data/app/models/foreman_openscap/compliance_status.rb +3 -1
  20. data/app/models/foreman_openscap/policy.rb +62 -33
  21. data/app/models/foreman_openscap/scap_content.rb +1 -3
  22. data/app/views/arf_reports/_list.html.erb +1 -1
  23. data/app/views/arf_reports/show.html.erb +4 -4
  24. data/app/views/compliance_hosts/show.html.erb +1 -1
  25. data/app/views/dashboard/_compliance_host_reports_widget.html.erb +6 -6
  26. data/app/views/policies/index.html.erb +2 -2
  27. data/app/views/policies/steps/_schedule_form.html.erb +1 -1
  28. data/app/views/policies/steps/_step_form.html.erb +1 -0
  29. data/app/views/policies/welcome.html.erb +1 -1
  30. data/app/views/policy_dashboard/index.html.erb +2 -2
  31. data/app/views/scap_contents/index.html.erb +2 -2
  32. data/app/views/scap_contents/welcome.html.erb +1 -1
  33. data/db/migrate/20160830113437_remove_deleted_policy.rb +10 -0
  34. data/db/seeds.d/openscap_policy_notification.rb +2 -0
  35. data/lib/foreman_openscap/data_migration.rb +1 -1
  36. data/lib/foreman_openscap/engine.rb +11 -1
  37. data/lib/foreman_openscap/helper.rb +4 -8
  38. data/lib/foreman_openscap/version.rb +1 -1
  39. data/locale/Makefile +60 -0
  40. data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
  41. data/locale/de/foreman_openscap.po +616 -0
  42. data/locale/en_GB/LC_MESSAGES/foreman_openscap.mo +0 -0
  43. data/locale/en_GB/foreman_openscap.po +616 -0
  44. data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
  45. data/locale/es/foreman_openscap.po +616 -0
  46. data/locale/foreman_openscap.pot +873 -0
  47. data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
  48. data/locale/fr/foreman_openscap.po +616 -0
  49. data/locale/gl/LC_MESSAGES/foreman_openscap.mo +0 -0
  50. data/locale/gl/foreman_openscap.po +616 -0
  51. data/locale/it/LC_MESSAGES/foreman_openscap.mo +0 -0
  52. data/locale/it/foreman_openscap.po +616 -0
  53. data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
  54. data/locale/ja/foreman_openscap.po +616 -0
  55. data/locale/ko/LC_MESSAGES/foreman_openscap.mo +0 -0
  56. data/locale/ko/foreman_openscap.po +616 -0
  57. data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
  58. data/locale/pt_BR/foreman_openscap.po +616 -0
  59. data/locale/ru/LC_MESSAGES/foreman_openscap.mo +0 -0
  60. data/locale/ru/foreman_openscap.po +617 -0
  61. data/locale/sv_SE/LC_MESSAGES/foreman_openscap.mo +0 -0
  62. data/locale/sv_SE/foreman_openscap.po +616 -0
  63. data/locale/zanata.xml +29 -0
  64. data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
  65. data/locale/zh_CN/foreman_openscap.po +616 -0
  66. data/locale/zh_TW/LC_MESSAGES/foreman_openscap.mo +0 -0
  67. data/locale/zh_TW/foreman_openscap.po +616 -0
  68. data/test/factories/policy_factory.rb +2 -2
  69. data/test/functional/api/v2/compliance/policies_controller_test.rb +7 -3
  70. data/test/test_plugin_helper.rb +35 -37
  71. data/test/unit/concerns/openscap_proxy_extenstions_test.rb +21 -0
  72. data/test/unit/openscap_host_test.rb +3 -1
  73. data/test/unit/policy_test.rb +125 -0
  74. data/test/unit/scap_content_test.rb +5 -0
  75. metadata +231 -198
@@ -0,0 +1,617 @@
1
+ # Russian translations for foreman_openscap package.
2
+ # Copyright (C) 2016 THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_openscap package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: foreman_openscap 1.0.0\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "PO-Revision-Date: 2016-02-09 16:41-0500\n"
11
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12
+ "Language-Team: Russian\n"
13
+ "Language: ru\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4"
18
+ " && (n%100<10 || n%100>=20) ? 1 : 2;\n"
19
+ "\n"
20
+
21
+ msgid "%s - The following compliance reports are about to be changed"
22
+ msgstr ""
23
+
24
+ msgid "%s ago"
25
+ msgstr ""
26
+
27
+ msgid "%s compliance report by policy"
28
+ msgid_plural "%s compliance reports by policy"
29
+ msgstr[0] ""
30
+ msgstr[1] ""
31
+
32
+ msgid "%s latest report"
33
+ msgstr ""
34
+
35
+ msgid "%s reports over time"
36
+ msgstr ""
37
+
38
+ msgid "%{parameter} class parameter for class %{class} could not be configured."
39
+ msgstr ""
40
+
41
+ msgid "<b>Foreman</b> OpenSCAP summary"
42
+ msgstr ""
43
+
44
+ msgid "A compliance policy is defined by security professionals who specify desired settings (often in the form of a checklist) that are to be used in the computing environment. Compliance audit is a process of figuring out whether a given object follows all the rules written out in a compliance policy."
45
+ msgstr ""
46
+
47
+ msgid "A summary of reports for OpenSCAP policies"
48
+ msgstr ""
49
+
50
+ msgid "All messages"
51
+ msgstr ""
52
+
53
+ msgid "Apply policy to host groups"
54
+ msgstr ""
55
+
56
+ msgid "Assign Compliance Policy"
57
+ msgstr ""
58
+
59
+ msgid "Back"
60
+ msgstr ""
61
+
62
+ msgid "Cancel"
63
+ msgstr ""
64
+
65
+ msgid "Cannot generate HTML guide for %{scap_content}/%{profile}"
66
+ msgstr ""
67
+
68
+ msgid "Changed"
69
+ msgstr ""
70
+
71
+ msgid "Changed file does not include existing SCAP content profiles"
72
+ msgstr ""
73
+
74
+ msgid "Changed?"
75
+ msgstr ""
76
+
77
+ msgid "Choose existing SCAP Content"
78
+ msgstr ""
79
+
80
+ msgid "Choose period"
81
+ msgstr ""
82
+
83
+ msgid "Choose weekday"
84
+ msgstr ""
85
+
86
+ msgid "Compliance"
87
+ msgstr ""
88
+
89
+ msgid "Compliance Policies"
90
+ msgstr ""
91
+
92
+ msgid "Compliance Reports"
93
+ msgstr ""
94
+
95
+ msgid "Compliance Status"
96
+ msgstr ""
97
+
98
+ msgid "Compliance policy configuration"
99
+ msgstr ""
100
+
101
+ msgid "Compliance policy: %s"
102
+ msgstr ""
103
+
104
+ msgid "Compliance reports breakdown"
105
+ msgstr ""
106
+
107
+ msgid "Compliant"
108
+ msgstr ""
109
+
110
+ msgid "Compliant hosts"
111
+ msgstr ""
112
+
113
+ msgid "Compliant with the policy"
114
+ msgstr ""
115
+
116
+ msgid "Create SCAP content"
117
+ msgstr ""
118
+
119
+ msgid "Create a policy"
120
+ msgstr ""
121
+
122
+ msgid "Cron line does not consist of 5 parts separated by space"
123
+ msgstr ""
124
+
125
+ msgid "Date"
126
+ msgstr ""
127
+
128
+ msgid "Default XCCDF profile"
129
+ msgstr ""
130
+
131
+ msgid "Delete"
132
+ msgstr ""
133
+
134
+ msgid "Delete compliance policy %s with all the reports?"
135
+ msgstr ""
136
+
137
+ msgid "Delete compliance report for %s?"
138
+ msgstr ""
139
+
140
+ msgid "Delete reports"
141
+ msgstr ""
142
+
143
+ msgid "Deletes a policy"
144
+ msgstr ""
145
+
146
+ msgid "Deletes an ARF Report"
147
+ msgstr ""
148
+
149
+ msgid "Deletes an SCAP content"
150
+ msgstr ""
151
+
152
+ msgid "Description"
153
+ msgstr ""
154
+
155
+ msgid "Download"
156
+ msgstr ""
157
+
158
+ msgid "Download XML in bzip"
159
+ msgstr ""
160
+
161
+ msgid "Edit"
162
+ msgstr ""
163
+
164
+ msgid "Edit Compliance Policy"
165
+ msgstr ""
166
+
167
+ msgid "Edit SCAP Content"
168
+ msgstr ""
169
+
170
+ msgid "Failed"
171
+ msgstr ""
172
+
173
+ msgid "Failed and Othered"
174
+ msgstr ""
175
+
176
+ msgid "Failed only"
177
+ msgstr ""
178
+
179
+ msgid "Failed to delete %s compliance reports"
180
+ msgstr ""
181
+
182
+ msgid "Failed to delete ARF Report for host %{host_name} reported at %{reported_at}"
183
+ msgstr ""
184
+
185
+ msgid "Failed to downloaded ARF report as bzip: %s"
186
+ msgstr ""
187
+
188
+ msgid "Failed|F"
189
+ msgstr ""
190
+
191
+ msgid "File Upload"
192
+ msgstr ""
193
+
194
+ msgid "General"
195
+ msgstr ""
196
+
197
+ msgid "Help"
198
+ msgstr ""
199
+
200
+ msgid "Host"
201
+ msgstr ""
202
+
203
+ msgid "Host Breakdown Chart"
204
+ msgstr ""
205
+
206
+ msgid "Host Groups"
207
+ msgstr ""
208
+
209
+ msgid "Host compliance details"
210
+ msgstr ""
211
+
212
+ msgid "Host details"
213
+ msgstr ""
214
+
215
+ msgid "Host does not exist anymore"
216
+ msgstr ""
217
+
218
+ msgid "Host is deleted"
219
+ msgstr ""
220
+
221
+ msgid "Hostname"
222
+ msgstr ""
223
+
224
+ msgid "Hosts Breakdown"
225
+ msgstr ""
226
+
227
+ msgid "In Foreman, a compliance policy checklist is defined via %s, once SCAP content is present, you can create a policy, assign select host groups and schedule to run."
228
+ msgstr ""
229
+
230
+ msgid ""
231
+ "In Foreman, scap_contents represent the SCAP security guides on your hosts, and create SCAP profiles for you to assign to hosts / host groups\n"
232
+ " via %s"
233
+ msgstr ""
234
+
235
+ msgid "Incompliant"
236
+ msgstr ""
237
+
238
+ msgid "Incompliant hosts"
239
+ msgstr ""
240
+
241
+ msgid "Inconclusive"
242
+ msgstr ""
243
+
244
+ msgid "Inconclusive results"
245
+ msgstr ""
246
+
247
+ msgid "Latest compliance reports"
248
+ msgstr ""
249
+
250
+ msgid "Latest reports for policy: %s"
251
+ msgstr ""
252
+
253
+ msgid "List ARF reports"
254
+ msgstr ""
255
+
256
+ msgid "List SCAP contents"
257
+ msgstr ""
258
+
259
+ msgid "Loading..."
260
+ msgstr ""
261
+
262
+ msgid "Locations"
263
+ msgstr ""
264
+
265
+ msgid "Message"
266
+ msgstr ""
267
+
268
+ msgid "More details"
269
+ msgstr ""
270
+
271
+ msgid "Never audited"
272
+ msgstr ""
273
+
274
+ msgid "New Compliance Policy"
275
+ msgstr ""
276
+
277
+ msgid "New Compliance policy"
278
+ msgstr ""
279
+
280
+ msgid "New SCAP content"
281
+ msgstr ""
282
+
283
+ msgid "Next"
284
+ msgstr ""
285
+
286
+ msgid "No"
287
+ msgstr ""
288
+
289
+ msgid "No ARF reports for this policy"
290
+ msgstr ""
291
+
292
+ msgid "No Available Proxy to validate SCAP content"
293
+ msgstr ""
294
+
295
+ msgid "No OpenSCAP proxy found for %s"
296
+ msgstr ""
297
+
298
+ msgid "No Proxy with OpenSCAP features"
299
+ msgstr ""
300
+
301
+ msgid "No available proxy to validate. Returned with error: %s"
302
+ msgstr ""
303
+
304
+ msgid "No compliance policy selected."
305
+ msgstr ""
306
+
307
+ msgid "No compliance reports selected"
308
+ msgstr ""
309
+
310
+ msgid "No compliance reports were found."
311
+ msgstr ""
312
+
313
+ msgid "No hosts selected"
314
+ msgstr ""
315
+
316
+ msgid "No hosts were found."
317
+ msgstr ""
318
+
319
+ msgid "No report for this policy"
320
+ msgstr ""
321
+
322
+ msgid "No reports available"
323
+ msgstr ""
324
+
325
+ msgid "No valid OpenSCAP proxy server found."
326
+ msgstr ""
327
+
328
+ msgid "No valid policy ID provided"
329
+ msgstr ""
330
+
331
+ msgid "None!"
332
+ msgstr ""
333
+
334
+ msgid "Not audited"
335
+ msgstr ""
336
+
337
+ msgid "Not compliant with the policy"
338
+ msgstr ""
339
+
340
+ msgid "Nothing to show"
341
+ msgstr ""
342
+
343
+ msgid "Number of Events"
344
+ msgstr ""
345
+
346
+ msgid "Number of a day in month, note that not all months have same count of days"
347
+ msgstr ""
348
+
349
+ msgid "OpenSCAP Host reports widget"
350
+ msgstr ""
351
+
352
+ msgid "OpenSCAP Proxy"
353
+ msgstr ""
354
+
355
+ msgid "OpenSCAP Reports breakdown widget"
356
+ msgstr ""
357
+
358
+ msgid "Organizations"
359
+ msgstr ""
360
+
361
+ msgid "Other"
362
+ msgstr ""
363
+
364
+ msgid "Othered"
365
+ msgstr ""
366
+
367
+ msgid "Othered|O"
368
+ msgstr ""
369
+
370
+ msgid "Passed"
371
+ msgstr ""
372
+
373
+ msgid "Passed|P"
374
+ msgstr ""
375
+
376
+ msgid "Please Confirm"
377
+ msgstr ""
378
+
379
+ msgid "Policies"
380
+ msgstr ""
381
+
382
+ msgid "Policies with hosts:"
383
+ msgstr ""
384
+
385
+ msgid "Policy"
386
+ msgstr ""
387
+
388
+ msgid "Policy %s"
389
+ msgstr ""
390
+
391
+ msgid "Policy SCAP content ID"
392
+ msgstr ""
393
+
394
+ msgid "Policy SCAP content profile ID"
395
+ msgstr ""
396
+
397
+ msgid "Policy description"
398
+ msgstr ""
399
+
400
+ msgid "Policy name"
401
+ msgstr ""
402
+
403
+ msgid "Policy schedule period"
404
+ msgstr ""
405
+
406
+ msgid "Policy schedule weekday"
407
+ msgstr ""
408
+
409
+ msgid "Puppet class %{class} does not have %{parameter} class parameter."
410
+ msgstr ""
411
+
412
+ msgid "Puppet class 'foreman_scap_client' not found, make sure it is imported form Puppet master"
413
+ msgstr ""
414
+
415
+ msgid "Rationale"
416
+ msgstr ""
417
+
418
+ msgid "References"
419
+ msgstr ""
420
+
421
+ msgid "Report Metrics"
422
+ msgstr ""
423
+
424
+ msgid "Report Status"
425
+ msgstr ""
426
+
427
+ msgid "Reported At"
428
+ msgstr ""
429
+
430
+ msgid "Reported at %s"
431
+ msgstr ""
432
+
433
+ msgid "Reports"
434
+ msgstr ""
435
+
436
+ msgid "Required Puppet class %{class} is not found, please ensure it imported first."
437
+ msgstr ""
438
+
439
+ msgid "Resource"
440
+ msgstr ""
441
+
442
+ msgid "Result"
443
+ msgstr ""
444
+
445
+ msgid "SCAP Content"
446
+ msgstr ""
447
+
448
+ msgid "SCAP Contents"
449
+ msgstr ""
450
+
451
+ msgid "SCAP content"
452
+ msgstr ""
453
+
454
+ msgid "SCAP content configuration"
455
+ msgstr ""
456
+
457
+ msgid "SCAP content name"
458
+ msgstr ""
459
+
460
+ msgid "SCAP contents"
461
+ msgstr ""
462
+
463
+ msgid "SCAP policies summary"
464
+ msgstr ""
465
+
466
+ msgid "Schedule"
467
+ msgstr ""
468
+
469
+ msgid "Select Action"
470
+ msgstr ""
471
+
472
+ msgid "Select Compliance Policy"
473
+ msgstr ""
474
+
475
+ msgid "Select all items in this page"
476
+ msgstr ""
477
+
478
+ msgid "Severity"
479
+ msgstr ""
480
+
481
+ msgid "Show Guide"
482
+ msgstr ""
483
+
484
+ msgid "Show a policy's SCAP content"
485
+ msgstr ""
486
+
487
+ msgid "Show an ARF report"
488
+ msgstr ""
489
+
490
+ msgid "Show an SCAP content"
491
+ msgstr ""
492
+
493
+ msgid "Show log messages:"
494
+ msgstr ""
495
+
496
+ msgid "Something went wrong while selecting compliance reports - %s"
497
+ msgstr ""
498
+
499
+ msgid "Something went wrong while selecting hosts - %s"
500
+ msgstr ""
501
+
502
+ msgid "Source: Wikipedia %s"
503
+ msgstr ""
504
+
505
+ msgid "Status chart"
506
+ msgstr ""
507
+
508
+ msgid "Status table"
509
+ msgstr ""
510
+
511
+ msgid "Submit"
512
+ msgstr ""
513
+
514
+ msgid "Successfully deleted %s compliance reports"
515
+ msgstr ""
516
+
517
+ msgid "Successfully deleted ARF report."
518
+ msgstr ""
519
+
520
+ msgid "Summary from %{time} ago to now"
521
+ msgstr ""
522
+
523
+ msgid "Summary report from Foreman server at %{foreman_url}"
524
+ msgstr ""
525
+
526
+ msgid ""
527
+ "The Security Content Automation Protocol (SCAP), combines a number of open standards that are used to enumerate software flaws and\n"
528
+ " configuration issues related to security. They measure systems to find vulnerabilities and offer methods to score those findings in order\n"
529
+ " to evaluate the possible impact. It is a method for using those open standards for automated vulnerability management, measurement,\n"
530
+ " and policy compliance evaluation. "
531
+ msgstr ""
532
+
533
+ msgid "Total"
534
+ msgstr ""
535
+
536
+ msgid "Total hosts: %s"
537
+ msgstr ""
538
+
539
+ msgid "Total of one host"
540
+ msgid_plural "Total of %{hosts} hosts"
541
+ msgstr[0] ""
542
+ msgstr[1] ""
543
+
544
+ msgid "Unable to get HTML version of requested report from Smart Proxy"
545
+ msgstr ""
546
+
547
+ msgid "Unable to get XML version of requested report from Smart Proxy"
548
+ msgstr ""
549
+
550
+ msgid "Unassign Compliance Policy"
551
+ msgstr ""
552
+
553
+ msgid "Unknown Compliance status"
554
+ msgstr ""
555
+
556
+ msgid "Unsupported report status format"
557
+ msgstr ""
558
+
559
+ msgid "Update a policy"
560
+ msgstr ""
561
+
562
+ msgid "Update an SCAP content"
563
+ msgstr ""
564
+
565
+ msgid "Updated hosts: Assigned with compliance policy: %s"
566
+ msgstr ""
567
+
568
+ msgid "Updated hosts: Unassigned from compliance policy '%s'"
569
+ msgstr ""
570
+
571
+ msgid "Upload New SCAP Content"
572
+ msgstr ""
573
+
574
+ msgid "Upload SCAP DataStream file"
575
+ msgstr ""
576
+
577
+ msgid "Upload an ARF report"
578
+ msgstr ""
579
+
580
+ msgid "Upload new SCAP content file"
581
+ msgstr ""
582
+
583
+ msgid "View Report"
584
+ msgstr ""
585
+
586
+ msgid "View full report"
587
+ msgstr ""
588
+
589
+ msgid "XCCDF Profile"
590
+ msgstr ""
591
+
592
+ msgid "Yes"
593
+ msgstr ""
594
+
595
+ msgid "You can specify custom cron line, e.g. \"0 3 * * *\", separate each of 5 values by space"
596
+ msgstr ""
597
+
598
+ msgid "You must fill cron line"
599
+ msgstr ""
600
+
601
+ msgid "You must fill day of month"
602
+ msgstr ""
603
+
604
+ msgid "You must fill weekday"
605
+ msgstr ""
606
+
607
+ msgid "invalid type %s"
608
+ msgstr ""
609
+
610
+ msgid "items selected. Uncheck to Clear"
611
+ msgstr ""
612
+
613
+ msgid "read more"
614
+ msgstr ""
615
+
616
+ msgid "these Complianace reports"
617
+ msgstr ""