Bug 1196959 - [origin_platformexp_354] Can not enable htpasswd authentication
Summary: [origin_platformexp_354] Can not enable htpasswd authentication
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jordan Liggitt
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-27 07:30 UTC by weiwei jiang
Modified: 2016-10-30 22:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-21 18:00:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description weiwei jiang 2015-02-27 07:30:11 UTC
Description of problem:
Can not start openshift after set the necessary environment variables for htpasswd authentication
OPENSHIFT_OAUTH_HTPASSWD_FILE=/home/wjiang/git/origin/htpasswd
OPENSHIFT_OAUTH_PASSWORD_AUTH=htpasswd
OPENSHIFT_OAUTH_HANDLER=login
OPENSHIFT_OAUTH_REQUEST_HANDLERS=session,basicauth

the root reason is this PR(https://github.com/openshift/origin/pull/1156), and after this PR merged, pkg/cmd/server/origin_master.go#L156~188 lost htpasswd authentication config 

Version-Release number of selected component (if applicable):
# openshift version 
openshift v0.3.2-107-gc516f4c
kubernetes v0.10.0-503-gc977a45

How reproducible:
always

Steps to Reproduce:
1. generate htpasswd database
htpasswd -c /home/wjiang/git/origin/htpasswd admin 
2.set necessary environment variables for htpasswd authentication.
OPENSHIFT_OAUTH_HTPASSWD_FILE=/home/wjiang/git/origin/htpasswd
OPENSHIFT_OAUTH_PASSWORD_AUTH=htpasswd
OPENSHIFT_OAUTH_HANDLER=login
OPENSHIFT_OAUTH_REQUEST_HANDLERS=session,basicauth
3.start openshift 

Actual results:
F0227 14:44:44.314925   23209 auth.go:490] HTPasswdFile is required to support htpasswd auth


Expected results:
openshift can enable htpasswd authentication

Additional info:

Comment 1 Jordan Liggitt 2015-02-28 01:12:23 UTC
Fixed in https://github.com/openshift/origin/pull/1185

Comment 2 weiwei jiang 2015-02-28 02:51:17 UTC
Checked with 
# openshift version 
openshift v0.3.3-16-gf24c912
kubernetes v0.10.0-503-gc977a45
and the bug has been fixed.


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