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

Treat users and groups as distinct concepts (extended) #534

Merged
merged 1 commit into from
Feb 20, 2014

Conversation

macintux
Copy link
Contributor

(This consolidates #529 and #533.)

To make it easier to reason about and document the new security behavior, this PR splits roles into users and groups.

  • Users (but not groups) can be given authentication information (sources).
  • Groups (but not users) can be used to cascade privileges to other groups and users.

Where the code does not or cannot distinguish between users and groups, I continue to refer to roles, but the user interface is constrained to users and groups.

There are 3 projects impacted by this change:

All should be merged at the same time.

/cc @Vagabond

UserGrants = riak_core_metadata:get({<<"security">>, <<"grants">>}, {User,
Bucket}),
add_revoke_int([{Name, RoleType}|Roles], Bucket, Permissions) ->
Prefix = {<<"security">>, list_to_binary(atom_to_list(RoleType) ++ "grants")},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a pattern matching function for converting the roletype atom to a binary here, instead of this?

@Vagabond
Copy link
Contributor

Can you squash and rebase this off of develop, please?

@Vagabond
Copy link
Contributor

+1 to merge.

macintux added a commit that referenced this pull request Feb 20, 2014
Treat users and groups as distinct concepts
@macintux macintux merged commit 9f3248f into develop Feb 20, 2014
@macintux macintux deleted the jrd-security-grant-namespace branch February 20, 2014 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants