katello 3.4.4 → 3.4.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/controllers/katello/api/v2/api_controller.rb +1 -1
- data/app/controllers/katello/api/v2/host_collections_controller.rb +1 -1
- data/app/controllers/katello/concerns/api/v2/content_overrides_controller.rb +1 -1
- data/app/helpers/katello/concerns/dashboard_helper_extensions.rb +30 -0
- data/app/lib/actions/candlepin/owner/import_products.rb +3 -1
- data/app/lib/actions/katello/capsule_content/sync.rb +2 -1
- data/app/lib/actions/katello/host/hypervisors_update.rb +3 -1
- data/app/lib/actions/katello/host/register.rb +15 -8
- data/app/lib/actions/katello/organization/create.rb +2 -2
- data/app/lib/actions/katello/organization/manifest_refresh.rb +2 -1
- data/app/models/katello/glue/candlepin/pool.rb +6 -1
- data/app/models/katello/rhsm_fact_parser.rb +2 -1
- data/app/views/dashboard/_subscription_widget.html.erb +34 -12
- data/db/migrate/20161014133811_move_content_view_version_description_to_histories.rb +11 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-host-collections-table.html +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/select-action-dropdown.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-subscriptions-modal.controller.js +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/content-hosts-bulk-errata-modal.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tag-environments.html +1 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/erratum-content-hosts.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/erratum-repositories.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/views/file-content-views.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/files/details/views/file-repositories.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/views/gpg-keys.html +1 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-hosts.controller.js +5 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-hosts.controller.js +6 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-hosts.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-hosts-list.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branch-repositories.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/package-repositories.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.controller.js +8 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/views/product-repositories.html +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery-create.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html +1 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module-content-views.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-module-repositories.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-products.html +1 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +1 -3
- data/lib/katello/engine.rb +4 -0
- data/lib/katello/permission_creator.rb +361 -0
- data/lib/katello/permissions/user_permissions.rb +0 -8
- data/lib/katello/plugin.rb +6 -1
- data/lib/katello/tasks/upgrades/3.4/remove_unused_products.rake +28 -0
- data/lib/katello/version.rb +1 -1
- metadata +5 -11
- data/lib/katello/permissions/activation_key_permissions.rb +0 -28
- data/lib/katello/permissions/capsule_content_permissions.rb +0 -17
- data/lib/katello/permissions/content_view_permissions.rb +0 -82
- data/lib/katello/permissions/gpg_key_permissions.rb +0 -24
- data/lib/katello/permissions/host_collections_permissions.rb +0 -24
- data/lib/katello/permissions/lifecycle_environment_permissions.rb +0 -29
- data/lib/katello/permissions/product_permissions.rb +0 -80
- data/lib/katello/permissions/subscription_permissions.rb +0 -33
- data/lib/katello/permissions/sync_plan_permissions.rb +0 -25
@@ -1,13 +1,5 @@
|
|
1
1
|
require 'katello/plugin.rb'
|
2
2
|
|
3
|
-
Foreman::Plugin.find(:katello).security_block :user do
|
4
|
-
permission :my_organizations,
|
5
|
-
{
|
6
|
-
'katello/api/rhsm/candlepin_proxies' => [:list_owners]
|
7
|
-
},
|
8
|
-
:public => true
|
9
|
-
end
|
10
|
-
|
11
3
|
Foreman::AccessControl.permission(:my_account).actions << [
|
12
4
|
'katello/api/v2/tasks/show'
|
13
5
|
]
|
data/lib/katello/plugin.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
require 'katello/permission_creator'
|
2
|
+
|
1
3
|
Foreman::Plugin.register :katello do
|
2
|
-
requires_foreman '>= 1.
|
4
|
+
requires_foreman '>= 1.15'
|
3
5
|
|
4
6
|
sub_menu :top_menu, :content_menu, :caption => N_('Content'), :after => :monitor_menu do
|
5
7
|
menu :top_menu,
|
@@ -253,4 +255,7 @@ Foreman::Plugin.register :katello do
|
|
253
255
|
.preload(:content_view, :lifecycle_environment, :subscription_facet)
|
254
256
|
.preload(content_facet: [:bound_repositories, :content_view, :lifecycle_environment])
|
255
257
|
end
|
258
|
+
|
259
|
+
Katello::PermissionCreator.new(self).define
|
260
|
+
add_all_permissions_to_default_roles
|
256
261
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
namespace :katello do
|
2
|
+
namespace :upgrades do
|
3
|
+
namespace '3.4' do
|
4
|
+
task :disable_dynflow do
|
5
|
+
ForemanTasks.dynflow.config.remote = true
|
6
|
+
end
|
7
|
+
|
8
|
+
desc "Remove orphaned products that are no longer part of the organization after upgrade to candlepin 2.0"
|
9
|
+
task :remove_unused_products => ["environment", "disable_dynflow", "check_ping"] do
|
10
|
+
User.current = User.anonymous_admin
|
11
|
+
|
12
|
+
Organization.all.each do |org|
|
13
|
+
org.products.redhat.each do |product|
|
14
|
+
begin
|
15
|
+
product.multiplier
|
16
|
+
rescue RestClient::ResourceNotFound
|
17
|
+
if product.repositories.any?
|
18
|
+
Rails.logger.warn("Unexpected upgrade issue: Cannot remove product #{product.name}")
|
19
|
+
else
|
20
|
+
product.destroy!
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/lib/katello/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: katello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- N/A
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -498,6 +498,7 @@ files:
|
|
498
498
|
- app/controllers/katello/remote_execution_controller.rb
|
499
499
|
- app/controllers/katello/sync_management_controller.rb
|
500
500
|
- app/helpers/katello/application_helper.rb
|
501
|
+
- app/helpers/katello/concerns/dashboard_helper_extensions.rb
|
501
502
|
- app/helpers/katello/concerns/foreman_docker/container_steps_helper_extensions.rb
|
502
503
|
- app/helpers/katello/concerns/hosts_and_hostgroups_helper_extensions.rb
|
503
504
|
- app/helpers/katello/concerns/settings_helper_extensions.rb
|
@@ -1909,19 +1910,11 @@ files:
|
|
1909
1910
|
- lib/katello/apipie/validators.rb
|
1910
1911
|
- lib/katello/engine.rb
|
1911
1912
|
- lib/katello/params_parser_wrapper.rb
|
1913
|
+
- lib/katello/permission_creator.rb
|
1912
1914
|
- lib/katello/permissions.rb
|
1913
|
-
- lib/katello/permissions/activation_key_permissions.rb
|
1914
|
-
- lib/katello/permissions/capsule_content_permissions.rb
|
1915
|
-
- lib/katello/permissions/content_view_permissions.rb
|
1916
|
-
- lib/katello/permissions/gpg_key_permissions.rb
|
1917
|
-
- lib/katello/permissions/host_collections_permissions.rb
|
1918
1915
|
- lib/katello/permissions/host_permissions.rb
|
1919
|
-
- lib/katello/permissions/lifecycle_environment_permissions.rb
|
1920
1916
|
- lib/katello/permissions/organization_permissions.rb
|
1921
|
-
- lib/katello/permissions/product_permissions.rb
|
1922
1917
|
- lib/katello/permissions/roles_permissions.rb
|
1923
|
-
- lib/katello/permissions/subscription_permissions.rb
|
1924
|
-
- lib/katello/permissions/sync_plan_permissions.rb
|
1925
1918
|
- lib/katello/permissions/user_permissions.rb
|
1926
1919
|
- lib/katello/plugin.rb
|
1927
1920
|
- lib/katello/repository_types.rb
|
@@ -1955,6 +1948,7 @@ files:
|
|
1955
1948
|
- lib/katello/tasks/upgrades/3.0/update_subscription_facet_backend_data.rake
|
1956
1949
|
- lib/katello/tasks/upgrades/3.3/hypervisors.rake
|
1957
1950
|
- lib/katello/tasks/upgrades/3.3/import_subscriptions.rake
|
1951
|
+
- lib/katello/tasks/upgrades/3.4/remove_unused_products.rake
|
1958
1952
|
- lib/katello/tasks/virt_who_report.rake
|
1959
1953
|
- lib/katello/url_constrained_cookie_store.rb
|
1960
1954
|
- lib/katello/version.rb
|
@@ -1,28 +0,0 @@
|
|
1
|
-
require 'katello/plugin.rb'
|
2
|
-
|
3
|
-
Foreman::Plugin.find(:katello).security_block :activation_keys do
|
4
|
-
permission :view_activation_keys,
|
5
|
-
{
|
6
|
-
'katello/activation_keys' => [:all, :index],
|
7
|
-
'katello/api/v2/activation_keys' => [:index, :show, :available_host_collections, :available_releases,
|
8
|
-
:product_content, :auto_complete_search]
|
9
|
-
},
|
10
|
-
:resource_type => 'Katello::ActivationKey'
|
11
|
-
permission :create_activation_keys,
|
12
|
-
{
|
13
|
-
'katello/api/v2/activation_keys' => [:create, :copy]
|
14
|
-
},
|
15
|
-
:resource_type => 'Katello::ActivationKey'
|
16
|
-
permission :edit_activation_keys,
|
17
|
-
{
|
18
|
-
'katello/api/v2/activation_keys' => [:update, :content_override,
|
19
|
-
:add_subscriptions, :remove_subscriptions,
|
20
|
-
:add_host_collections, :remove_host_collections]
|
21
|
-
},
|
22
|
-
:resource_type => 'Katello::ActivationKey'
|
23
|
-
permission :destroy_activation_keys,
|
24
|
-
{
|
25
|
-
'katello/api/v2/activation_keys' => [:destroy]
|
26
|
-
},
|
27
|
-
:resource_type => 'Katello::ActivationKey'
|
28
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'katello/plugin.rb'
|
2
|
-
|
3
|
-
Foreman::Plugin.find(:katello).security_block :capsule_content do
|
4
|
-
permission :manage_capsule_content,
|
5
|
-
{
|
6
|
-
'katello/api/v2/capsule_content' => [:lifecycle_environments, :available_lifecycle_environments, :add_lifecycle_environment, :remove_lifecycle_environment,
|
7
|
-
:sync, :sync_status, :cancel_sync],
|
8
|
-
'katello/api/v2/capsules' => [:index, :show]
|
9
|
-
},
|
10
|
-
:resource_type => 'SmartProxy'
|
11
|
-
|
12
|
-
permission :view_capsule_content,
|
13
|
-
{
|
14
|
-
'smart_proxies' => [:pulp_storage, :pulp_status, :show_with_content]
|
15
|
-
},
|
16
|
-
:resource_type => "SmartProxy"
|
17
|
-
end
|
@@ -1,82 +0,0 @@
|
|
1
|
-
require 'katello/plugin.rb'
|
2
|
-
|
3
|
-
Foreman::Plugin.find(:katello).security_block :content_views do
|
4
|
-
permission :view_content_views,
|
5
|
-
{
|
6
|
-
'katello/api/v2/content_views' => [:index, :show, :available_puppet_modules, :auto_complete_search,
|
7
|
-
:available_puppet_module_names],
|
8
|
-
'katello/api/v2/content_view_filters' => [:index, :show, :auto_complete_search],
|
9
|
-
'katello/api/v2/content_view_filter_rules' => [:index, :show],
|
10
|
-
'katello/api/v2/content_view_histories' => [:index, :auto_complete_search],
|
11
|
-
'katello/api/v2/content_view_puppet_modules' => [:index, :show, :auto_complete_search],
|
12
|
-
'katello/api/v2/content_view_versions' => [:index, :show, :auto_complete_search],
|
13
|
-
'katello/api/v2/content_view_components' => [:index, :show],
|
14
|
-
'katello/api/v2/package_groups' => [:index, :show],
|
15
|
-
'katello/api/v2/errata' => [:index, :show],
|
16
|
-
'katello/api/v2/puppet_modules' => [:index, :show],
|
17
|
-
'katello/content_views' => [:auto_complete, :auto_complete_search],
|
18
|
-
'katello/errata' => [:short_details, :auto_complete],
|
19
|
-
'katello/packages' => [:details, :auto_complete],
|
20
|
-
'katello/products' => [:auto_complete],
|
21
|
-
'katello/repositories' => [:auto_complete_library],
|
22
|
-
'katello/content_search' => [:index,
|
23
|
-
:products,
|
24
|
-
:repos,
|
25
|
-
:packages,
|
26
|
-
:errata,
|
27
|
-
:puppet_modules,
|
28
|
-
:packages_items,
|
29
|
-
:errata_items,
|
30
|
-
:puppet_modules_items,
|
31
|
-
:view_packages,
|
32
|
-
:view_puppet_modules,
|
33
|
-
:repo_packages,
|
34
|
-
:repo_errata,
|
35
|
-
:repo_puppet_modules,
|
36
|
-
:repo_compare_errata,
|
37
|
-
:repo_compare_packages,
|
38
|
-
:repo_compare_puppet_modules,
|
39
|
-
:view_compare_errata,
|
40
|
-
:view_compare_packages,
|
41
|
-
:view_compare_puppet_modules,
|
42
|
-
:views]
|
43
|
-
},
|
44
|
-
:resource_type => 'Katello::ContentView'
|
45
|
-
permission :create_content_views,
|
46
|
-
{
|
47
|
-
'katello/api/v2/content_views' => [:create, :copy]
|
48
|
-
},
|
49
|
-
:resource_type => 'Katello::ContentView'
|
50
|
-
permission :edit_content_views,
|
51
|
-
{
|
52
|
-
'katello/api/v2/content_views' => [:update],
|
53
|
-
'katello/api/v2/content_view_filters' => [:create, :update, :destroy],
|
54
|
-
'katello/api/v2/content_view_filter_rules' => [:create, :update, :destroy],
|
55
|
-
'katello/api/v2/content_view_puppet_modules' => [:create, :update, :destroy],
|
56
|
-
'katello/api/v2/content_view_components' => [:add_components, :remove_components, :update]
|
57
|
-
},
|
58
|
-
:resource_type => 'Katello::ContentView'
|
59
|
-
permission :destroy_content_views,
|
60
|
-
{
|
61
|
-
'katello/api/v2/content_views' => [:destroy, :remove],
|
62
|
-
'katello/api/v2/content_view_versions' => [:destroy]
|
63
|
-
},
|
64
|
-
:resource_type => 'Katello::ContentView'
|
65
|
-
permission :publish_content_views,
|
66
|
-
{
|
67
|
-
'katello/api/v2/content_views' => [:publish],
|
68
|
-
'katello/api/v2/content_view_versions' => [:incremental_update, :republish_repositories]
|
69
|
-
},
|
70
|
-
:resource_type => 'Katello::ContentView'
|
71
|
-
permission :promote_or_remove_content_views,
|
72
|
-
{
|
73
|
-
'katello/api/v2/content_view_versions' => [:promote],
|
74
|
-
'katello/api/v2/content_views' => [:remove_from_environment, :remove, :republish_repositories]
|
75
|
-
},
|
76
|
-
:resource_type => 'Katello::ContentView'
|
77
|
-
permission :export_content_views,
|
78
|
-
{
|
79
|
-
'katello/api/v2/content_view_versions' => [:export]
|
80
|
-
},
|
81
|
-
:resource_type => 'Katello::ContentView'
|
82
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'katello/plugin.rb'
|
2
|
-
|
3
|
-
Foreman::Plugin.find(:katello).security_block :gpg_keys do
|
4
|
-
permission :view_gpg_keys,
|
5
|
-
{
|
6
|
-
'katello/api/v2/gpg_keys' => [:index, :show, :auto_complete_search]
|
7
|
-
},
|
8
|
-
:resource_type => 'Katello::GpgKey'
|
9
|
-
permission :create_gpg_keys,
|
10
|
-
{
|
11
|
-
'katello/api/v2/gpg_keys' => [:create]
|
12
|
-
},
|
13
|
-
:resource_type => 'Katello::GpgKey'
|
14
|
-
permission :edit_gpg_keys,
|
15
|
-
{
|
16
|
-
'katello/api/v2/gpg_keys' => [:update, :content]
|
17
|
-
},
|
18
|
-
:resource_type => 'Katello::GpgKey'
|
19
|
-
permission :destroy_gpg_keys,
|
20
|
-
{
|
21
|
-
'katello/api/v2/gpg_keys' => [:destroy]
|
22
|
-
},
|
23
|
-
:resource_type => 'Katello::GpgKey'
|
24
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
require 'katello/plugin.rb'
|
2
|
-
|
3
|
-
Foreman::Plugin.find(:katello).security_block :host_collections do
|
4
|
-
permission :view_host_collections,
|
5
|
-
{
|
6
|
-
'katello/api/v2/host_collections' => [:index, :show, :auto_complete_search]
|
7
|
-
},
|
8
|
-
:resource_type => 'Katello::HostCollection'
|
9
|
-
permission :create_host_collections,
|
10
|
-
{
|
11
|
-
'katello/api/v2/host_collections' => [:create, :copy]
|
12
|
-
},
|
13
|
-
:resource_type => 'Katello::HostCollection'
|
14
|
-
permission :edit_host_collections,
|
15
|
-
{
|
16
|
-
'katello/api/v2/host_collections' => [:update, :add_hosts, :remove_hosts]
|
17
|
-
},
|
18
|
-
:resource_type => 'Katello::HostCollection'
|
19
|
-
permission :destroy_host_collections,
|
20
|
-
{
|
21
|
-
'katello/api/v2/host_collections' => [:destroy]
|
22
|
-
},
|
23
|
-
:resource_type => 'Katello::HostCollection'
|
24
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require 'katello/plugin.rb'
|
2
|
-
|
3
|
-
Foreman::Plugin.find(:katello).security_block :lifecycle_environments do
|
4
|
-
permission :view_lifecycle_environments,
|
5
|
-
{
|
6
|
-
'katello/api/v2/environments' => [:index, :show, :paths, :repositories, :auto_complete_search],
|
7
|
-
'katello/api/rhsm/candlepin_proxies' => [:rhsm_index]
|
8
|
-
},
|
9
|
-
:resource_type => 'Katello::KTEnvironment'
|
10
|
-
permission :create_lifecycle_environments,
|
11
|
-
{
|
12
|
-
'katello/api/v2/environments' => [:create]
|
13
|
-
},
|
14
|
-
:resource_type => 'Katello::KTEnvironment'
|
15
|
-
permission :edit_lifecycle_environments,
|
16
|
-
{
|
17
|
-
'katello/api/v2/environments' => [:update]
|
18
|
-
},
|
19
|
-
:resource_type => 'Katello::KTEnvironment'
|
20
|
-
permission :destroy_lifecycle_environments,
|
21
|
-
{
|
22
|
-
'katello/api/v2/environments' => [:destroy]
|
23
|
-
},
|
24
|
-
:resource_type => 'Katello::KTEnvironment'
|
25
|
-
|
26
|
-
permission :promote_or_remove_content_views_to_environments,
|
27
|
-
{},
|
28
|
-
:resource_type => 'Katello::KTEnvironment'
|
29
|
-
end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
require 'katello/plugin.rb'
|
2
|
-
|
3
|
-
Foreman::Plugin.find(:katello).security_block :products do
|
4
|
-
permission :view_products,
|
5
|
-
{
|
6
|
-
'katello/products' => [:auto_complete, :auto_complete_search],
|
7
|
-
'katello/api/v2/products' => [:index, :show, :auto_complete_search],
|
8
|
-
'katello/api/v2/repositories' => [:index, :show, :repository_types, :auto_complete_search, :cancel],
|
9
|
-
'katello/api/v2/packages' => [:index, :show, :auto_complete_search, :auto_complete_name, :auto_complete_arch],
|
10
|
-
'katello/api/v2/package_groups' => [:index, :show, :auto_complete_search],
|
11
|
-
'katello/api/v2/docker_manifests' => [:index, :show, :auto_complete_search],
|
12
|
-
'katello/api/v2/docker_tags' => [:index, :show, :auto_complete_search, :auto_complete_name],
|
13
|
-
'katello/api/v2/file_units' => [:index, :show, :auto_complete_search],
|
14
|
-
'katello/api/v2/ostree_branches' => [:index, :show, :auto_complete_search],
|
15
|
-
'katello/api/v2/errata' => [:index, :show, :auto_complete_search, :compare],
|
16
|
-
'katello/api/v2/puppet_modules' => [:index, :show, :auto_complete_search],
|
17
|
-
'katello/errata' => [:short_details, :auto_complete],
|
18
|
-
'katello/packages' => [:details, :auto_complete],
|
19
|
-
'katello/puppet_modules' => [:show],
|
20
|
-
'katello/files' => [:auto_complete],
|
21
|
-
'katello/repositories' => [:auto_complete_library, :repository_types],
|
22
|
-
'katello/content_search' => [:index,
|
23
|
-
:products,
|
24
|
-
:repos,
|
25
|
-
:packages,
|
26
|
-
:errata,
|
27
|
-
:puppet_modules,
|
28
|
-
:packages_items,
|
29
|
-
:errata_items,
|
30
|
-
:puppet_modules_items,
|
31
|
-
:repo_packages,
|
32
|
-
:repo_errata,
|
33
|
-
:repo_puppet_modules,
|
34
|
-
:repo_compare_errata,
|
35
|
-
:repo_compare_packages,
|
36
|
-
:repo_compare_puppet_modules]
|
37
|
-
},
|
38
|
-
:resource_type => 'Katello::Product'
|
39
|
-
permission :create_products,
|
40
|
-
{
|
41
|
-
'katello/api/v2/products' => [:create],
|
42
|
-
'katello/api/v2/repositories' => [:create],
|
43
|
-
'katello/api/v2/package_groups' => [:create]
|
44
|
-
},
|
45
|
-
:resource_type => 'Katello::Product'
|
46
|
-
permission :edit_products,
|
47
|
-
{
|
48
|
-
'katello/api/v2/products' => [:update],
|
49
|
-
'katello/api/v2/repositories' => [:update, :remove_content, :import_uploads, :upload_content, :republish],
|
50
|
-
'katello/api/v2/products_bulk_actions' => [:update_sync_plans],
|
51
|
-
'katello/api/v2/content_uploads' => [:create, :update, :destroy],
|
52
|
-
'katello/api/v2/organizations' => [:repo_discover, :cancel_repo_discover]
|
53
|
-
},
|
54
|
-
:resource_type => 'Katello::Product'
|
55
|
-
permission :destroy_products,
|
56
|
-
{
|
57
|
-
'katello/api/v2/products' => [:destroy],
|
58
|
-
'katello/api/v2/repositories' => [:destroy],
|
59
|
-
'katello/api/v2/products_bulk_actions' => [:destroy_products],
|
60
|
-
'katello/api/v2/repositories_bulk_actions' => [:destroy_repositories],
|
61
|
-
'katello/api/v2/package_groups' => [:destroy]
|
62
|
-
},
|
63
|
-
:resource_type => 'Katello::Product'
|
64
|
-
permission :sync_products,
|
65
|
-
{
|
66
|
-
'katello/api/v2/products' => [:sync],
|
67
|
-
'katello/api/v2/repositories' => [:sync],
|
68
|
-
'katello/api/v2/products_bulk_actions' => [:sync_products],
|
69
|
-
'katello/api/v2/repositories_bulk_actions' => [:sync_repositories],
|
70
|
-
'katello/api/v2/sync' => [:index],
|
71
|
-
'katello/api/v2/sync_plans' => [:sync],
|
72
|
-
'katello/sync_management' => [:index, :sync_status, :product_status, :sync, :destroy]
|
73
|
-
},
|
74
|
-
:resource_type => 'Katello::Product'
|
75
|
-
permission :export_products,
|
76
|
-
{
|
77
|
-
'katello/api/v2/repositories' => [:export]
|
78
|
-
},
|
79
|
-
:resource_type => 'Katello::Product'
|
80
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
require 'katello/plugin.rb'
|
2
|
-
|
3
|
-
Foreman::Plugin.find(:katello).security_block :subscriptions do
|
4
|
-
permission :view_subscriptions,
|
5
|
-
{
|
6
|
-
'katello/api/v2/subscriptions' => [:index, :show, :available, :manifest_history, :auto_complete_search],
|
7
|
-
'katello/api/v2/repository_sets' => [:index, :show, :available_repositories]
|
8
|
-
},
|
9
|
-
:resource_type => 'Katello::Subscription'
|
10
|
-
permission :attach_subscriptions,
|
11
|
-
{
|
12
|
-
'katello/api/v2/subscriptions' => [:create]
|
13
|
-
},
|
14
|
-
:resource_type => 'Katello::Subscription'
|
15
|
-
permission :unattach_subscriptions,
|
16
|
-
{
|
17
|
-
'katello/api/v2/subscriptions' => [:destroy]
|
18
|
-
},
|
19
|
-
:resource_type => 'Katello::Subscription'
|
20
|
-
permission :import_manifest,
|
21
|
-
{
|
22
|
-
'katello/products' => [:available_repositories, :toggle_repository],
|
23
|
-
'katello/providers' => [:redhat_provider, :redhat_provider_tab],
|
24
|
-
'katello/api/v2/subscriptions' => [:upload, :refresh_manifest],
|
25
|
-
'katello/api/v2/repository_sets' => [:enable, :disable]
|
26
|
-
},
|
27
|
-
:resource_type => 'Katello::Subscription'
|
28
|
-
permission :delete_manifest,
|
29
|
-
{
|
30
|
-
'katello/api/v2/subscriptions' => [:delete_manifest]
|
31
|
-
},
|
32
|
-
:resource_type => 'Katello::Subscription'
|
33
|
-
end
|