You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite riak.conf having default values, cuttlefish does not set them up unless you actually specify them
In KV 3.0.15, riak-admin no longer exists, only riak admin
Although seemingly obvious, security groups need to be added before you put a user in a group i.e. if you try to assign a user to a non-existent group, it fails silently rather than creating a group with no permissions and adding your user to it.
However, if you add a group to a non-existent group for cascading permissions, you actually get an error message saying the non-existent group you tried to add it to does not exist.
<html><head><title>401 Unauthorized</title></head><body><h1>Unauthorized</h1>Unauthorized<p><hr><address>mochiweb+webmachine web server</address></body></html>[root@localhost ~]#
[root@localhost ~]# curl -u riakuser https://127.0.0.1:8098/types/default/buckets/test/keys/data/
Enter host password for user 'riakuser':
hello
[root@localhost ~]# curl -XDELETE -u riakuser https://127.0.0.1:8098/types/default/buckets/test/keys/data/
Enter host password for user 'riakuser':
Permission denied: User 'riakuser' does not have 'riak_kv.delete' on default/test
Although the docs tell you that you can specify sources with https://www.tiot.jp/riak-docs/riak/kv/3.0.11/using/security/basics/#managing-sources it doesn't tell you that it's required to function. In my case I used riak admin security add-source all 127.0.0.1/32 trust and everything worked fine after that. Previously, it would not give me access with or without a valid user
Although a curl example on how to call riak with security enabled is given in https://www.tiot.jp/riak-docs/riak/kv/3.0.11/using/security/managing-sources/ which is a linked document, there is no example of this in the main document. Examples would be useful here. There are no protocol buffer/riak client examples at all on how to use this.
For reference, I was using Riak KV 3.0.15 on CentOS8 for this test with a bitcask backend
The text was updated successfully, but these errors were encountered:
riak-admin
no longer exists, onlyriak admin
riak admin security add-source all 127.0.0.1/32 trust
and everything worked fine after that. Previously, it would not give me access with or without a valid userThe text was updated successfully, but these errors were encountered: