foreman_rh_cloud 14.6.0 → 14.6.2
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/services/foreman_rh_cloud/insights_api_forwarder.rb +9 -0
- data/config/routes.rb +0 -2
- data/lib/foreman_rh_cloud/plugin.rb +0 -1
- data/lib/foreman_rh_cloud/version.rb +1 -1
- data/package.json +1 -1
- data/test/unit/services/foreman_rh_cloud/insights_api_forwarder_test.rb +2 -0
- data/webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js +4 -2
- data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/InventoryAutoUpload.js +4 -1
- data/webpack/InsightsCloudSync/Components/InsightsTable/InsightsTableConstants.js +0 -6
- metadata +1 -2
- data/app/controllers/api/v2/rh_cloud/advisor_engine_config_controller.rb +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b3de79500c9a8710415abccb238af016fa671905436a2e19ff71df5d6657b10
|
|
4
|
+
data.tar.gz: 57889fa6b7ebcfca9573f6a3acced87c01ad5aedbfc147188b37e5d381221001
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5198e2ad4159037c46d5b9abcd03183830e05457f32c7037d71e3404e122409fd869a92d19ecf76d9b0d0c06cd26dc523f67097d06bdfe2b05aa489f6caac1c5
|
|
7
|
+
data.tar.gz: b5ae0158a1ec6c1c4641f93b3cf81de2f63c7d27abe2e7a3908c7c686238b3a923e3a05f53de2d8def625f13b26da3c4bba11fe4d5b3e6b4f17f1d6e83e8cd04
|
|
@@ -39,6 +39,7 @@ module ForemanRhCloud
|
|
|
39
39
|
# edit_vulnerability | PATCH /api/vulnerability/v1/cves/status
|
|
40
40
|
# | PATCH /api/vulnerability/v1/cves/business_risk
|
|
41
41
|
# edit_vulnerability | PATCH /api/vulnerability/v1/systems/opt_out
|
|
42
|
+
# | PATCH /api/vulnerability/v1/feature/cves_without_errata
|
|
42
43
|
#
|
|
43
44
|
# view_advisor | GET /api/insights/v1/*
|
|
44
45
|
# edit_advisor | POST /api/insights/v1/ack/
|
|
@@ -239,6 +240,14 @@ module ForemanRhCloud
|
|
|
239
240
|
'GET' => :view_vulnerability,
|
|
240
241
|
},
|
|
241
242
|
},
|
|
243
|
+
# CVEs without errata feature flag - no tags support (per OpenAPI spec)
|
|
244
|
+
{
|
|
245
|
+
test: %r{api/vulnerability/v1/feature/cves_without_errata$},
|
|
246
|
+
permissions: {
|
|
247
|
+
'GET' => :view_vulnerability,
|
|
248
|
+
'PATCH' => :edit_vulnerability,
|
|
249
|
+
},
|
|
250
|
+
},
|
|
242
251
|
# Other vulnerability endpoints - GET requires view_vulnerability (with tags support)
|
|
243
252
|
{
|
|
244
253
|
test: %r{api/vulnerability/v1/.*},
|
data/config/routes.rb
CHANGED
|
@@ -72,8 +72,6 @@ Rails.application.routes.draw do
|
|
|
72
72
|
namespace 'rh_cloud' do
|
|
73
73
|
post 'announce_to_sources', to: 'inventory#announce_to_sources'
|
|
74
74
|
post 'cloud_request', to: 'cloud_request#update'
|
|
75
|
-
get 'advisor_engine_config', to: 'advisor_engine_config#show'
|
|
76
|
-
|
|
77
75
|
# Inventory upload task endpoints
|
|
78
76
|
get 'inventory_upload/tasks/current', to: 'foreman_inventory_upload/api/tasks#current'
|
|
79
77
|
get 'inventory_upload/tasks/history', to: 'foreman_inventory_upload/api/tasks#history'
|
|
@@ -48,7 +48,6 @@ module ForemanRhCloud
|
|
|
48
48
|
'foreman_inventory_upload/cloud_status': [:index],
|
|
49
49
|
'foreman_inventory_upload/uploads_settings': [:index],
|
|
50
50
|
'foreman_inventory_upload/missing_hosts': [:index],
|
|
51
|
-
'api/v2/rh_cloud/advisor_engine_config': [:show],
|
|
52
51
|
'foreman_rh_cloud/foreman_rh_cloud': [:inventory_upload, :recommendations],
|
|
53
52
|
'react': [:index]
|
|
54
53
|
)
|
data/package.json
CHANGED
|
@@ -427,6 +427,8 @@ class UIRequestForwarderTest < ActiveSupport::TestCase
|
|
|
427
427
|
{ path: 'api/vulnerability/v1/cves/CVE-2024-1234', method: 'GET', expected: :view_vulnerability },
|
|
428
428
|
{ path: 'api/vulnerability/v1/playbooks/abc-123', method: 'GET', expected: :view_vulnerability },
|
|
429
429
|
{ path: 'api/vulnerability/v1/report/abc-123', method: 'GET', expected: :view_vulnerability },
|
|
430
|
+
{ path: 'api/vulnerability/v1/feature/cves_without_errata', method: 'GET', expected: :view_vulnerability },
|
|
431
|
+
{ path: 'api/vulnerability/v1/feature/cves_without_errata', method: 'PATCH', expected: :edit_vulnerability },
|
|
430
432
|
# Advisor endpoints
|
|
431
433
|
{ path: 'api/insights/v1/stats/systems', method: 'GET', expected: :view_advisor },
|
|
432
434
|
{ path: 'api/insights/v1/ack/', method: 'POST', expected: :edit_advisor },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
3
|
import { translate as __ } from 'foremanReact/common/I18n';
|
|
4
|
-
import { Flex, FlexItem } from '@patternfly/react-core';
|
|
4
|
+
import { Flex, FlexItem, Title } from '@patternfly/react-core';
|
|
5
5
|
|
|
6
6
|
import AdvancedSetting from './AdvancedSetting';
|
|
7
7
|
import {
|
|
@@ -32,7 +32,9 @@ const InventorySettings = () => {
|
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
34
|
<div className="inventory-settings">
|
|
35
|
-
<h3>
|
|
35
|
+
<Title headingLevel="h3" size="lg" ouiaId="inventory-settings-title">
|
|
36
|
+
{__('Settings')}
|
|
37
|
+
</Title>
|
|
36
38
|
{[...settingKeys].map(key => {
|
|
37
39
|
const isChildSetting = Object.hasOwnProperty.call(
|
|
38
40
|
childSettingsDict,
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
FormGroup,
|
|
9
9
|
Grid,
|
|
10
10
|
GridItem,
|
|
11
|
+
Title,
|
|
11
12
|
} from '@patternfly/react-core';
|
|
12
13
|
import { InfoAltIcon, CaretRightIcon } from '@patternfly/react-icons';
|
|
13
14
|
import { translate as __ } from 'foremanReact/common/I18n';
|
|
@@ -32,7 +33,9 @@ const InventoryAutoUploadSwitcher = ({
|
|
|
32
33
|
return (
|
|
33
34
|
<FormGroup>
|
|
34
35
|
<Grid>
|
|
35
|
-
<h3
|
|
36
|
+
<Title headingLevel="h3" size="lg" ouiaId="rh-cloud-inventory-title">
|
|
37
|
+
{__('Red Hat Cloud Inventory')}
|
|
38
|
+
</Title>
|
|
36
39
|
<hr />
|
|
37
40
|
<Grid hasGutter>
|
|
38
41
|
<GridItem span={7}>
|
|
@@ -114,10 +114,4 @@ export const INSIGHTS_SET_SELECT_ALL_ALERT = 'INSIGHTS_SET_SELECT_ALL_ALERT';
|
|
|
114
114
|
|
|
115
115
|
export const INSIGHTS_SET_SELECT_ALL = 'INSIGHTS_SET_SELECT_ALL';
|
|
116
116
|
|
|
117
|
-
export const ADVISOR_ENGINE_CONFIG_KEY = 'ADVISOR_ENGINE_CONFIG';
|
|
118
|
-
|
|
119
|
-
export const ADVISOR_ENGINE_CONFIG_PATH = foremanUrl(
|
|
120
|
-
'/api/v2/rh_cloud/advisor_engine_config'
|
|
121
|
-
);
|
|
122
|
-
|
|
123
117
|
export const NEW_HOST_PATH = '/new/hosts/';
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_rh_cloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 14.6.
|
|
4
|
+
version: 14.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Foreman Red Hat Cloud team
|
|
@@ -67,7 +67,6 @@ files:
|
|
|
67
67
|
- app/assets/javascripts/foreman_rh_cloud/locale/ko/foreman_rh_cloud.js
|
|
68
68
|
- app/assets/javascripts/foreman_rh_cloud/locale/zh_CN/foreman_rh_cloud.js
|
|
69
69
|
- app/controllers/api/v2/advisor_engine/advisor_engine_controller.rb
|
|
70
|
-
- app/controllers/api/v2/rh_cloud/advisor_engine_config_controller.rb
|
|
71
70
|
- app/controllers/api/v2/rh_cloud/cloud_request_controller.rb
|
|
72
71
|
- app/controllers/api/v2/rh_cloud/inventory_controller.rb
|
|
73
72
|
- app/controllers/concerns/foreman_rh_cloud/iop_smart_proxy_access.rb
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module Api
|
|
2
|
-
module V2
|
|
3
|
-
module RhCloud
|
|
4
|
-
class AdvisorEngineConfigController < ::Api::V2::BaseController
|
|
5
|
-
include ::Api::Version2
|
|
6
|
-
|
|
7
|
-
api :GET, "/rh_cloud/advisor_engine_config", N_("Show if system is configured to use local iop-advisor-engine.")
|
|
8
|
-
def show
|
|
9
|
-
render json: {
|
|
10
|
-
use_iop_mode: ForemanRhCloud.with_iop_smart_proxy?,
|
|
11
|
-
}, status: :ok
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|