Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1216206 - [RFE] --always-auth should be an allowed option for rhc setup
[RFE] --always-auth should be an allowed option for rhc setup
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
2.2.0
x86_64 Linux
high Severity medium
: ---
: ---
Assigned To: Miciah Dashiel Butler Masters
libra bugs
: NeedsTestCase
: 1257362 (view as bug list)
Depends On: 1187806
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-28 14:41 EDT by Eric Rich
Modified: 2015-09-30 12:37 EDT (History)
16 users (show)

See Also:
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 12:37:29 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1844 normal SHIPPED_LIVE Important: Red Hat OpenShift Enterprise 2.2.7 security, bug fix and enhancement update 2015-09-30 16:35:28 EDT

  None (edit)
Description Eric Rich 2015-04-28 14:41:51 EDT
+++ 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 18:56:25 EDT
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 14:36:34 EDT
*** Bug 1257362 has been marked as a duplicate of this bug. ***
Comment 8 Johnny Liu 2015-09-22 01:55:10 EDT
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 12:37:29 EDT
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.