Bug 1365369 - [RFE] support setting HTTP_PROXY environment values for image-inspector deploy
Summary: [RFE] support setting HTTP_PROXY environment values for image-inspector deploy
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: SmartState Analysis
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.7.0
Assignee: Erez Freiberger
QA Contact: Jaroslav Henner
URL:
Whiteboard: container:smartstate
Depends On: 1406023
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-09 05:55 UTC by Kenjiro Nakayama
Modified: 2020-05-14 15:16 UTC (History)
11 users (show)

Fixed In Version: 5.7.0.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-04 12:59:19 UTC
Category: ---
Cloudforms Team: Container Management
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0012 0 normal SHIPPED_LIVE CFME 5.7.0 bug fixes and enhancement update 2017-01-04 17:50:36 UTC

Description Kenjiro Nakayama 2016-08-09 05:55:01 UTC
Description of problem:

When the user uses image-inspector under proxy, the image needs a external access to download CVE file. However, CloudForms doesn't support to set them.

Version-Release number of selected component (if applicable):

- CFME 4.1

Actual results:

- See this code. There are no way to setting HTTP_PROXY, HTTPS_PROXY env values
- https://github.com/ManageIQ/manageiq/blob/master/app/models/manageiq/providers/kubernetes/container_manager/scanning/job.rb#L325-L346

Expected results:

- Support a way to set environment valu. For example, we expect to set the value like as override image name as override_containers_scanning_image.rb

Comment 3 Erez Freiberger 2016-08-16 11:43:14 UTC
I feel like this might be a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1348610

Any way I posted a PR add this option:
https://github.com/ManageIQ/manageiq/pull/10503

Comment 6 Jaroslav Henner 2016-10-24 19:02:10 UTC
It is unclear to me how to verify this. Am I supposed to configure openshift to use some HTTP proxy and then trigger some image scan in CFME?

Comment 11 errata-xmlrpc 2017-01-04 12:59:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0012.html

Comment 12 myoder 2017-01-05 19:44:40 UTC
Hey Erez,

How do I configure this in the events configuration file?  I don't see anything for OpenShift, I only see proxy settings for EC2 and for Azure.

Thanks,
Michael

Comment 13 Erez Freiberger 2017-01-08 10:57:43 UTC
Hi Michael,
I don't think this is configurable from the events configuration file. You have to set the CustomAttribute's of the provider that you want to configure.

We will soon have a fix for the API that will allow the manageiq ansible module to configure those CustomAttributes.

Erez

[1]https://github.com/ManageIQ/manageiq/pull/12913
[2]https://github.com/ManageIQ/manageiq/pull/13360


Note You need to log in before you can comment on or make changes to this bug.