foreman_openscap 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascript/foreman_openscap/policy_edit.js +1 -1
- data/app/controllers/scaptimony_policies_controller.rb +11 -1
- data/app/controllers/scaptimony_scap_contents_controller.rb +10 -3
- data/app/helpers/scaptimony_policies_helper.rb +42 -3
- data/app/models/concerns/foreman_openscap/arf_report_extensions.rb +2 -2
- data/app/models/concerns/foreman_openscap/policy_extensions.rb +7 -5
- data/app/views/scaptimony_policies/_form.html.erb +3 -14
- data/app/views/scaptimony_policies/_scap_content_results.html.erb +1 -7
- data/app/views/scaptimony_policies/steps/_scap_content_form.html.erb +2 -13
- data/app/views/scaptimony_policies/welcome.html.erb +7 -3
- data/app/views/scaptimony_scap_contents/index.html.erb +2 -1
- data/app/views/scaptimony_scap_contents/welcome.html.erb +15 -0
- data/lib/foreman_openscap/version.rb +1 -1
- metadata +66 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdfe8a8e22b3b2215996af3ce7f9c120a2fcd34b
|
4
|
+
data.tar.gz: 68fa725ae1e957719df783588a1f5037a4608750
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87be9f111dc4b9bee30fe09f113839d159da3c5eeb7590892bc4746ad4d4aa7d3fb2c62029959224da41265f3a45e1492871288d2b448b275c2ce3b81f5ac84d
|
7
|
+
data.tar.gz: f2c48e5d2a5d1902c141b964428f5f255f65239796249bb200e62d77bcb40d6cae45c0b9b8773ed73996747534a99e6e6752afda7b992f2a6673aaa30b6317ca
|
@@ -13,7 +13,7 @@ class ScaptimonyPoliciesController < ApplicationController
|
|
13
13
|
.paginate(:page => params[:page], :per_page => params[:per_page])
|
14
14
|
.includes(:scap_content, :scap_content_profile)
|
15
15
|
if @policies.empty? && Scaptimony::ScapContent.unconfigured?
|
16
|
-
redirect_to
|
16
|
+
redirect_to scaptimony_scap_contents_path
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -83,6 +83,16 @@ class ScaptimonyPoliciesController < ApplicationController
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
+
def welcome
|
87
|
+
@searchbar = true
|
88
|
+
if (model_of_controller.first.nil? rescue false)
|
89
|
+
@searchbar = false
|
90
|
+
render :welcome rescue nil and return
|
91
|
+
end
|
92
|
+
rescue
|
93
|
+
not_found
|
94
|
+
end
|
95
|
+
|
86
96
|
private
|
87
97
|
def find_by_id
|
88
98
|
@policy = resource_base.find(params[:id])
|
@@ -9,9 +9,6 @@ class ScaptimonyScapContentsController < ApplicationController
|
|
9
9
|
|
10
10
|
def index
|
11
11
|
@contents = resource_base.search_for(params[:search])
|
12
|
-
if Scaptimony::ScapContent.all.count == 0
|
13
|
-
redirect_to :action => :new
|
14
|
-
end
|
15
12
|
end
|
16
13
|
|
17
14
|
def show
|
@@ -49,6 +46,16 @@ class ScaptimonyScapContentsController < ApplicationController
|
|
49
46
|
end
|
50
47
|
end
|
51
48
|
|
49
|
+
def welcome
|
50
|
+
@searchbar = true
|
51
|
+
if (model_of_controller.first.nil? rescue false)
|
52
|
+
@searchbar = false
|
53
|
+
render :welcome rescue nil and return
|
54
|
+
end
|
55
|
+
rescue
|
56
|
+
not_found
|
57
|
+
end
|
58
|
+
|
52
59
|
private
|
53
60
|
def find_by_id
|
54
61
|
@scaptimony_scap_content = resource_base.find(params[:id])
|
@@ -5,6 +5,39 @@ module ScaptimonyPoliciesHelper
|
|
5
5
|
return []
|
6
6
|
end
|
7
7
|
|
8
|
+
def scap_content_selector(form)
|
9
|
+
scap_contents = Scaptimony::ScapContent.all
|
10
|
+
if scap_contents.length > 1
|
11
|
+
select_f form, :scap_content_id, scap_contents, :id, :title,
|
12
|
+
{:include_blank => _("Choose existing SCAP Content")} ,
|
13
|
+
{:label => _("SCAP Content"),
|
14
|
+
:onchange => 'scap_content_selected(this);',
|
15
|
+
:'data-url' => method_path('scap_content_selected')}
|
16
|
+
else
|
17
|
+
select_f form, :scap_content_id, scap_contents, :id, :title,
|
18
|
+
{:label => _("SCAP Content"),
|
19
|
+
:onchange => 'scap_content_selected(this);',
|
20
|
+
:'data-url' => method_path('scap_content_selected')}
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def scap_content_profile_selector(form)
|
25
|
+
if profiles_selection.length == 1
|
26
|
+
select_f form, :scap_content_profile_id, profiles_selection, :id, :title,
|
27
|
+
{:selected => @policy.scap_content_profile_id },
|
28
|
+
{:label => _("XCCDF Profile"),
|
29
|
+
:disabled => profiles_selection.empty? ? true : false,
|
30
|
+
:help_inline => :indicator}
|
31
|
+
else
|
32
|
+
select_f form, :scap_content_profile_id, profiles_selection, :id, :title,
|
33
|
+
{:selected => @policy.scap_content_profile_id,
|
34
|
+
:include_blank => _("Default XCCDF profile")},
|
35
|
+
{:label => _("XCCDF Profile"),
|
36
|
+
:disabled => profiles_selection.empty? ? true : false,
|
37
|
+
:help_inline => :indicator}
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
8
41
|
def submit_or_cancel_policy(form, overwrite = nil, args = { })
|
9
42
|
args[:cancel_path] ||= send("#{controller_name}_path")
|
10
43
|
content_tag(:div, :class => "clearfix") do
|
@@ -13,8 +46,11 @@ module ScaptimonyPoliciesHelper
|
|
13
46
|
options = {:class => "btn btn-primary"}
|
14
47
|
options.merge! :'data-id' => form_to_submit_id(form) unless options.has_key?(:'data-id')
|
15
48
|
previous = form.object.first_step? ? ' ' : previous_link(form)
|
16
|
-
|
17
|
-
|
49
|
+
cancel_and_submit = content_tag(:div, :class => "pull-right") do
|
50
|
+
link_to(_("Cancel"), args[:cancel_path], :class => "btn btn-default") + ' ' +
|
51
|
+
form.submit(text, options)
|
52
|
+
end
|
53
|
+
(previous + cancel_and_submit).html_safe
|
18
54
|
end
|
19
55
|
end
|
20
56
|
end
|
@@ -24,6 +60,9 @@ module ScaptimonyPoliciesHelper
|
|
24
60
|
end
|
25
61
|
|
26
62
|
def previous_link(form)
|
27
|
-
|
63
|
+
previous = content_tag(:span, :class => 'glyphicon glyphicon-chevron-left') {}
|
64
|
+
content_tag(:div, :class => 'pull-left') do
|
65
|
+
link_to((previous).html_safe, '#', :class => 'btn btn-default', :onclick => "previous_step('#{@policy.previous_step}')")
|
66
|
+
end
|
28
67
|
end
|
29
68
|
end
|
@@ -33,8 +33,8 @@ module ForemanOpenscap
|
|
33
33
|
|
34
34
|
def assign_locations_organizations
|
35
35
|
if host
|
36
|
-
self.
|
37
|
-
self.
|
36
|
+
self.location_ids = [host.location] if SETTINGS[:locations_enabled]
|
37
|
+
self.organization_ids = [host.organization] if SETTINGS[:organizations_enabled]
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
@@ -25,11 +25,12 @@ module ForemanOpenscap
|
|
25
25
|
|
26
26
|
validates :name, :presence => true, :uniqueness => true, :format => { without: /\s/ }
|
27
27
|
validate :ensure_needed_puppetclasses
|
28
|
-
validates :period, :inclusion => {:in => %w[weekly monthly custom]},
|
28
|
+
validates :period, :inclusion => {:in => %w[weekly monthly custom]},
|
29
|
+
:if => Proc.new { | policy | policy.new_record? ? policy.step_index > 3 : !policy.id.blank? }
|
29
30
|
validates :weekday, :inclusion => {:in => Date::DAYNAMES.map(&:downcase)},
|
30
|
-
:if => Proc.new { | policy | policy.step_index > 3 && policy.period == 'weekly' }
|
31
|
+
:if => Proc.new { | policy | policy.new_record? ? policy.step_index > 3 && policy.period == 'weekly' : !policy.id.blank? }
|
31
32
|
validates :day_of_month, :numericality => {:greater_than => 0, :less_than => 32},
|
32
|
-
:if => Proc.new { | policy | policy.step_index > 3 && policy.period == 'monthly' }
|
33
|
+
:if => Proc.new { | policy | policy.new_record? ? policy.step_index > 3 && policy.period == 'monthly' : !policy.id.blank? }
|
33
34
|
validate :valid_cron_line
|
34
35
|
validate :ensure_period_specification_present
|
35
36
|
|
@@ -94,7 +95,7 @@ module ForemanOpenscap
|
|
94
95
|
end
|
95
96
|
|
96
97
|
def wizard_completed?
|
97
|
-
current_step.blank?
|
98
|
+
new_record? && current_step.blank?
|
98
99
|
end
|
99
100
|
|
100
101
|
def step_index
|
@@ -223,7 +224,8 @@ module ForemanOpenscap
|
|
223
224
|
puppetclass.class_params.where(:override => true, :key => SERVER_CLASS_PARAMETER).each do |override|
|
224
225
|
if hostgroup.puppet_proxy && (url = hostgroup.puppet_proxy.url).present?
|
225
226
|
lookup_value = LookupValue.where(:match => "hostgroup=#{hostgroup.to_label}", :lookup_key_id => override.id).first_or_initialize
|
226
|
-
|
227
|
+
puppet_proxy_fqdn = URI.parse(url).host
|
228
|
+
lookup_value.update_attribute(:value, puppet_proxy_fqdn)
|
227
229
|
end
|
228
230
|
end
|
229
231
|
end
|
@@ -22,21 +22,10 @@
|
|
22
22
|
<%= textarea_f(f, :description, :rows => :auto ) %>
|
23
23
|
</div>
|
24
24
|
<div class="tab-pane" id="scap_content">
|
25
|
-
<%=
|
26
|
-
{:include_blank => _("Choose existing SCAP Content")},
|
27
|
-
{:label => _("SCAP Content"),
|
28
|
-
:onchange => 'scap_content_selected(this);',
|
29
|
-
:'data-url' => method_path('scap_content_selected')}
|
30
|
-
%>
|
25
|
+
<%= scap_content_selector(f) %>
|
31
26
|
<span id="scap_content_profile_select">
|
32
|
-
|
33
|
-
|
34
|
-
:include_blank => _("Default XCCDF profile")},
|
35
|
-
{:label => _("XCCDF Profile"),
|
36
|
-
:disabled => profiles_selection.empty? ? true : false,
|
37
|
-
:help_inline => :indicator}
|
38
|
-
%>
|
39
|
-
</span>
|
27
|
+
<%= scap_content_profile_selector(f) %>
|
28
|
+
</span>
|
40
29
|
</div>
|
41
30
|
<div class="tab-pane" id="scap_schedule">
|
42
31
|
<%= select_f(f, :period, %w[Weekly Monthly Custom], :downcase, :to_s,
|
@@ -1,10 +1,4 @@
|
|
1
1
|
<%= fields_for @policy do |f| %>
|
2
|
-
<%=
|
3
|
-
{:selected => @policy.scap_content_profile_id,
|
4
|
-
:include_blank => _("Default XCCDF profile")},
|
5
|
-
{:label => _("XCCDF Profile"),
|
6
|
-
:disabled => profiles_selection.empty? ? true : false,
|
7
|
-
:help_inline => :indicator}
|
8
|
-
%>
|
2
|
+
<%= scap_content_profile_selector(f) %>
|
9
3
|
<% end %>
|
10
4
|
|
@@ -1,20 +1,9 @@
|
|
1
1
|
<div class="tab-pane <%= show_partial_wizard(step) %>" id="scap_content">
|
2
2
|
<%= wizard_header @policy.step_index, *@policy.steps %>
|
3
3
|
|
4
|
-
<%=
|
5
|
-
{:include_blank => _("Choose existing SCAP Content")},
|
6
|
-
{:label => _("SCAP Content"),
|
7
|
-
:onchange => 'scap_content_selected(this);',
|
8
|
-
:'data-url' => method_path('scap_content_selected')}
|
9
|
-
%>
|
4
|
+
<%= scap_content_selector(f) %>
|
10
5
|
<span id="scap_content_profile_select">
|
11
|
-
<%=
|
12
|
-
{:selected => @policy.scap_content_profile_id,
|
13
|
-
:include_blank => _("Default XCCDF profile")},
|
14
|
-
{:label => _("XCCDF Profile"),
|
15
|
-
:disabled => profiles_selection.empty?,
|
16
|
-
:help_inline => :indicator}
|
17
|
-
%>
|
6
|
+
<%= scap_content_profile_selector(f) %>
|
18
7
|
</span>
|
19
8
|
<p class="alert alert-info"><%= _('Notice: Ensure the selected SCAP content exists on your hosts.') %></p>
|
20
9
|
</div>
|
@@ -3,8 +3,12 @@
|
|
3
3
|
<% title _("Compliance policy configuration") %>
|
4
4
|
<div id="welcome">
|
5
5
|
<p>
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
<%= _('A compliance policy is defined by security professionals who specify desired settings
|
7
|
+
(often in the form of a checklist) that are to be used in the computing environment. Compliance audit is a process of figuring out
|
8
|
+
whether a given object follows all the rules written out in a compliance policy.') %>
|
9
|
+
</p>
|
10
|
+
<p>
|
11
|
+
<%= (_('In Foreman, a compliance policy checklist is defined via %s, once SCAP content is present, you can create a policy,
|
12
|
+
assign select hostgroups and schedule to run.') % link_to(_('SCAP content'), scaptimony_scap_contents_path)).html_safe %>
|
9
13
|
</p>
|
10
14
|
</div>
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<% title _("SCAP Contents") %>
|
2
2
|
|
3
|
-
<% title_actions
|
3
|
+
<% title_actions(display_link_if_authorized(_("Upload New SCAP Content"), hash_for_new_scaptimony_scap_content_path),
|
4
|
+
link_to(_("Help"), :action => "welcome")) %>
|
4
5
|
|
5
6
|
<%= render :partial => 'list' %>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<% title_actions display_link_if_authorized(_("New SCAP content"), hash_for_new_scaptimony_scap_content_path) %>
|
2
|
+
|
3
|
+
<% title _("SCAP content configuration") %>
|
4
|
+
<div id="welcome">
|
5
|
+
<p>
|
6
|
+
<%= _('The Security Content Automation Protocol (SCAP), combines a number of open standards that are used to enumerate software flaws and
|
7
|
+
configuration issues related to security. They measure systems to find vulnerabilities and offer methods to score those findings in order
|
8
|
+
to evaluate the possible impact. It is a method for using those open standards for automated vulnerability management, measurement,
|
9
|
+
and policy compliance evaluation. ') %><small><%= (_('Source: Wikipedia %s') % link_to(_('read more'), 'http://en.wikipedia.org/wiki/Security_Content_Automation_Protocol')).html_safe %></small>
|
10
|
+
</p>
|
11
|
+
<p>
|
12
|
+
<%= (_("In Foreman, scap_contents represent the SCAP security guides on your hosts, and create SCAP profiles for you to assign to hosts / hostgroups
|
13
|
+
via %s") % link_to('compliance policies', scaptimony_policies_path)).html_safe %>
|
14
|
+
</p>
|
15
|
+
</div>
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_openscap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Šimon Lukašík
|
7
|
+
- "Šimon Lukašík"
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: scaptimony
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.3.0
|
41
41
|
description: Foreman plug-in for managing security compliance reports
|
42
42
|
email:
|
43
43
|
- slukasik@redhat.com
|
@@ -45,75 +45,76 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
51
|
-
- app/
|
48
|
+
- LICENSE
|
49
|
+
- README.md
|
50
|
+
- Rakefile
|
51
|
+
- app/assets/javascript/foreman_openscap/period_selector.js
|
52
|
+
- app/assets/javascript/foreman_openscap/policy_edit.js
|
53
|
+
- app/assets/stylesheets/foreman_openscap/policy.css.scss
|
54
|
+
- app/controllers/api/v2/compliance/arf_reports_controller.rb
|
55
|
+
- app/controllers/scaptimony_arf_reports_controller.rb
|
56
|
+
- app/controllers/scaptimony_dashboard_controller.rb
|
57
|
+
- app/controllers/scaptimony_policies_controller.rb
|
58
|
+
- app/controllers/scaptimony_policy_dashboard_controller.rb
|
59
|
+
- app/controllers/scaptimony_scap_contents_controller.rb
|
60
|
+
- app/helpers/arf_reports_helper.rb
|
61
|
+
- app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
|
62
|
+
- app/helpers/scaptimony_policies_helper.rb
|
63
|
+
- app/helpers/scaptimony_policy_dashboard_helper.rb
|
64
|
+
- app/helpers/scaptimony_report_dashboard_helper.rb
|
65
|
+
- app/models/concerns/foreman_openscap/arf_report_extensions.rb
|
66
|
+
- app/models/concerns/foreman_openscap/asset_extensions.rb
|
67
|
+
- app/models/concerns/foreman_openscap/host_extensions.rb
|
68
|
+
- app/models/concerns/foreman_openscap/policy_extensions.rb
|
69
|
+
- app/models/concerns/foreman_openscap/scap_content_extensions.rb
|
70
|
+
- app/overrides/hosts/index/host_arf_report.rb
|
71
|
+
- app/services/scaptimony/policy_dashboard/data.rb
|
72
|
+
- app/services/scaptimony/policy_dashboard/loader.rb
|
73
|
+
- app/services/scaptimony/policy_dashboard/manager.rb
|
74
|
+
- app/services/scaptimony/report_dashboard/data.rb
|
52
75
|
- app/views/dashboard/_foreman_openscap_host_reports_widget.html.erb
|
53
76
|
- app/views/dashboard/_foreman_openscap_reports_breakdown_widget.html.erb
|
54
|
-
- app/views/
|
55
|
-
- app/views/
|
56
|
-
- app/views/
|
57
|
-
- app/views/
|
58
|
-
- app/views/scaptimony_scap_contents/edit.html.erb
|
59
|
-
- app/views/scaptimony_policy_dashboard/_policy_reports.html.erb
|
60
|
-
- app/views/scaptimony_policy_dashboard/index.html.erb
|
61
|
-
- app/views/scaptimony_policy_dashboard/_policy_status_widget.html.erb
|
62
|
-
- app/views/scaptimony_policy_dashboard/_policy_chart_widget.html.erb
|
63
|
-
- app/views/scaptimony_policies/welcome.html.erb
|
77
|
+
- app/views/scaptimony_arf_reports/_host_report.html.erb
|
78
|
+
- app/views/scaptimony_arf_reports/_list.html.erb
|
79
|
+
- app/views/scaptimony_arf_reports/index.html.erb
|
80
|
+
- app/views/scaptimony_arf_reports/show.html.erb
|
64
81
|
- app/views/scaptimony_policies/_form.html.erb
|
82
|
+
- app/views/scaptimony_policies/_list.html.erb
|
83
|
+
- app/views/scaptimony_policies/_scap_content_results.html.erb
|
84
|
+
- app/views/scaptimony_policies/create.html.erb
|
85
|
+
- app/views/scaptimony_policies/edit.html.erb
|
86
|
+
- app/views/scaptimony_policies/index.html.erb
|
87
|
+
- app/views/scaptimony_policies/new.html.erb
|
65
88
|
- app/views/scaptimony_policies/select_multiple_hosts.html.erb
|
66
89
|
- app/views/scaptimony_policies/show.html.erb
|
67
|
-
- app/views/scaptimony_policies/
|
68
|
-
- app/views/scaptimony_policies/steps/_organizations_form.html.erb
|
90
|
+
- app/views/scaptimony_policies/steps/_create_policy_form.html.erb
|
69
91
|
- app/views/scaptimony_policies/steps/_hostgroups_form.html.erb
|
70
92
|
- app/views/scaptimony_policies/steps/_locations_form.html.erb
|
93
|
+
- app/views/scaptimony_policies/steps/_organizations_form.html.erb
|
71
94
|
- app/views/scaptimony_policies/steps/_scap_content_form.html.erb
|
72
95
|
- app/views/scaptimony_policies/steps/_schedule_form.html.erb
|
73
|
-
- app/views/scaptimony_policies/steps/_create_policy_form.html.erb
|
74
96
|
- app/views/scaptimony_policies/steps/_step_form.html.erb
|
75
|
-
- app/views/scaptimony_policies/
|
76
|
-
- app/views/
|
77
|
-
- app/views/
|
78
|
-
- app/views/
|
79
|
-
- app/views/
|
80
|
-
- app/
|
81
|
-
- app/
|
82
|
-
- app/
|
83
|
-
- app/
|
84
|
-
- app/
|
85
|
-
- app/
|
86
|
-
- app/controllers/scaptimony_policy_dashboard_controller.rb
|
87
|
-
- app/controllers/scaptimony_policies_controller.rb
|
88
|
-
- app/controllers/scaptimony_scap_contents_controller.rb
|
89
|
-
- app/controllers/api/v2/compliance/arf_reports_controller.rb
|
90
|
-
- app/controllers/scaptimony_dashboard_controller.rb
|
91
|
-
- app/controllers/scaptimony_arf_reports_controller.rb
|
92
|
-
- app/assets/javascript/foreman_openscap/period_selector.js
|
93
|
-
- app/assets/javascript/foreman_openscap/policy_edit.js
|
94
|
-
- app/assets/stylesheets/foreman_openscap/policy.css.scss
|
95
|
-
- app/services/scaptimony/policy_dashboard/data.rb
|
96
|
-
- app/services/scaptimony/policy_dashboard/manager.rb
|
97
|
-
- app/services/scaptimony/policy_dashboard/loader.rb
|
98
|
-
- app/services/scaptimony/report_dashboard/data.rb
|
99
|
-
- app/models/concerns/foreman_openscap/arf_report_extensions.rb
|
100
|
-
- app/models/concerns/foreman_openscap/host_extensions.rb
|
101
|
-
- app/models/concerns/foreman_openscap/policy_extensions.rb
|
102
|
-
- app/models/concerns/foreman_openscap/scap_content_extensions.rb
|
103
|
-
- app/models/concerns/foreman_openscap/asset_extensions.rb
|
97
|
+
- app/views/scaptimony_policies/welcome.html.erb
|
98
|
+
- app/views/scaptimony_policy_dashboard/_policy_chart_widget.html.erb
|
99
|
+
- app/views/scaptimony_policy_dashboard/_policy_reports.html.erb
|
100
|
+
- app/views/scaptimony_policy_dashboard/_policy_status_widget.html.erb
|
101
|
+
- app/views/scaptimony_policy_dashboard/index.html.erb
|
102
|
+
- app/views/scaptimony_scap_contents/_form.html.erb
|
103
|
+
- app/views/scaptimony_scap_contents/_list.html.erb
|
104
|
+
- app/views/scaptimony_scap_contents/edit.html.erb
|
105
|
+
- app/views/scaptimony_scap_contents/index.html.erb
|
106
|
+
- app/views/scaptimony_scap_contents/new.html.erb
|
107
|
+
- app/views/scaptimony_scap_contents/welcome.html.erb
|
104
108
|
- config/routes.rb
|
105
109
|
- db/seeds.d/openscap_feature.rb
|
106
|
-
- lib/
|
110
|
+
- lib/foreman_openscap.rb
|
107
111
|
- lib/foreman_openscap/engine.rb
|
108
112
|
- lib/foreman_openscap/helper.rb
|
109
113
|
- lib/foreman_openscap/version.rb
|
110
|
-
- lib/
|
111
|
-
- LICENSE
|
112
|
-
- Rakefile
|
113
|
-
- README.md
|
114
|
-
- test/unit/foreman_openscap_test.rb
|
115
|
-
- test/test_plugin_helper.rb
|
114
|
+
- lib/tasks/foreman_openscap_tasks.rake
|
116
115
|
- test/factories/foreman_openscap_factories.rb
|
116
|
+
- test/test_plugin_helper.rb
|
117
|
+
- test/unit/foreman_openscap_test.rb
|
117
118
|
homepage: https://github.com/OpenSCAP/foreman_openscap
|
118
119
|
licenses:
|
119
120
|
- GPL-3.0
|
@@ -124,17 +125,17 @@ require_paths:
|
|
124
125
|
- lib
|
125
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
127
|
requirements:
|
127
|
-
- -
|
128
|
+
- - ">="
|
128
129
|
- !ruby/object:Gem::Version
|
129
130
|
version: '0'
|
130
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
132
|
requirements:
|
132
|
-
- -
|
133
|
+
- - ">="
|
133
134
|
- !ruby/object:Gem::Version
|
134
135
|
version: '0'
|
135
136
|
requirements: []
|
136
137
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
138
|
+
rubygems_version: 2.2.2
|
138
139
|
signing_key:
|
139
140
|
specification_version: 4
|
140
141
|
summary: Foreman plug-in for displaying OpenSCAP audit reports
|