+++ 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."
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.
*** Bug 1257362 has been marked as a duplicate of this bug. ***
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
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