Bug 1216206 - [RFE] --always-auth should be an allowed option for rhc setup
Summary: [RFE] --always-auth should be an allowed option for rhc setup
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 2.2.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: ---
Assignee: Miciah Dashiel Butler Masters
QA Contact: libra bugs
URL:
Whiteboard:
: 1257362 (view as bug list)
Depends On: 1187806
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-28 18:41 UTC by Eric Rich
Modified: 2019-07-11 09:03 UTC (History)
16 users (show)

Fixed In Version: rhc-1.37.1.2-1.el6op
Doc Type: Enhancement
Doc Text:
When running `rhc setup` for the first time, rhc must contact the OpenShift server. If the `always_auth` option must be set to something other than the default to connect to the OpenShift server, a ~/.openshift/express.conf file had to be manually created with the `always_auth` option set. This enhancement allows users to now pass the `--always_auth` global option to `rhc setup` so that a configuration file does not have to be manually created beforehand. Users can also use this option on any rhc command to overwrite the value in the rhc's configuration.
Clone Of: 1187806
Environment:
Last Closed: 2015-09-30 16:37:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1844 0 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 2.2.7 security, bug fix and enhancement update 2015-09-30 20:35:28 UTC

Internal Links: 1257354 1257362

Description Eric Rich 2015-04-28 18:41:51 UTC
+++ This bug was initially created as a clone of Bug #1187806 +++

Description of problem:

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

The default for "always_auth" is false.  So if all the API end points require authentication via Apache, "rhc setup" will fail.  So "rhc setup" should allow the "--always-auth" function and write the value to ".openshift/express.conf" or ".openshift/servers.yml."

Comment 5 openshift-github-bot 2015-09-08 22:56:25 UTC
Commit pushed to master at https://github.com/openshift/rhc

https://github.com/openshift/rhc/commit/b571857746c8d6587dba4711565272a980691313
Bug 1216206 - Always_auth should be able to be passed to 'setup'

https://bugzilla.redhat.com/show_bug.cgi?id=1216206
The always_auth option could be configured in the rhc configuration prior to running 'rhc setup' to enable always authenticating to openshift api endpoints. This change allows the '--always-auth' option to be passed in with 'rhc setup' to ensure every request is authenticated during setup and that 'always_auth=true' is added to the configuration file. This eliminates the need to manually modify the 'always_auth' directive in the configuration file before running setup.

This fix also allows the '--always-auth' option to be passed globally, with any rhc command.

Comment 7 Timothy Williams 2015-09-21 18:36:34 UTC
*** Bug 1257362 has been marked as a duplicate of this bug. ***

Comment 8 Johnny Liu 2015-09-22 05:55:10 UTC
Verified this bug with rhc-1.37.1.2-1.el6op.noarch in 2.2/2015-09-21.1 puddle, PASS.


# rhc setup --always-auth

# grep 'always_auth' .openshift/express.conf
always_auth=true

Comment 10 errata-xmlrpc 2015-09-30 16:37:29 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/RHSA-2015-1844.html


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