Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Riak security "add-source all" adds two source records. #470

Closed
lukebakken opened this issue Jan 12, 2014 · 7 comments
Closed

Riak security "add-source all" adds two source records. #470

lukebakken opened this issue Jan 12, 2014 · 7 comments
Assignees
Milestone

Comments

@lukebakken
Copy link

This doesn't seem to have any negative effects other than the print-sources output:

# riak-admin security print-sources
+--------------------+----------+----------+----------+
|       users        |   cidr   |  source  | options  |
+--------------------+----------+----------+----------+

# riak-admin security print-users
+----------+---------------+----------------------------------------+------------------------------+
| username |     roles     |                password                |           options            |
+----------+---------------+----------------------------------------+------------------------------+

# riak-admin security add-source all 127.0.0.1/32 trust

# riak-admin security print-sources
+--------------------+------------+----------+----------+
|       users        |    cidr    |  source  | options  |
+--------------------+------------+----------+----------+
|                    |127.0.0.1/32|  trust   |    []    |
|        all         |127.0.0.1/32|  trust   |    []    |
+--------------------+------------+----------+----------+
@jaredmorrow
Copy link
Contributor

There has been work from @macintux on the CLI UX for security b/w pre18 and pre20, any idea if these issues still exist?

@jaredmorrow
Copy link
Contributor

Sorry, accidental "close & comment" button push.

@jaredmorrow jaredmorrow added this to the 2.0-RC milestone Mar 24, 2014
@lordnull lordnull self-assigned this May 13, 2014
@lordnull
Copy link

Issue exists, but is a display issue, not a code error. For each user in a source, one source row is added; even is the user added is 'all'. The user lists is combined for display. Then, if a source has 'all' in the user list, an additional row is added to the display. Because the source in the example has no users explicitly added, the row before the 'all' row has an empty list of users.

Possible solutions:

  • If there are no explicit users, don't show the explicit user row.
  • Add documentation that a row with no users means that if the 'all' entry for the source is removed, no all users from that source will be effected.

Note that in both cases, if the documentation doesn't already cover this case, it should:

+--------------------+------------+----------+----------+
|       users        |    cidr    |  source  | options  |
+--------------------+------------+----------+----------+
| jackson, c, b, a,  |127.0.0.1/32|  trust   |    []    |
|       jones        |            |          |          |
|        all         |127.0.0.1/32|  trust   |    []    |
+--------------------+------------+----------+----------+

If the 'all' source is removed, users jackson, c, b, a, and jones will still be trusted.

@macintux
Copy link
Contributor

Touching this; I've had it on my list for a very long time to fix this, so hope to take a look soon.

@macintux
Copy link
Contributor

Trivial patch forthcoming

@macintux
Copy link
Contributor

PR submitted, also submitted docs issue basho/basho_docs#1111

@macintux
Copy link
Contributor

Closing, PR is being merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants