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

Add security to Riak #662

Merged
merged 12 commits into from
Sep 20, 2013
Merged

Add security to Riak #662

merged 12 commits into from
Sep 20, 2013

Conversation

Vagabond
Copy link
Contributor

This PR uses the new security APIs in riak_core to do permissions checking on various riak API endpoints.

It currently does not secure ALL of the APIs, specifically stats, link walking and the 'CS bucket' APIs are not covered.

See also basho/riak#355

@ghost ghost assigned engelsanchez Sep 19, 2013
get_required_permissions(Inputs, _Query) ->
InputPermissions = case Inputs of
Bucket when is_binary(Bucket) ->
[{"riak_kv.list_keys", {<<"default">>, Bucket}},
Copy link
Contributor

Choose a reason for hiding this comment

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

The sad thing about having all these default bucket name literals spread out through the code is that search and replace to change them into a macro will only miss the ones with typos, the only ones we need to fix :(

@jaredmorrow
Copy link

From a usage standpoint and the understanding there is a lot of testing that's going to happen off of pre2, I'm +1 for this to go in.

@coderoshi
Copy link
Contributor

+1 here too. mapreduce is clear, and boilerplate code looks fine.

Vagabond added a commit that referenced this pull request Sep 20, 2013
@Vagabond Vagabond merged commit e8e01df into develop Sep 20, 2013
@Vagabond Vagabond deleted the adt-security branch September 20, 2013 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants