foreman_openscap 5.1.1 → 5.2.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/models/concerns/foreman_openscap/data_stream_content.rb +1 -1
- data/app/models/concerns/foreman_openscap/policy_common.rb +1 -1
- data/app/models/foreman_openscap/arf_report.rb +1 -1
- data/app/models/foreman_openscap/oval_content.rb +1 -1
- data/lib/foreman_openscap/engine.rb +2 -2
- data/lib/foreman_openscap/version.rb +1 -1
- data/locale/de/foreman_openscap.edit.po +0 -0
- data/locale/en_GB/foreman_openscap.edit.po +0 -0
- data/locale/es/foreman_openscap.edit.po +0 -0
- data/locale/fr/foreman_openscap.edit.po +0 -0
- data/locale/gl/foreman_openscap.edit.po +0 -0
- data/locale/it/foreman_openscap.edit.po +0 -0
- data/locale/ja/foreman_openscap.edit.po +0 -0
- data/locale/ko/foreman_openscap.edit.po +0 -0
- data/locale/pt_BR/foreman_openscap.edit.po +0 -0
- data/locale/ru/foreman_openscap.edit.po +0 -0
- data/locale/sv_SE/foreman_openscap.edit.po +0 -0
- data/locale/zh_CN/foreman_openscap.edit.po +0 -0
- data/locale/zh_TW/foreman_openscap.edit.po +0 -0
- metadata +42 -29
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4bc5e1e84b8fb45ea3276289081235a25c71eeeef8442a31861361c7888f2a0d
|
|
4
|
+
data.tar.gz: 8c768d06360b78e08a54b471aab8d2a8599e40e1809c6a859390b2af709c9a77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 68ba2f54eed3dfdeb62b5495d9a33ceb8ca808fa233a4eedfb642e270e42721a72502adaff8fb4d19c1666dcd5db72368ba078230358bf2d645560d169fe142d
|
|
7
|
+
data.tar.gz: a6f3b3c43456945f87a2c0349acd4e41187456e690f29bad16576c84dde9ffa23974a58a574fa93849f481f370504dd053cacdc88e9fd81e0c9fca4f44ed915c
|
|
@@ -6,7 +6,7 @@ module ForemanOpenscap
|
|
|
6
6
|
validates_with ForemanOpenscap::DataStreamValidator
|
|
7
7
|
|
|
8
8
|
after_save :create_profiles, :if => lambda { |ds_content| ds_content.scap_file_previously_changed? }
|
|
9
|
-
before_destroy
|
|
9
|
+
before_destroy EnsureNotUsedBy.new(:policies)
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def proxy_url
|
|
@@ -69,7 +69,7 @@ module ForemanOpenscap
|
|
|
69
69
|
|
|
70
70
|
def weekday_number
|
|
71
71
|
# 0 is sunday, 1 is monday in cron, while DAYS_INTO_WEEK has 0 as monday, 6 as sunday
|
|
72
|
-
(Date::DAYS_INTO_WEEK.with_indifferent_access[weekday]) % 7
|
|
72
|
+
(Date::DAYS_INTO_WEEK.with_indifferent_access[weekday] + 1) % 7
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
end
|
|
@@ -119,7 +119,7 @@ module ForemanOpenscap
|
|
|
119
119
|
PolicyArfReport.where(:arf_report_id => arf_report.id, :policy_id => policy.id, :digest => params[:digest]).first_or_create!
|
|
120
120
|
if params[:logs]
|
|
121
121
|
params[:logs].each do |log|
|
|
122
|
-
src = Source.
|
|
122
|
+
src = Source.find_or_create_by(value: log[:source])
|
|
123
123
|
msg = nil
|
|
124
124
|
if src.logs.count > 0
|
|
125
125
|
msg = Log.where(:source_id => src.id).order(:id => :desc).first.message
|
|
@@ -191,8 +191,8 @@ module ForemanOpenscap
|
|
|
191
191
|
"dashboard link hosts with no reports", "dashboard link hosts with alerts disabled",
|
|
192
192
|
"widgets not in dashboard show up in list"] })
|
|
193
193
|
# strong params
|
|
194
|
-
parameter_filter Host::Managed, :openscap_proxy_id, :openscap_proxy
|
|
195
|
-
parameter_filter Hostgroup, :openscap_proxy_id, :openscap_proxy
|
|
194
|
+
parameter_filter ::Host::Managed, :openscap_proxy_id, :openscap_proxy
|
|
195
|
+
parameter_filter ::Hostgroup, :openscap_proxy_id, :openscap_proxy
|
|
196
196
|
parameter_filter Log, :result
|
|
197
197
|
|
|
198
198
|
proxy_description = N_('OpenSCAP Proxy to use for fetching SCAP content and uploading ARF reports. Leave blank and override appropriate parameters when using proxy load balancer.')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
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: 5.
|
|
4
|
+
version: 5.2.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:
|
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -321,32 +321,45 @@ files:
|
|
|
321
321
|
- locale/Makefile
|
|
322
322
|
- locale/action_names.rb
|
|
323
323
|
- locale/de/LC_MESSAGES/foreman_openscap.mo
|
|
324
|
+
- locale/de/foreman_openscap.edit.po
|
|
324
325
|
- locale/de/foreman_openscap.po
|
|
325
326
|
- locale/en_GB/LC_MESSAGES/foreman_openscap.mo
|
|
327
|
+
- locale/en_GB/foreman_openscap.edit.po
|
|
326
328
|
- locale/en_GB/foreman_openscap.po
|
|
327
329
|
- locale/es/LC_MESSAGES/foreman_openscap.mo
|
|
330
|
+
- locale/es/foreman_openscap.edit.po
|
|
328
331
|
- locale/es/foreman_openscap.po
|
|
329
332
|
- locale/foreman_openscap.pot
|
|
330
333
|
- locale/fr/LC_MESSAGES/foreman_openscap.mo
|
|
334
|
+
- locale/fr/foreman_openscap.edit.po
|
|
331
335
|
- locale/fr/foreman_openscap.po
|
|
332
336
|
- locale/gl/LC_MESSAGES/foreman_openscap.mo
|
|
337
|
+
- locale/gl/foreman_openscap.edit.po
|
|
333
338
|
- locale/gl/foreman_openscap.po
|
|
334
339
|
- locale/it/LC_MESSAGES/foreman_openscap.mo
|
|
340
|
+
- locale/it/foreman_openscap.edit.po
|
|
335
341
|
- locale/it/foreman_openscap.po
|
|
336
342
|
- locale/ja/LC_MESSAGES/foreman_openscap.mo
|
|
343
|
+
- locale/ja/foreman_openscap.edit.po
|
|
337
344
|
- locale/ja/foreman_openscap.po
|
|
338
345
|
- locale/ko/LC_MESSAGES/foreman_openscap.mo
|
|
346
|
+
- locale/ko/foreman_openscap.edit.po
|
|
339
347
|
- locale/ko/foreman_openscap.po
|
|
340
348
|
- locale/pt_BR/LC_MESSAGES/foreman_openscap.mo
|
|
349
|
+
- locale/pt_BR/foreman_openscap.edit.po
|
|
341
350
|
- locale/pt_BR/foreman_openscap.po
|
|
342
351
|
- locale/ru/LC_MESSAGES/foreman_openscap.mo
|
|
352
|
+
- locale/ru/foreman_openscap.edit.po
|
|
343
353
|
- locale/ru/foreman_openscap.po
|
|
344
354
|
- locale/sv_SE/LC_MESSAGES/foreman_openscap.mo
|
|
355
|
+
- locale/sv_SE/foreman_openscap.edit.po
|
|
345
356
|
- locale/sv_SE/foreman_openscap.po
|
|
346
357
|
- locale/zanata.xml
|
|
347
358
|
- locale/zh_CN/LC_MESSAGES/foreman_openscap.mo
|
|
359
|
+
- locale/zh_CN/foreman_openscap.edit.po
|
|
348
360
|
- locale/zh_CN/foreman_openscap.po
|
|
349
361
|
- locale/zh_TW/LC_MESSAGES/foreman_openscap.mo
|
|
362
|
+
- locale/zh_TW/foreman_openscap.edit.po
|
|
350
363
|
- locale/zh_TW/foreman_openscap.po
|
|
351
364
|
- package.json
|
|
352
365
|
- test/factories/arf_report_factory.rb
|
|
@@ -502,7 +515,7 @@ homepage: https://github.com/theforeman/foreman_openscap
|
|
|
502
515
|
licenses:
|
|
503
516
|
- GPL-3.0
|
|
504
517
|
metadata: {}
|
|
505
|
-
post_install_message:
|
|
518
|
+
post_install_message:
|
|
506
519
|
rdoc_options: []
|
|
507
520
|
require_paths:
|
|
508
521
|
- lib
|
|
@@ -517,46 +530,41 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
517
530
|
- !ruby/object:Gem::Version
|
|
518
531
|
version: '0'
|
|
519
532
|
requirements: []
|
|
520
|
-
rubygems_version: 3.1.
|
|
521
|
-
signing_key:
|
|
533
|
+
rubygems_version: 3.1.2
|
|
534
|
+
signing_key:
|
|
522
535
|
specification_version: 4
|
|
523
536
|
summary: Foreman plug-in for displaying OpenSCAP audit reports
|
|
524
537
|
test_files:
|
|
525
538
|
- test/factories/arf_report_factory.rb
|
|
526
539
|
- test/factories/asset_factory.rb
|
|
527
|
-
- test/factories/compliance_host_factory.rb
|
|
528
|
-
- test/factories/compliance_log_factory.rb
|
|
529
|
-
- test/factories/oval_content_factory.rb
|
|
530
|
-
- test/factories/oval_policy_factory.rb
|
|
531
540
|
- test/factories/policy_arf_report_factory.rb
|
|
532
541
|
- test/factories/policy_factory.rb
|
|
533
542
|
- test/factories/scap_content_related.rb
|
|
543
|
+
- test/factories/compliance_log_factory.rb
|
|
544
|
+
- test/factories/compliance_host_factory.rb
|
|
545
|
+
- test/factories/oval_content_factory.rb
|
|
546
|
+
- test/factories/oval_policy_factory.rb
|
|
534
547
|
- test/files/arf_report/arf_report.bz2
|
|
535
548
|
- test/files/arf_report/arf_report.html
|
|
536
549
|
- test/files/arf_report/arf_report.json
|
|
537
550
|
- test/files/arf_report/arf_report_msg_desc_changed.json
|
|
538
551
|
- test/files/arf_report/arf_report_msg_value_changed.json
|
|
539
|
-
- test/files/oval_contents/ansible-2.9.oval.xml.bz2
|
|
540
552
|
- test/files/scap_contents/ssg-fedora-ds.xml
|
|
541
553
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring-2.xml
|
|
542
554
|
- test/files/tailoring_files/ssg-firefox-ds-tailoring.xml
|
|
543
|
-
- test/
|
|
555
|
+
- test/files/oval_contents/ansible-2.9.oval.xml.bz2
|
|
556
|
+
- test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
|
|
557
|
+
- test/functional/api/v2/compliance/scap_contents_controller_test.rb
|
|
558
|
+
- test/functional/api/v2/compliance/tailoring_files_controller_test.rb
|
|
544
559
|
- test/functional/api/v2/compliance/arf_reports_controller_test.rb
|
|
545
560
|
- test/functional/api/v2/compliance/oval_contents_controller_test.rb
|
|
546
561
|
- test/functional/api/v2/compliance/oval_policies_controller_test.rb
|
|
547
562
|
- test/functional/api/v2/compliance/oval_reports_controller_test.rb
|
|
548
563
|
- test/functional/api/v2/compliance/policies_controller_test.rb
|
|
549
|
-
- test/functional/api/v2/compliance/scap_content_profiles_controller_test.rb
|
|
550
|
-
- test/functional/api/v2/compliance/scap_contents_controller_test.rb
|
|
551
|
-
- test/functional/api/v2/compliance/tailoring_files_controller_test.rb
|
|
552
564
|
- test/functional/api/v2/hosts_controller_test.rb
|
|
553
565
|
- test/functional/arf_reports_controller_test.rb
|
|
554
566
|
- test/functional/openscap_proxies_controller_test.rb
|
|
555
567
|
- test/functional/tailoring_files_controller_test.rb
|
|
556
|
-
- test/graphql/mutations/oval_policies/delete_mutation_test.rb
|
|
557
|
-
- test/graphql/queries/oval_content_query_test.rb
|
|
558
|
-
- test/graphql/queries/oval_contents_query_test.rb
|
|
559
|
-
- test/graphql/queries/oval_policies_query_test.rb
|
|
560
568
|
- test/helpers/arf_report_dashboard_helper_test.rb
|
|
561
569
|
- test/helpers/policy_dashboard_helper_test.rb
|
|
562
570
|
- test/lib/foreman_openscap/bulk_upload_test.rb
|
|
@@ -567,19 +575,24 @@ test_files:
|
|
|
567
575
|
- test/unit/concerns/openscap_proxy_extenstions_test.rb
|
|
568
576
|
- test/unit/message_cleaner_test.rb
|
|
569
577
|
- test/unit/openscap_host_test.rb
|
|
570
|
-
- test/unit/oval_host_test.rb
|
|
571
|
-
- test/unit/oval_policy_test.rb
|
|
572
|
-
- test/unit/oval_status_test.rb
|
|
573
578
|
- test/unit/policy_mailer_test.rb
|
|
574
|
-
- test/unit/policy_test.rb
|
|
575
579
|
- test/unit/scap_content_test.rb
|
|
576
|
-
- test/unit/services/config_name_service_test.rb
|
|
577
|
-
- test/unit/services/hostgroup_overrider_test.rb
|
|
578
|
-
- test/unit/services/lookup_key_overrider_test.rb
|
|
579
|
-
- test/unit/services/oval/cves_test.rb
|
|
580
|
-
- test/unit/services/oval/setup_check_test.rb
|
|
581
|
-
- test/unit/services/oval/setup_test.rb
|
|
582
580
|
- test/unit/services/report_dashboard/data_test.rb
|
|
583
581
|
- test/unit/services/tailoring_files_proxy_check_test.rb
|
|
582
|
+
- test/unit/services/oval/cves_test.rb
|
|
583
|
+
- test/unit/services/oval/setup_test.rb
|
|
584
|
+
- test/unit/services/oval/setup_check_test.rb
|
|
585
|
+
- test/unit/services/config_name_service_test.rb
|
|
586
|
+
- test/unit/services/lookup_key_overrider_test.rb
|
|
587
|
+
- test/unit/services/hostgroup_overrider_test.rb
|
|
584
588
|
- test/unit/tailoring_file_test.rb
|
|
589
|
+
- test/unit/oval_host_test.rb
|
|
590
|
+
- test/unit/oval_policy_test.rb
|
|
591
|
+
- test/unit/oval_status_test.rb
|
|
592
|
+
- test/unit/policy_test.rb
|
|
593
|
+
- test/fixtures/cve_fixtures.rb
|
|
594
|
+
- test/graphql/queries/oval_contents_query_test.rb
|
|
595
|
+
- test/graphql/queries/oval_policies_query_test.rb
|
|
596
|
+
- test/graphql/queries/oval_content_query_test.rb
|
|
597
|
+
- test/graphql/mutations/oval_policies/delete_mutation_test.rb
|
|
585
598
|
- test/test_plugin_helper.rb
|