foreman_openscap 9.0.3 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/foreman_openscap/locale/cs_CZ/foreman_openscap.js +0 -9
  3. data/app/assets/javascripts/foreman_openscap/locale/de/foreman_openscap.js +0 -9
  4. data/app/assets/javascripts/foreman_openscap/locale/en/foreman_openscap.js +0 -9
  5. data/app/assets/javascripts/foreman_openscap/locale/en_GB/foreman_openscap.js +0 -9
  6. data/app/assets/javascripts/foreman_openscap/locale/es/foreman_openscap.js +0 -9
  7. data/app/assets/javascripts/foreman_openscap/locale/fr/foreman_openscap.js +0 -9
  8. data/app/assets/javascripts/foreman_openscap/locale/gl/foreman_openscap.js +0 -9
  9. data/app/assets/javascripts/foreman_openscap/locale/it/foreman_openscap.js +0 -9
  10. data/app/assets/javascripts/foreman_openscap/locale/ja/foreman_openscap.js +0 -9
  11. data/app/assets/javascripts/foreman_openscap/locale/ka/foreman_openscap.js +0 -9
  12. data/app/assets/javascripts/foreman_openscap/locale/ko/foreman_openscap.js +0 -9
  13. data/app/assets/javascripts/foreman_openscap/locale/pt_BR/foreman_openscap.js +0 -9
  14. data/app/assets/javascripts/foreman_openscap/locale/ru/foreman_openscap.js +0 -9
  15. data/app/assets/javascripts/foreman_openscap/locale/sv_SE/foreman_openscap.js +0 -9
  16. data/app/assets/javascripts/foreman_openscap/locale/zh_CN/foreman_openscap.js +0 -9
  17. data/app/assets/javascripts/foreman_openscap/locale/zh_TW/foreman_openscap.js +0 -9
  18. data/app/helpers/foreman_openscap_helper.rb +2 -18
  19. data/db/migrate/20201217161511_add_url_to_oval_content.rb +1 -1
  20. data/lib/foreman_openscap/engine.rb +148 -155
  21. data/lib/foreman_openscap/version.rb +1 -1
  22. data/locale/cs_CZ/foreman_openscap.edit.po +42 -54
  23. data/locale/cs_CZ/foreman_openscap.po +0 -9
  24. data/locale/de/LC_MESSAGES/foreman_openscap.mo +0 -0
  25. data/locale/de/foreman_openscap.edit.po +51 -250
  26. data/locale/de/foreman_openscap.po +0 -9
  27. data/locale/en/foreman_openscap.edit.po +42 -54
  28. data/locale/en/foreman_openscap.po +0 -9
  29. data/locale/en_GB/foreman_openscap.edit.po +42 -66
  30. data/locale/en_GB/foreman_openscap.po +0 -9
  31. data/locale/es/LC_MESSAGES/foreman_openscap.mo +0 -0
  32. data/locale/es/foreman_openscap.edit.po +51 -252
  33. data/locale/es/foreman_openscap.po +0 -9
  34. data/locale/foreman_openscap.pot +47 -57
  35. data/locale/fr/LC_MESSAGES/foreman_openscap.mo +0 -0
  36. data/locale/fr/foreman_openscap.edit.po +51 -258
  37. data/locale/fr/foreman_openscap.po +0 -9
  38. data/locale/gl/foreman_openscap.edit.po +42 -54
  39. data/locale/gl/foreman_openscap.po +0 -9
  40. data/locale/it/foreman_openscap.edit.po +42 -63
  41. data/locale/it/foreman_openscap.po +0 -9
  42. data/locale/ja/LC_MESSAGES/foreman_openscap.mo +0 -0
  43. data/locale/ja/foreman_openscap.edit.po +49 -248
  44. data/locale/ja/foreman_openscap.po +0 -9
  45. data/locale/ka/LC_MESSAGES/foreman_openscap.mo +0 -0
  46. data/locale/ka/foreman_openscap.edit.po +46 -251
  47. data/locale/ka/foreman_openscap.po +0 -9
  48. data/locale/ko/foreman_openscap.edit.po +42 -69
  49. data/locale/ko/foreman_openscap.po +0 -9
  50. data/locale/pt_BR/LC_MESSAGES/foreman_openscap.mo +0 -0
  51. data/locale/pt_BR/foreman_openscap.edit.po +51 -252
  52. data/locale/pt_BR/foreman_openscap.po +0 -9
  53. data/locale/ru/foreman_openscap.edit.po +42 -69
  54. data/locale/ru/foreman_openscap.po +0 -9
  55. data/locale/sv_SE/foreman_openscap.edit.po +42 -54
  56. data/locale/sv_SE/foreman_openscap.po +0 -9
  57. data/locale/zh_CN/LC_MESSAGES/foreman_openscap.mo +0 -0
  58. data/locale/zh_CN/foreman_openscap.edit.po +49 -246
  59. data/locale/zh_CN/foreman_openscap.po +0 -9
  60. data/locale/zh_TW/foreman_openscap.edit.po +42 -69
  61. data/locale/zh_TW/foreman_openscap.po +0 -9
  62. data/test/unit/message_cleaner_test.rb +1 -0
  63. data/webpack/components/OpenscapRemediationWizard/Footer.js +54 -0
  64. data/webpack/components/OpenscapRemediationWizard/constants.js +9 -0
  65. data/webpack/components/OpenscapRemediationWizard/index.js +11 -5
  66. metadata +6 -5
@@ -5,15 +5,6 @@ module ForemanOpenscap
5
5
 
6
6
  class Engine < ::Rails::Engine
7
7
  engine_name 'foreman_openscap'
8
- config.autoload_paths += Dir["#{config.root}/app/controllers/concerns"]
9
- config.autoload_paths += Dir["#{config.root}/app/helpers/concerns"]
10
- config.autoload_paths += Dir["#{config.root}/app/models/concerns"]
11
- config.autoload_paths += Dir["#{config.root}/app/models"]
12
- config.autoload_paths += Dir["#{config.root}/app/graphql"]
13
- config.autoload_paths += Dir["#{config.root}/app/lib"]
14
- config.autoload_paths += Dir["#{config.root}/app/services"]
15
- config.autoload_paths += Dir["#{config.root}/lib"]
16
- config.autoload_paths += Dir["#{config.root}/test/"]
17
8
 
18
9
  # Add any db migrations
19
10
  initializer "foreman_openscap.load_app_instance_data" do |app|
@@ -47,154 +38,156 @@ module ForemanOpenscap
47
38
  end
48
39
 
49
40
  initializer 'foreman_openscap.register_plugin', :before => :finisher_hook do |app|
50
- Foreman::Plugin.register :foreman_openscap do
51
- requires_foreman '>= 3.11'
52
- register_gettext
53
-
54
- apipie_documented_controllers ["#{ForemanOpenscap::Engine.root}/app/controllers/api/v2/compliance/*.rb"]
55
-
56
- register_custom_status ForemanOpenscap::ComplianceStatus
57
-
58
- # Add permissions
59
- security_block :foreman_openscap do
60
- permission :view_arf_reports, { :arf_reports => %i[index show parse_html show_html show_log
61
- parse_bzip auto_complete_search download_html],
62
- 'api/v2/compliance/arf_reports' => %i[index show download download_html],
63
- :compliance_hosts => [:show] },
64
- :resource_type => 'ForemanOpenscap::ArfReport'
65
- permission :destroy_arf_reports, { :arf_reports => %i[destroy delete_multiple submit_delete_multiple],
66
- 'api/v2/compliance/arf_reports' => [:destroy] },
67
- :resource_type => 'ForemanOpenscap::ArfReport'
68
- permission :create_arf_reports, { 'api/v2/compliance/arf_reports' => [:create] },
69
- :resource_type => 'ForemanOpenscap::ArfReport'
70
-
71
- permission :view_policies, { :policies => %i[index show parse auto_complete_search],
72
- :policy_dashboard => [:index],
73
- :compliance_dashboard => [:index],
74
- 'api/v2/compliance/policies' => %i[index show content] },
75
- :resource_type => 'ForemanOpenscap::Policy'
76
- permission :edit_policies, { :policies => %i[edit update scap_content_selected],
77
- 'api/v2/compliance/policies' => [:update] },
78
- :resource_type => 'ForemanOpenscap::Policy'
79
- permission :create_policies, { :policies => %i[new create],
80
- 'api/v2/compliance/policies' => [:create] },
81
- :resource_type => 'ForemanOpenscap::Policy'
82
- permission :destroy_policies, { :policies => [:destroy],
83
- 'api/v2/compliance/policies' => [:destroy] },
84
- :resource_type => 'ForemanOpenscap::Policy'
85
- permission :assign_policies, { :policies => %i[select_multiple_hosts update_multiple_hosts
86
- disassociate_multiple_hosts
87
- remove_policy_from_multiple_hosts] },
88
- :resource_type => 'ForemanOpenscap::Policy'
89
- permission :view_scap_contents, { :scap_contents => %i[index show auto_complete_search],
90
- 'api/v2/compliance/scap_contents' => %i[index show xml],
91
- 'api/v2/compliance/scap_content_profiles' => %i[index] },
92
- :resource_type => 'ForemanOpenscap::ScapContent'
93
- permission :edit_scap_contents, { :scap_contents => %i[edit update],
94
- 'api/v2/compliance/scap_contents' => [:update] },
95
- :resource_type => 'ForemanOpenscap::ScapContent'
96
- permission :create_scap_contents, { :scap_contents => %i[new create],
97
- 'api/v2/compliance/scap_contents' => %i[create bulk_upload] },
98
- :resource_type => 'ForemanOpenscap::ScapContent'
99
- permission :destroy_scap_contents, { :scap_contents => [:destroy],
100
- 'api/v2/compliance/scap_contents' => [:destroy] },
101
- :resource_type => 'ForemanOpenscap::ScapContent'
102
- permission :edit_hosts, { :hosts => %i[openscap_proxy_changed
103
- select_multiple_openscap_proxy
104
- update_multiple_openscap_proxy] },
105
- :resource_type => "Host"
106
- permission :view_hosts, { 'api/v2/hosts' => [:policies_enc] }, :resource_type => 'Host'
107
- permission :edit_hostgroups, { :hostgroups => [:openscap_proxy_changed] }, :resource_type => "Hostgroup"
108
- permission :create_tailoring_files, { :tailoring_files => %i[create new],
109
- 'api/v2/compliance/tailoring_files' => [:create] },
110
- :resource_type => 'ForemanOpenscap::TailoringFile'
111
- permission :view_tailoring_files, { :tailoring_files => %i[index auto_complete_search xml],
112
- :policies => [:tailoring_file_selected],
113
- 'api/v2/compliance/tailoring_files' => %i[show xml index],
114
- 'api/v2/compliance/policies' => [:tailoring],
41
+ app.reloader.to_prepare do
42
+ Foreman::Plugin.register :foreman_openscap do
43
+ requires_foreman '>= 3.13'
44
+ register_gettext
45
+
46
+ apipie_documented_controllers ["#{ForemanOpenscap::Engine.root}/app/controllers/api/v2/compliance/*.rb"]
47
+
48
+ register_custom_status ForemanOpenscap::ComplianceStatus
49
+
50
+ # Add permissions
51
+ security_block :foreman_openscap do
52
+ permission :view_arf_reports, { :arf_reports => %i[index show parse_html show_html show_log
53
+ parse_bzip auto_complete_search download_html],
54
+ 'api/v2/compliance/arf_reports' => %i[index show download download_html],
55
+ :compliance_hosts => [:show] },
56
+ :resource_type => 'ForemanOpenscap::ArfReport'
57
+ permission :destroy_arf_reports, { :arf_reports => %i[destroy delete_multiple submit_delete_multiple],
58
+ 'api/v2/compliance/arf_reports' => [:destroy] },
59
+ :resource_type => 'ForemanOpenscap::ArfReport'
60
+ permission :create_arf_reports, { 'api/v2/compliance/arf_reports' => [:create] },
61
+ :resource_type => 'ForemanOpenscap::ArfReport'
62
+
63
+ permission :view_policies, { :policies => %i[index show parse auto_complete_search],
64
+ :policy_dashboard => [:index],
65
+ :compliance_dashboard => [:index],
66
+ 'api/v2/compliance/policies' => %i[index show content] },
67
+ :resource_type => 'ForemanOpenscap::Policy'
68
+ permission :edit_policies, { :policies => %i[edit update scap_content_selected],
69
+ 'api/v2/compliance/policies' => [:update] },
70
+ :resource_type => 'ForemanOpenscap::Policy'
71
+ permission :create_policies, { :policies => %i[new create],
72
+ 'api/v2/compliance/policies' => [:create] },
73
+ :resource_type => 'ForemanOpenscap::Policy'
74
+ permission :destroy_policies, { :policies => [:destroy],
75
+ 'api/v2/compliance/policies' => [:destroy] },
76
+ :resource_type => 'ForemanOpenscap::Policy'
77
+ permission :assign_policies, { :policies => %i[select_multiple_hosts update_multiple_hosts
78
+ disassociate_multiple_hosts
79
+ remove_policy_from_multiple_hosts] },
80
+ :resource_type => 'ForemanOpenscap::Policy'
81
+ permission :view_scap_contents, { :scap_contents => %i[index show auto_complete_search],
82
+ 'api/v2/compliance/scap_contents' => %i[index show xml],
115
83
  'api/v2/compliance/scap_content_profiles' => %i[index] },
116
- :resource_type => 'ForemanOpenscap::TailoringFile'
117
- permission :edit_tailoring_files, { :tailoring_files => %i[edit update],
118
- 'api/v2/compliance/tailoring_files' => [:update] },
119
- :resource_type => 'ForemanOpenscap::TailoringFile'
120
- permission :destroy_tailoring_files, { :tailoring_files => [:destroy],
121
- 'api/v2/compliance/tailoring_files' => [:destroy] },
122
- :resource_type => 'ForemanOpenscap::TailoringFile'
123
- permission :view_openscap_proxies, { :openscap_proxies => [:openscap_spool] },
124
- :resource_type => 'SmartProxy'
125
- end
126
-
127
- role "Compliance viewer", %i[view_arf_reports view_policies view_scap_contents view_tailoring_files view_openscap_proxies],
128
- "Role granting read permissions to policy configuration, scan results and downloading reports."
129
- role "Compliance manager", %i[view_arf_reports view_policies view_scap_contents
130
- destroy_arf_reports edit_policies edit_scap_contents assign_policies
131
- create_policies create_scap_contents destroy_policies destroy_scap_contents
132
- create_tailoring_files view_tailoring_files edit_tailoring_files destroy_tailoring_files
133
- view_openscap_proxies],
134
- "Role granting all permissions to compliance features to non-admin users."
135
- role "Create ARF report", [:create_arf_reports] # special as only Proxy can create
136
-
137
- add_all_permissions_to_default_roles
138
-
139
- # add menu entries
140
- divider :top_menu, :caption => N_('Compliance'), :parent => :hosts_menu
141
- menu :top_menu, :compliance_policies, :caption => N_('Policies'),
142
- :url_hash => { :controller => :policies, :action => :index },
84
+ :resource_type => 'ForemanOpenscap::ScapContent'
85
+ permission :edit_scap_contents, { :scap_contents => %i[edit update],
86
+ 'api/v2/compliance/scap_contents' => [:update] },
87
+ :resource_type => 'ForemanOpenscap::ScapContent'
88
+ permission :create_scap_contents, { :scap_contents => %i[new create],
89
+ 'api/v2/compliance/scap_contents' => %i[create bulk_upload] },
90
+ :resource_type => 'ForemanOpenscap::ScapContent'
91
+ permission :destroy_scap_contents, { :scap_contents => [:destroy],
92
+ 'api/v2/compliance/scap_contents' => [:destroy] },
93
+ :resource_type => 'ForemanOpenscap::ScapContent'
94
+ permission :edit_hosts, { :hosts => %i[openscap_proxy_changed
95
+ select_multiple_openscap_proxy
96
+ update_multiple_openscap_proxy] },
97
+ :resource_type => "Host"
98
+ permission :view_hosts, { 'api/v2/hosts' => [:policies_enc] }, :resource_type => 'Host'
99
+ permission :edit_hostgroups, { :hostgroups => [:openscap_proxy_changed] }, :resource_type => "Hostgroup"
100
+ permission :create_tailoring_files, { :tailoring_files => %i[create new],
101
+ 'api/v2/compliance/tailoring_files' => [:create] },
102
+ :resource_type => 'ForemanOpenscap::TailoringFile'
103
+ permission :view_tailoring_files, { :tailoring_files => %i[index auto_complete_search xml],
104
+ :policies => [:tailoring_file_selected],
105
+ 'api/v2/compliance/tailoring_files' => %i[show xml index],
106
+ 'api/v2/compliance/policies' => [:tailoring],
107
+ 'api/v2/compliance/scap_content_profiles' => %i[index] },
108
+ :resource_type => 'ForemanOpenscap::TailoringFile'
109
+ permission :edit_tailoring_files, { :tailoring_files => %i[edit update],
110
+ 'api/v2/compliance/tailoring_files' => [:update] },
111
+ :resource_type => 'ForemanOpenscap::TailoringFile'
112
+ permission :destroy_tailoring_files, { :tailoring_files => [:destroy],
113
+ 'api/v2/compliance/tailoring_files' => [:destroy] },
114
+ :resource_type => 'ForemanOpenscap::TailoringFile'
115
+ permission :view_openscap_proxies, { :openscap_proxies => [:openscap_spool] },
116
+ :resource_type => 'SmartProxy'
117
+ end
118
+
119
+ role "Compliance viewer", %i[view_arf_reports view_policies view_scap_contents view_tailoring_files view_openscap_proxies],
120
+ "Role granting read permissions to policy configuration, scan results and downloading reports."
121
+ role "Compliance manager", %i[view_arf_reports view_policies view_scap_contents
122
+ destroy_arf_reports edit_policies edit_scap_contents assign_policies
123
+ create_policies create_scap_contents destroy_policies destroy_scap_contents
124
+ create_tailoring_files view_tailoring_files edit_tailoring_files destroy_tailoring_files
125
+ view_openscap_proxies],
126
+ "Role granting all permissions to compliance features to non-admin users."
127
+ role "Create ARF report", [:create_arf_reports] # special as only Proxy can create
128
+
129
+ add_all_permissions_to_default_roles
130
+
131
+ # add menu entries
132
+ divider :top_menu, :caption => N_('Compliance'), :parent => :hosts_menu
133
+ menu :top_menu, :compliance_policies, :caption => N_('Policies'),
134
+ :url_hash => { :controller => :policies, :action => :index },
135
+ :parent => :hosts_menu
136
+ menu :top_menu, :compliance_contents, :caption => N_('SCAP contents'),
137
+ :url_hash => { :controller => :scap_contents, :action => :index },
138
+ :parent => :hosts_menu
139
+ menu :top_menu, :compliance_reports, :caption => N_('Reports'),
140
+ :url_hash => { :controller => :arf_reports, :action => :index },
143
141
  :parent => :hosts_menu
144
- menu :top_menu, :compliance_contents, :caption => N_('SCAP contents'),
145
- :url_hash => { :controller => :scap_contents, :action => :index },
146
- :parent => :hosts_menu
147
- menu :top_menu, :compliance_reports, :caption => N_('Reports'),
148
- :url_hash => { :controller => :arf_reports, :action => :index },
149
- :parent => :hosts_menu
150
- menu :top_menu, :compliance_files, :caption => N_('Tailoring Files'),
151
- :url_hash => { :controller => :tailoring_files, :action => :index },
152
- :parent => :hosts_menu
153
-
154
- # add dashboard widget
155
- widget 'compliance_host_reports_widget',
156
- :name => N_('Latest Compliance Reports'), :sizex => 6, :sizey => 1
157
- widget 'compliance_reports_breakdown_widget',
158
- :name => N_('Compliance Reports Breakdown'), :sizex => 4, :sizey => 1
159
-
160
- # As 'arf_report_breakdowns' is a view and does not appear in schema.rb, db:test:prepare will not create the view
161
- # which will make the following tests fail.
162
- tests_to_skip({ "DashboardIntegrationTest" => ["dashboard page", "dashboard link hosts that had performed modifications",
163
- "dashboard link hosts in error state", "dashboard link good host reports",
164
- "dashboard link hosts that had pending changes", "dashboard link out of sync hosts",
165
- "dashboard link hosts with no reports", "dashboard link hosts with alerts disabled",
166
- "widgets not in dashboard show up in list"] })
167
- # strong params
168
- parameter_filter ::Host::Managed, :openscap_proxy_id, :openscap_proxy
169
- parameter_filter ::Hostgroup, :openscap_proxy_id, :openscap_proxy
170
- parameter_filter Log, :result
171
-
172
- 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.')
173
-
174
- smart_proxy_for ::Hostgroup, :openscap_proxy,
175
- :feature => 'Openscap',
176
- :label => N_('OpenSCAP Proxy'),
177
- :description => proxy_description,
178
- :api_description => N_('ID of OpenSCAP Proxy')
179
- smart_proxy_for Host::Managed, :openscap_proxy,
180
- :feature => 'Openscap',
181
- :label => N_('OpenSCAP Proxy'),
182
- :description => proxy_description,
183
- :api_description => N_('ID of OpenSCAP Proxy')
184
-
185
- add_controller_action_scope('Api::V2::HostsController', :index) do |base_scope|
186
- base_scope.preload(:policies)
187
- end
188
-
189
- add_controller_action_scope('HostsController', :index) do |base_scope|
190
- base_scope.preload(:policies)
191
- end
192
-
193
- register_global_js_file 'global'
194
-
195
- describe_host do
196
- multiple_actions_provider :compliance_host_multiple_actions
197
- overview_buttons_provider :compliance_host_overview_button
142
+ menu :top_menu, :compliance_files, :caption => N_('Tailoring Files'),
143
+ :url_hash => { :controller => :tailoring_files, :action => :index },
144
+ :parent => :hosts_menu
145
+
146
+ # add dashboard widget
147
+ widget 'compliance_host_reports_widget',
148
+ :name => N_('Latest Compliance Reports'), :sizex => 6, :sizey => 1
149
+ widget 'compliance_reports_breakdown_widget',
150
+ :name => N_('Compliance Reports Breakdown'), :sizex => 4, :sizey => 1
151
+
152
+ # As 'arf_report_breakdowns' is a view and does not appear in schema.rb, db:test:prepare will not create the view
153
+ # which will make the following tests fail.
154
+ tests_to_skip({ "DashboardIntegrationTest" => ["dashboard page", "dashboard link hosts that had performed modifications",
155
+ "dashboard link hosts in error state", "dashboard link good host reports",
156
+ "dashboard link hosts that had pending changes", "dashboard link out of sync hosts",
157
+ "dashboard link hosts with no reports", "dashboard link hosts with alerts disabled",
158
+ "widgets not in dashboard show up in list"] })
159
+ # strong params
160
+ parameter_filter ::Host::Managed, :openscap_proxy_id, :openscap_proxy
161
+ parameter_filter ::Hostgroup, :openscap_proxy_id, :openscap_proxy
162
+ parameter_filter Log, :result
163
+
164
+ 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.')
165
+
166
+ smart_proxy_for ::Hostgroup, :openscap_proxy,
167
+ :feature => 'Openscap',
168
+ :label => N_('OpenSCAP Proxy'),
169
+ :description => proxy_description,
170
+ :api_description => N_('ID of OpenSCAP Proxy')
171
+ smart_proxy_for Host::Managed, :openscap_proxy,
172
+ :feature => 'Openscap',
173
+ :label => N_('OpenSCAP Proxy'),
174
+ :description => proxy_description,
175
+ :api_description => N_('ID of OpenSCAP Proxy')
176
+
177
+ add_controller_action_scope('Api::V2::HostsController', :index) do |base_scope|
178
+ base_scope.preload(:policies)
179
+ end
180
+
181
+ add_controller_action_scope('HostsController', :index) do |base_scope|
182
+ base_scope.preload(:policies)
183
+ end
184
+
185
+ register_global_js_file 'global'
186
+
187
+ describe_host do
188
+ multiple_actions_provider :compliance_host_multiple_actions
189
+ overview_buttons_provider :compliance_host_overview_button
190
+ end
198
191
  end
199
192
  end
200
193
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanOpenscap
2
- VERSION = "9.0.3".freeze
2
+ VERSION = "10.0.0".freeze
3
3
  end
@@ -165,7 +165,7 @@ msgstr ""
165
165
  msgid "XML containing SCAP content"
166
166
  msgstr ""
167
167
 
168
- #: ../app/controllers/api/v2/compliance/scap_contents_controller.rb:42 ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:37
168
+ #: ../app/controllers/api/v2/compliance/scap_contents_controller.rb:42 ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:36
169
169
  msgid "Original file name of the XML file"
170
170
  msgstr ""
171
171
 
@@ -201,35 +201,35 @@ msgstr ""
201
201
  msgid "Please specify import type, received: %{received}, expected one of: %{expected}"
202
202
  msgstr ""
203
203
 
204
- #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:11
204
+ #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:10
205
205
  msgid "List Tailoring files"
206
206
  msgstr ""
207
207
 
208
- #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:19
208
+ #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:18
209
209
  msgid "Download a Tailoring file as XML"
210
210
  msgstr ""
211
211
 
212
- #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:28
212
+ #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:27
213
213
  msgid "Show a Tailoring file"
214
214
  msgstr ""
215
215
 
216
- #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:35
216
+ #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:34
217
217
  msgid "Tailoring file name"
218
218
  msgstr ""
219
219
 
220
- #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:36
220
+ #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:35
221
221
  msgid "XML containing tailoring file"
222
222
  msgstr ""
223
223
 
224
- #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:42
224
+ #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:41
225
225
  msgid "Create a Tailoring file"
226
226
  msgstr ""
227
227
 
228
- #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:50
228
+ #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:49
229
229
  msgid "Update a Tailoring file"
230
230
  msgstr ""
231
231
 
232
- #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:58
232
+ #: ../app/controllers/api/v2/compliance/tailoring_files_controller.rb:57
233
233
  msgid "Deletes a Tailoring file"
234
234
  msgstr ""
235
235
 
@@ -440,7 +440,7 @@ msgstr ""
440
440
  msgid "Change OpenSCAP Proxy"
441
441
  msgstr ""
442
442
 
443
- #: ../app/helpers/compliance_hosts_helper.rb:37 ../app/models/foreman_openscap/compliance_status.rb:8 ../lib/foreman_openscap/engine.rb:140 ../webpack/components/HostExtentions/HostKebabItems.js:39
443
+ #: ../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
444
444
  msgid "Compliance"
445
445
  msgstr ""
446
446
 
@@ -488,7 +488,7 @@ msgstr ""
488
488
  msgid "Submit"
489
489
  msgstr ""
490
490
 
491
- #: ../app/helpers/policies_helper.rb:115 ../app/views/arf_reports/_list.html.erb:53 ../webpack/components/ConfirmModal.js:29
491
+ #: ../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
492
492
  msgid "Cancel"
493
493
  msgstr ""
494
494
 
@@ -616,23 +616,23 @@ msgstr ""
616
616
  msgid "Cannot generate HTML guide, no valid OpenSCAP proxy server found."
617
617
  msgstr ""
618
618
 
619
- #: ../app/models/foreman_openscap/policy.rb:227
619
+ #: ../app/models/foreman_openscap/policy.rb:223
620
620
  msgid "must be present when tailoring file profile present"
621
621
  msgstr ""
622
622
 
623
- #: ../app/models/foreman_openscap/policy.rb:228
623
+ #: ../app/models/foreman_openscap/policy.rb:224
624
624
  msgid "must be present when tailoring file present"
625
625
  msgstr ""
626
626
 
627
- #: ../app/models/foreman_openscap/policy.rb:233
627
+ #: ../app/models/foreman_openscap/policy.rb:229
628
628
  msgid "does not come from selected tailoring file"
629
629
  msgstr ""
630
630
 
631
- #: ../app/models/foreman_openscap/policy.rb:239
631
+ #: ../app/models/foreman_openscap/policy.rb:235
632
632
  msgid "does not have the selected SCAP content profile"
633
633
  msgstr ""
634
634
 
635
- #: ../app/models/foreman_openscap/policy.rb:271
635
+ #: ../app/models/foreman_openscap/policy.rb:267
636
636
  msgid "cannot assign to %s, all assigned policies must be deployed in the same way, check 'deploy by' for each assigned policy"
637
637
  msgstr ""
638
638
 
@@ -696,18 +696,6 @@ msgstr ""
696
696
  msgid "Failed to save when overriding parameters for %{config_tool}, cause: %{errors}"
697
697
  msgstr ""
698
698
 
699
- #: ../app/services/foreman_openscap/openscap_proxy_version_check.rb:39
700
- msgid "This feature is temporarily disabled. "
701
- msgstr ""
702
-
703
- #: ../app/services/foreman_openscap/openscap_proxy_version_check.rb:40
704
- msgid "The following Smart Proxies need to be updated to unlock the feature: %s. "
705
- msgstr ""
706
-
707
- #: ../app/services/foreman_openscap/openscap_proxy_version_check.rb:41
708
- msgid "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions."
709
- msgstr ""
710
-
711
699
  #: ../app/validators/foreman_openscap/data_stream_validator.rb:9
712
700
  msgid "No proxy with OpenSCAP feature was found."
713
701
  msgstr ""
@@ -816,7 +804,7 @@ msgstr ""
816
804
  msgid "these Compliance reports"
817
805
  msgstr ""
818
806
 
819
- #: ../app/views/arf_reports/show.html.erb:14
807
+ #: ../app/views/arf_reports/show.html.erb:14 ../webpack/components/OpenscapRemediationWizard/Footer.js:40
820
808
  msgid "Back"
821
809
  msgstr ""
822
810
 
@@ -870,7 +858,7 @@ msgstr ""
870
858
  msgid "No report for this policy"
871
859
  msgstr ""
872
860
 
873
- #: ../app/views/dashboard/_compliance_host_reports_widget.html.erb:1 ../lib/foreman_openscap/engine.rb:156
861
+ #: ../app/views/dashboard/_compliance_host_reports_widget.html.erb:1 ../lib/foreman_openscap/engine.rb:148
874
862
  msgid "Latest Compliance Reports"
875
863
  msgstr ""
876
864
 
@@ -886,7 +874,7 @@ msgstr ""
886
874
  msgid "Policy is missing"
887
875
  msgstr ""
888
876
 
889
- #: ../app/views/dashboard/_compliance_reports_breakdown_widget.html.erb:1 ../lib/foreman_openscap/engine.rb:158
877
+ #: ../app/views/dashboard/_compliance_reports_breakdown_widget.html.erb:1 ../lib/foreman_openscap/engine.rb:150
890
878
  msgid "Compliance Reports Breakdown"
891
879
  msgstr ""
892
880
 
@@ -1040,7 +1028,7 @@ msgstr ""
1040
1028
  msgid "Choose day in month"
1041
1029
  msgstr ""
1042
1030
 
1043
- #: ../app/views/policies/steps/_step_form.html.erb:11
1031
+ #: ../app/views/policies/steps/_step_form.html.erb:11 ../webpack/components/OpenscapRemediationWizard/Footer.js:31
1044
1032
  msgid "Next"
1045
1033
  msgstr ""
1046
1034
 
@@ -1200,7 +1188,7 @@ msgstr ""
1200
1188
  msgid "Delete tailoring file %s?"
1201
1189
  msgstr ""
1202
1190
 
1203
- #: ../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:150
1191
+ #: ../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
1204
1192
  msgid "Tailoring Files"
1205
1193
  msgstr ""
1206
1194
 
@@ -1222,7 +1210,7 @@ msgid ""
1222
1210
  " via %s"
1223
1211
  msgstr ""
1224
1212
 
1225
- #: ../app/views/tailoring_files/welcome.html.erb:13
1213
+ #: ../app/views/tailoring_files/welcome.html.erb:12
1226
1214
  msgid "New Tailoring File"
1227
1215
  msgstr ""
1228
1216
 
@@ -1266,39 +1254,39 @@ msgstr ""
1266
1254
  msgid "%s content"
1267
1255
  msgstr ""
1268
1256
 
1269
- #: ../lib/foreman_openscap/engine.rb:141
1257
+ #: ../lib/foreman_openscap/engine.rb:133
1270
1258
  msgid "Policies"
1271
1259
  msgstr ""
1272
1260
 
1273
- #: ../lib/foreman_openscap/engine.rb:144
1261
+ #: ../lib/foreman_openscap/engine.rb:136
1274
1262
  msgid "SCAP contents"
1275
1263
  msgstr ""
1276
1264
 
1277
- #: ../lib/foreman_openscap/engine.rb:147
1265
+ #: ../lib/foreman_openscap/engine.rb:139
1278
1266
  msgid "Reports"
1279
1267
  msgstr ""
1280
1268
 
1281
- #: ../lib/foreman_openscap/engine.rb:172
1269
+ #: ../lib/foreman_openscap/engine.rb:164
1282
1270
  msgid "OpenSCAP Proxy to use for fetching SCAP content and uploading ARF reports. Leave blank and override appropriate parameters when using proxy load balancer."
1283
1271
  msgstr ""
1284
1272
 
1285
- #: ../lib/foreman_openscap/engine.rb:176 ../lib/foreman_openscap/engine.rb:181
1273
+ #: ../lib/foreman_openscap/engine.rb:168 ../lib/foreman_openscap/engine.rb:173
1286
1274
  msgid "OpenSCAP Proxy"
1287
1275
  msgstr ""
1288
1276
 
1289
- #: ../lib/foreman_openscap/engine.rb:178 ../lib/foreman_openscap/engine.rb:183
1277
+ #: ../lib/foreman_openscap/engine.rb:170 ../lib/foreman_openscap/engine.rb:175
1290
1278
  msgid "ID of OpenSCAP Proxy"
1291
1279
  msgstr ""
1292
1280
 
1293
- #: ../lib/foreman_openscap/engine.rb:222 ../lib/foreman_openscap/engine.rb:240
1281
+ #: ../lib/foreman_openscap/engine.rb:215 ../lib/foreman_openscap/engine.rb:233
1294
1282
  msgid "Run OpenSCAP scan"
1295
1283
  msgstr ""
1296
1284
 
1297
- #: ../lib/foreman_openscap/engine.rb:227 ../lib/foreman_openscap/engine.rb:241
1285
+ #: ../lib/foreman_openscap/engine.rb:220 ../lib/foreman_openscap/engine.rb:234
1298
1286
  msgid "Run OpenSCAP remediation with Ansible"
1299
1287
  msgstr ""
1300
1288
 
1301
- #: ../lib/foreman_openscap/engine.rb:232 ../lib/foreman_openscap/engine.rb:242
1289
+ #: ../lib/foreman_openscap/engine.rb:225 ../lib/foreman_openscap/engine.rb:235
1302
1290
  msgid "Run OpenSCAP remediation with Shell"
1303
1291
  msgstr ""
1304
1292
 
@@ -1314,31 +1302,31 @@ msgstr ""
1314
1302
  msgid "There's no available report for this host"
1315
1303
  msgstr ""
1316
1304
 
1317
- #: ../webpack/components/OpenscapRemediationWizard/ViewSelectedHostsLink.js:28
1318
- msgid "View selected hosts"
1305
+ #: ../webpack/components/OpenscapRemediationWizard/Footer.js:30 ../webpack/components/OpenscapRemediationWizard/index.js:94
1306
+ msgid "Run"
1319
1307
  msgstr ""
1320
1308
 
1321
- #: ../webpack/components/OpenscapRemediationWizard/index.js:69 ../webpack/components/OpenscapRemediationWizard/steps/ReviewHosts.js:193
1322
- msgid "Review hosts"
1309
+ #: ../webpack/components/OpenscapRemediationWizard/ViewSelectedHostsLink.js:28
1310
+ msgid "View selected hosts"
1323
1311
  msgstr ""
1324
1312
 
1325
- #: ../webpack/components/OpenscapRemediationWizard/index.js:77 ../webpack/components/OpenscapRemediationWizard/steps/SnippetSelect.js:123
1313
+ #: ../webpack/components/OpenscapRemediationWizard/constants.js:19 ../webpack/components/OpenscapRemediationWizard/steps/SnippetSelect.js:123
1326
1314
  msgid "Select snippet"
1327
1315
  msgstr ""
1328
1316
 
1329
- #: ../webpack/components/OpenscapRemediationWizard/index.js:85 ../webpack/components/OpenscapRemediationWizard/steps/ReviewRemediation.js:97
1330
- msgid "Review remediation"
1317
+ #: ../webpack/components/OpenscapRemediationWizard/constants.js:20 ../webpack/components/OpenscapRemediationWizard/steps/ReviewHosts.js:193
1318
+ msgid "Review hosts"
1331
1319
  msgstr ""
1332
1320
 
1333
- #: ../webpack/components/OpenscapRemediationWizard/index.js:89
1334
- msgid "Run"
1321
+ #: ../webpack/components/OpenscapRemediationWizard/constants.js:21 ../webpack/components/OpenscapRemediationWizard/steps/ReviewRemediation.js:97
1322
+ msgid "Review remediation"
1335
1323
  msgstr ""
1336
1324
 
1337
- #: ../webpack/components/OpenscapRemediationWizard/index.js:93
1325
+ #: ../webpack/components/OpenscapRemediationWizard/constants.js:22
1338
1326
  msgid "Done"
1339
1327
  msgstr ""
1340
1328
 
1341
- #: ../webpack/components/OpenscapRemediationWizard/index.js:127
1329
+ #: ../webpack/components/OpenscapRemediationWizard/index.js:132
1342
1330
  msgid "Remediate %s rule"
1343
1331
  msgstr ""
1344
1332
 
@@ -913,12 +913,6 @@ msgstr ""
913
913
  msgid "The following %{key_name} were missing for %{item_name}: %{key_names}. Make sure they are imported before proceeding."
914
914
  msgstr ""
915
915
 
916
- msgid "The following Smart Proxies need to be updated to unlock the feature: %s. "
917
- msgstr ""
918
-
919
- msgid "The following proxies could not be reached: %s. Please make sure they are available so Foreman can check their versions."
920
- msgstr ""
921
-
922
916
  msgid "The identifier of the host"
923
917
  msgstr ""
924
918
 
@@ -937,9 +931,6 @@ msgstr ""
937
931
  msgid "There's no available report for this host"
938
932
  msgstr ""
939
933
 
940
- msgid "This feature is temporarily disabled. "
941
- msgstr ""
942
-
943
934
  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."
944
935
  msgstr ""
945
936