Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1216206

Summary: [RFE] --always-auth should be an allowed option for rhc setup
Product: OpenShift Container Platform Reporter: Eric Rich <erich>
Component: ocAssignee: Miciah Dashiel Butler Masters <mmasters>
Status: CLOSED ERRATA QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 2.2.0CC: adellape, bleanhar, creynold, erich, erjones, gpei, jialiu, jokerman, jolamb, kevensen, libra-bugs, libra-onpremise-devel, lmeyer, mmccomas, pruan, tiwillia
Target Milestone: ---Keywords: NeedsTestCase
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: 1187806 Environment:
Last Closed: 2015-09-30 16:37:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1187806    
Bug Blocks:    

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