Bug 1248706 - Registry Install steps missing adding users
Summary: Registry Install steps missing adding users
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 3.0.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Thien-Thi Nguyen
QA Contact: Vikram Goyal
Vikram Goyal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-30 16:07 UTC by Ryan Howe
Modified: 2019-08-15 05:01 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 23:29:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ryan Howe 2015-07-30 16:07:10 UTC
Document URL: 

https://docs.openshift.com/enterprise/3.0/admin_guide/install/docker_registry.html#access

Section Number and Name: Accessing the Registry

Describe the issue: 

Missing information on how to create a user. To use when logging into your registry. Ansisble install has users set up to use HTPASSWD auth but no instructions on adding users after the install to use. 

Suggestions for improvement: 

a) instruct somewhere further up in the instructions to use htpassword /etc/openshift/openshift-htpasswd someusername

b) switch to AllowAll auth provider for that intial setup.

c) instruct how to get the added users permissions to view or edit the other projects, as users that were created will not be able to view the registry info with out logging out and back in as system:admin or adding new use to the policy in which information on that is further down in the documents.  

Additional information:

Comment 2 Brenton Leanhardt 2015-08-18 13:09:10 UTC
To me option "A" makes the most sense.  Admins need to be aware how to determine the type of authentication an environment is using and how to verify it's working.

We can't do "B" because we aren't going to make our default installation insecure.

From "C" I'm guessing an admin wants to be able to have full access to the registry instead of simply being a normal user that can only access their images.  Jordan, is there a way for the system:admin (the OSE default config is /etc/openshift/master/admin.kubeconfig) to get a token?

Comment 3 Jordan Liggitt 2015-08-18 14:13:35 UTC
The way registry auth is currently implemented, a token-based user is required (system:admin is certificate-based)

Comment 4 Alex Dellapenta 2015-08-18 21:59:07 UTC
+1 to a form of option A (making it clear we're just showing an example for if they're sticking with htpasswd). We have some instructions to that end here we could link to (and enhance if needed):

https://docs.openshift.com/enterprise/3.0/admin_guide/configuring_authentication.html#HTPasswdPasswordIdentityProvider

But also make the token requirement more clear in general. Currently adding similar info for image pruning in https://github.com/openshift/openshift-docs/pull/895.

Comment 5 Thien-Thi Nguyen 2015-10-04 12:43:30 UTC
(In reply to Alex Dellapenta from comment #4)

> [option A]

OK.

> [link to configuring_authentication.html]

Good idea.

> But also make the token requirement more clear in general. Currently adding
> similar info for image pruning in
> https://github.com/openshift/openshift-docs/pull/895.

You refer to the Note around line 152, right?

Comment 6 Thien-Thi Nguyen 2015-10-07 00:54:15 UTC
The change at:

 https://github.com/openshift/openshift-docs/pull/1050

is to mention htpasswd auth (plus example) immediately prior
to the "oc login" command in section "Accessing the Registry".

Moving status to MODIFIED.

Comment 7 Thien-Thi Nguyen 2015-10-12 19:01:19 UTC
Alas, some rework required:

 https://github.com/openshift/openshift-docs/pull/1050#issuecomment-147491179

I will go ahead w/ the proposed rework unless there are objections.

Comment 9 Thien-Thi Nguyen 2015-11-14 12:22:21 UTC
PR merged.  Moving to RELEASE_PENDING.


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