)]}'
{"specs/mitaka/couchdb-database-user-functions.rst":[{"author":{"_account_id":8932,"name":"Telles Mota Vidal Nóbrega","email":"tellesnobrega@gmail.com","username":"tellesnobrega"},"change_message_id":"b6368404918241546dbd88cccb50f1516be7bf5c","unresolved":false,"context_lines":[{"line_number":54,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"Implementation of the basic user and database functions will be performed for"},{"line_number":57,"context_line":"the CouchDB datastore in Trove. These functions are as follows-"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"* create user"},{"line_number":60,"context_line":"* delete user"}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a8ffd7b_3bc7be46","line":57,"updated":"2015-11-26 00:32:58.000000000","message":"as follows:","commit_id":"3cfff097431bb9a10a459cb09c2d4fa926df7e44"},{"author":{"_account_id":8932,"name":"Telles Mota Vidal Nóbrega","email":"tellesnobrega@gmail.com","username":"tellesnobrega"},"change_message_id":"b6368404918241546dbd88cccb50f1516be7bf5c","unresolved":false,"context_lines":[{"line_number":112,"context_line":"-----------"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"The CouchDB guest agent will be modified to support additional functionality."},{"line_number":115,"context_line":"In particular the following files will have added components-"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":".. code-block:: bash"},{"line_number":118,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"9a8ffd7b_fbd7f6ea","line":115,"updated":"2015-11-26 00:32:58.000000000","message":"components:","commit_id":"3cfff097431bb9a10a459cb09c2d4fa926df7e44"},{"author":{"_account_id":4240,"name":"Craig Vyvial","email":"cp16net@gmail.com","username":"cp16net"},"change_message_id":"f7464e5a166d7d77c52fe2c55de7fd7c9e65c94b","unresolved":false,"context_lines":[{"line_number":44,"context_line":""},{"line_number":45,"context_line":"Currently, a CouchDB instance can be created using Trove but the"},{"line_number":46,"context_line":"functionality is very limited. No user or database actions can be performed"},{"line_number":47,"context_line":"via the Trove CLI. While, the user can ssh into the instance or access the"},{"line_number":48,"context_line":"CouchDB Futon [1]_ dashboard to perform these actions, it is not using Trove."},{"line_number":49,"context_line":"For ease of use and consistency, it is best that this feature be implemented"},{"line_number":50,"context_line":"as part of Trove."}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_e7a161aa","line":47,"range":{"start_line":47,"start_character":30,"end_line":47,"end_character":60},"updated":"2015-12-02 22:26:42.000000000","message":"A user should not be able to ssh into an instance.","commit_id":"47caec10674c988db3225ae2deb1fc550a4831ba"},{"author":{"_account_id":4240,"name":"Craig Vyvial","email":"cp16net@gmail.com","username":"cp16net"},"change_message_id":"f7464e5a166d7d77c52fe2c55de7fd7c9e65c94b","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":"* create database"},{"line_number":65,"context_line":"* delete database"},{"line_number":66,"context_line":"* list databases"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"Configuration"},{"line_number":69,"context_line":"-------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"9a8ffd7b_07cd8530","line":66,"updated":"2015-12-02 22:26:42.000000000","message":"can you add some detail like @doug mentioned on how the users are added? what roles they will have? How will the roles be updated?\n\nAlso you should look at adding the other user calls.\n\nuser-grant-access\nuser-revoke-access\nuser-show-access\nuser-update-attributes","commit_id":"47caec10674c988db3225ae2deb1fc550a4831ba"},{"author":{"_account_id":9782,"name":"Morgan Jones","email":"morgan@tesora.com","username":"vgnbkr"},"change_message_id":"4264f91a1aad384ac1cdc4101df2ecbb00a0ce1a","unresolved":false,"context_lines":[{"line_number":82,"context_line":"guest agent\u0027s CouchDB server will be made secure by creating a Trove user"},{"line_number":83,"context_line":"\u0027os_admin\u0027 by default. When a guest is first started, the os_admin user will"},{"line_number":84,"context_line":"be created and will be connected to the server using a password generated by"},{"line_number":85,"context_line":"the guest. This username and generated password will be stored in a file. All"},{"line_number":86,"context_line":"other users that are created are non-admin users so this preventing anybody"},{"line_number":87,"context_line":"from accidentally creating an admin user. The only admin user that can be"},{"line_number":88,"context_line":"created is \u0027admin\u0027 using the trove root enable command by creating a user on"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7a740942_ccd7bd49","line":85,"updated":"2015-12-07 16:16:59.000000000","message":"Please call out where this file will be located.","commit_id":"393ab1cbf865adafcd7d839bdadfb668fdfc5b31"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"77fd0f3d43742587516ae8ba8f7977e791307a5e","unresolved":false,"context_lines":[{"line_number":82,"context_line":"guest agent\u0027s CouchDB server will be made secure by creating a Trove user"},{"line_number":83,"context_line":"\u0027os_admin\u0027 by default. When a guest is first started, the os_admin user will"},{"line_number":84,"context_line":"be created and will be connected to the server using a password generated by"},{"line_number":85,"context_line":"the guest. This username and generated password will be stored in a file. All"},{"line_number":86,"context_line":"other users that are created are non-admin users so this preventing anybody"},{"line_number":87,"context_line":"from accidentally creating an admin user. The only admin user that can be"},{"line_number":88,"context_line":"created is \u0027admin\u0027 using the trove root enable command by creating a user on"}],"source_content_type":"text/x-rst","patch_set":8,"id":"7a740942_458e307a","line":85,"in_reply_to":"7a740942_ccd7bd49","updated":"2015-12-07 21:54:29.000000000","message":"Done","commit_id":"393ab1cbf865adafcd7d839bdadfb668fdfc5b31"},{"author":{"_account_id":9782,"name":"Morgan Jones","email":"morgan@tesora.com","username":"vgnbkr"},"change_message_id":"4264f91a1aad384ac1cdc4101df2ecbb00a0ce1a","unresolved":false,"context_lines":[{"line_number":88,"context_line":"created is \u0027admin\u0027 using the trove root enable command by creating a user on"},{"line_number":89,"context_line":"the couchDB server with admin privileges."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"API Calls"},{"line_number":92,"context_line":"---------"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Several new guest agent functions will be implemented using the CouchDB API."}],"source_content_type":"text/x-rst","patch_set":8,"id":"7a740942_2c98c177","line":91,"updated":"2015-12-07 16:16:59.000000000","message":"I believe the intention is that this section be used to list Trove api calls that you add or modify.  The convention is to list the REST calls with their parameters.  Check other specs for examples.\n\nWhat you list below are the implementations in the guest, and I would expect to see them in the guest-agent section, along with the guest agent methods that they implement.","commit_id":"393ab1cbf865adafcd7d839bdadfb668fdfc5b31"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"77fd0f3d43742587516ae8ba8f7977e791307a5e","unresolved":false,"context_lines":[{"line_number":88,"context_line":"created is \u0027admin\u0027 using the trove root enable command by creating a user on"},{"line_number":89,"context_line":"the couchDB server with admin privileges."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"API Calls"},{"line_number":92,"context_line":"---------"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"Several new guest agent functions will be implemented using the CouchDB API."}],"source_content_type":"text/x-rst","patch_set":8,"id":"7a740942_1da64653","line":91,"in_reply_to":"7a740942_2c98c177","updated":"2015-12-07 21:54:29.000000000","message":"Done","commit_id":"393ab1cbf865adafcd7d839bdadfb668fdfc5b31"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"13ff5224d4325cd44daeeee6239a17c25e2f3b89","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        -H \"Content-Type: application/json\" \\"},{"line_number":167,"context_line":"        -d \u0027{\"name\": \"username\", \"password\": \"password\", \"roles\": [], \"type\":"},{"line_number":168,"context_line":"        \"user\"}\u0027"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"**list_users**"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"List all the users from the system database ``_users``"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7a740942_d400db68","line":169,"updated":"2015-12-10 18:23:43.000000000","message":"Ishita, you need to modify this request to include the admin username and password. You will need the admin credentials since you have secured the CouchDB instance. I believe thats the case for most of the calls in here.","commit_id":"5388b4c7c111679a7d6837de9f6ed5657a650ef7"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"126f775ab37f33f23e6e925535e31e9da821c4cd","unresolved":false,"context_lines":[{"line_number":166,"context_line":"        -H \"Content-Type: application/json\" \\"},{"line_number":167,"context_line":"        -d \u0027{\"name\": \"username\", \"password\": \"password\", \"roles\": [], \"type\":"},{"line_number":168,"context_line":"        \"user\"}\u0027"},{"line_number":169,"context_line":""},{"line_number":170,"context_line":"**list_users**"},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"List all the users from the system database ``_users``"}],"source_content_type":"text/x-rst","patch_set":9,"id":"3a7e1126_a4f8c87d","line":169,"in_reply_to":"7a740942_d400db68","updated":"2015-12-17 05:58:11.000000000","message":"Done","commit_id":"5388b4c7c111679a7d6837de9f6ed5657a650ef7"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"13ff5224d4325cd44daeeee6239a17c25e2f3b89","unresolved":false,"context_lines":[{"line_number":174,"context_line":"    ``curl -s http://localhost:5984/_users/_all_docs``"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The curl command above will be followed by a ``grep`` command to extract the"},{"line_number":177,"context_line":"names of users from the result of the curl request"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"**delete_user**"},{"line_number":180,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"7a740942_9421f3fe","line":177,"updated":"2015-12-10 18:23:43.000000000","message":"You can use a JSON parser to parse through the result of the curl request.","commit_id":"5388b4c7c111679a7d6837de9f6ed5657a650ef7"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"126f775ab37f33f23e6e925535e31e9da821c4cd","unresolved":false,"context_lines":[{"line_number":174,"context_line":"    ``curl -s http://localhost:5984/_users/_all_docs``"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"The curl command above will be followed by a ``grep`` command to extract the"},{"line_number":177,"context_line":"names of users from the result of the curl request"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":"**delete_user**"},{"line_number":180,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"7a740942_06e27c2f","line":177,"in_reply_to":"7a740942_9421f3fe","updated":"2015-12-17 05:58:11.000000000","message":"Done","commit_id":"5388b4c7c111679a7d6837de9f6ed5657a650ef7"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"13ff5224d4325cd44daeeee6239a17c25e2f3b89","unresolved":false,"context_lines":[{"line_number":190,"context_line":""},{"line_number":191,"context_line":"**enable_root**"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"Create user \"root\" and grant the role \"admin\""},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    .. code-block:: bash"},{"line_number":196,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"7a740942_2af1b6cd","line":193,"updated":"2015-12-10 18:23:43.000000000","message":"I think somewhere above you mentioned that enable_root would create a user called \u0027admin\u0027","commit_id":"5388b4c7c111679a7d6837de9f6ed5657a650ef7"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"126f775ab37f33f23e6e925535e31e9da821c4cd","unresolved":false,"context_lines":[{"line_number":190,"context_line":""},{"line_number":191,"context_line":"**enable_root**"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"Create user \"root\" and grant the role \"admin\""},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"    .. code-block:: bash"},{"line_number":196,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"7a740942_8a83d855","line":193,"in_reply_to":"7a740942_2af1b6cd","updated":"2015-12-17 05:58:11.000000000","message":"Good catch, I fixed it above. It\u0027s supposed to be \u0027root\u0027 in accordance to trove root-enable.","commit_id":"5388b4c7c111679a7d6837de9f6ed5657a650ef7"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"13ff5224d4325cd44daeeee6239a17c25e2f3b89","unresolved":false,"context_lines":[{"line_number":294,"context_line":"CouchDB. Involves working on the manager, service and system files"},{"line_number":295,"context_line":"primarily. Tests will be written as required - both unit tests and int tests."},{"line_number":296,"context_line":"The work will be split into 3 parts-"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"1) Enable authentication on server"},{"line_number":299,"context_line":"2) Create/delete/get/list user and change password"},{"line_number":300,"context_line":"3) Enable/check root"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7a740942_0a7cfae9","line":297,"updated":"2015-12-10 18:23:43.000000000","message":"I see five parts below instead.","commit_id":"5388b4c7c111679a7d6837de9f6ed5657a650ef7"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"126f775ab37f33f23e6e925535e31e9da821c4cd","unresolved":false,"context_lines":[{"line_number":294,"context_line":"CouchDB. Involves working on the manager, service and system files"},{"line_number":295,"context_line":"primarily. Tests will be written as required - both unit tests and int tests."},{"line_number":296,"context_line":"The work will be split into 3 parts-"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"1) Enable authentication on server"},{"line_number":299,"context_line":"2) Create/delete/get/list user and change password"},{"line_number":300,"context_line":"3) Enable/check root"}],"source_content_type":"text/x-rst","patch_set":9,"id":"7a740942_4a0c10ec","line":297,"in_reply_to":"7a740942_0a7cfae9","updated":"2015-12-17 05:58:11.000000000","message":"Done","commit_id":"5388b4c7c111679a7d6837de9f6ed5657a650ef7"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"b4281637426a3089f8a3b5fe68aad5c4f47c78c1","unresolved":false,"context_lines":[{"line_number":185,"context_line":"Deletes user ``username`` from the system database ``_users``"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    ``curl -X DELETE http://os_admin:password@localhost:5984/_users/org.couchdb.user:username``"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"**get_user**"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"Shows the complete information associated with a specific user"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da6ed579_f203fe0b","line":188,"updated":"2016-01-12 08:59:47.000000000","message":"I tried this command and it gave me a document update conflict error","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"6caf2f137abb9c4854b3846a4f65e5a4621ad7eb","unresolved":false,"context_lines":[{"line_number":185,"context_line":"Deletes user ``username`` from the system database ``_users``"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    ``curl -X DELETE http://os_admin:password@localhost:5984/_users/org.couchdb.user:username``"},{"line_number":188,"context_line":""},{"line_number":189,"context_line":"**get_user**"},{"line_number":190,"context_line":""},{"line_number":191,"context_line":"Shows the complete information associated with a specific user"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ba63e191_1f644247","line":188,"in_reply_to":"da6ed579_f203fe0b","updated":"2016-01-20 01:08:39.000000000","message":"Still working on figuring it out","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"b4281637426a3089f8a3b5fe68aad5c4f47c78c1","unresolved":false,"context_lines":[{"line_number":191,"context_line":"Shows the complete information associated with a specific user"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    ``curl -X GET http://os_admin:password@localhost:5984/_session``"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"**enable_root**"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Create user \"root\" and grant the role \"admin\""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da6ed579_69c72546","line":194,"updated":"2016-01-12 08:59:47.000000000","message":"Ishita, can you check this command once again. I tested this out and it looks like it will return the context of the os_admin user. If you want to get information about a user, you need to specify the credentials of that user. Also what all information can we expect to get from the get_user command.","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"6caf2f137abb9c4854b3846a4f65e5a4621ad7eb","unresolved":false,"context_lines":[{"line_number":191,"context_line":"Shows the complete information associated with a specific user"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    ``curl -X GET http://os_admin:password@localhost:5984/_session``"},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"**enable_root**"},{"line_number":196,"context_line":""},{"line_number":197,"context_line":"Create user \"root\" and grant the role \"admin\""}],"source_content_type":"text/x-rst","patch_set":10,"id":"ba63e191_163512d9","line":194,"in_reply_to":"da6ed579_69c72546","updated":"2016-01-20 01:08:39.000000000","message":"Done","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"b4281637426a3089f8a3b5fe68aad5c4f47c78c1","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        -H \"Content-Type: application/json\" \\"},{"line_number":204,"context_line":"        -d \u0027{\"name\": \"root\", \"password\": \"password\", \"roles\": [], \"type\":"},{"line_number":205,"context_line":"        \"admin\"}\u0027"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"**is_root_enabled**"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"Checks if user root exists in the system database ``_users`` and has admin"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da6ed579_6c3c1330","line":206,"updated":"2016-01-12 08:59:47.000000000","message":"Ishita when creating users using the command above, the type should always be user and not admin. Also why not just create an admin user using the following command:\n\ncurl -X PUT http://localhost:5984/_config/admins/root -d \"password\"","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"6caf2f137abb9c4854b3846a4f65e5a4621ad7eb","unresolved":false,"context_lines":[{"line_number":203,"context_line":"        -H \"Content-Type: application/json\" \\"},{"line_number":204,"context_line":"        -d \u0027{\"name\": \"root\", \"password\": \"password\", \"roles\": [], \"type\":"},{"line_number":205,"context_line":"        \"admin\"}\u0027"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"**is_root_enabled**"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"Checks if user root exists in the system database ``_users`` and has admin"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ba63e191_aecbd171","line":206,"in_reply_to":"da6ed579_6c3c1330","updated":"2016-01-20 01:08:39.000000000","message":"Done","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"b4281637426a3089f8a3b5fe68aad5c4f47c78c1","unresolved":false,"context_lines":[{"line_number":210,"context_line":"privileges"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    ``curl -s http://os_admin:password@localhost:5984/_users/_all_docs``"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"**grant_access**"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"Modify the role of user ``username`` for database ``databasename`` to include"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da6ed579_af48bd88","line":213,"updated":"2016-01-12 08:59:47.000000000","message":"This command only lists the regular user and not admin users","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"6caf2f137abb9c4854b3846a4f65e5a4621ad7eb","unresolved":false,"context_lines":[{"line_number":210,"context_line":"privileges"},{"line_number":211,"context_line":""},{"line_number":212,"context_line":"    ``curl -s http://os_admin:password@localhost:5984/_users/_all_docs``"},{"line_number":213,"context_line":""},{"line_number":214,"context_line":"**grant_access**"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"Modify the role of user ``username`` for database ``databasename`` to include"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ba63e191_eeaf8992","line":213,"in_reply_to":"da6ed579_af48bd88","updated":"2016-01-20 01:08:39.000000000","message":"Done","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"b4281637426a3089f8a3b5fe68aad5c4f47c78c1","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        \u003e -H \"Content-Type: application/json\" \\"},{"line_number":224,"context_line":"        \u003e -d \"{\"admins\": {\"names\": [\"admin\",\"username\"], \"roles\": []},"},{"line_number":225,"context_line":"        \"members\": {\"names\": [\"member\"], \"roles\": []}}\""},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"**revoke_access**"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"Similar to the implementation of grant access, modify the role of user `"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da6ed579_408d4230","line":226,"updated":"2016-01-12 08:59:47.000000000","message":"In the above example, os_admin is the server admin. I am assuming the \u0027-u admin:password\u0027 option was also meant to specify the server admin credentials. You can use either one of these methods to specify the admin credentials. Also I dont think you need the \u0027member\u0027 user as listed in the \u0027members\u0027.","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"6caf2f137abb9c4854b3846a4f65e5a4621ad7eb","unresolved":false,"context_lines":[{"line_number":223,"context_line":"        \u003e -H \"Content-Type: application/json\" \\"},{"line_number":224,"context_line":"        \u003e -d \"{\"admins\": {\"names\": [\"admin\",\"username\"], \"roles\": []},"},{"line_number":225,"context_line":"        \"members\": {\"names\": [\"member\"], \"roles\": []}}\""},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"**revoke_access**"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"Similar to the implementation of grant access, modify the role of user `"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ba63e191_df01ca6b","line":226,"in_reply_to":"da6ed579_408d4230","updated":"2016-01-20 01:08:39.000000000","message":"Done","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"b4281637426a3089f8a3b5fe68aad5c4f47c78c1","unresolved":false,"context_lines":[{"line_number":237,"context_line":"        \u003e -H \"Content-Type: application/json\" \\"},{"line_number":238,"context_line":"        \u003e -d \"{\"admins\": {\"names\": [\"admin\"], \"roles\": []}, \"members\":"},{"line_number":239,"context_line":"        {\"names\": [\"member\"], \"roles\": []}}\""},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"**list_access**"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"Obtained from the information associated with specific users"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da6ed579_80aa5a6f","line":240,"updated":"2016-01-12 08:59:47.000000000","message":"same 2 concerns as above: \n - regarding server admin credentials\n - user \u0027member\u0027","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"6caf2f137abb9c4854b3846a4f65e5a4621ad7eb","unresolved":false,"context_lines":[{"line_number":237,"context_line":"        \u003e -H \"Content-Type: application/json\" \\"},{"line_number":238,"context_line":"        \u003e -d \"{\"admins\": {\"names\": [\"admin\"], \"roles\": []}, \"members\":"},{"line_number":239,"context_line":"        {\"names\": [\"member\"], \"roles\": []}}\""},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"**list_access**"},{"line_number":242,"context_line":""},{"line_number":243,"context_line":"Obtained from the information associated with specific users"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ba63e191_9ff4b287","line":240,"in_reply_to":"da6ed579_80aa5a6f","updated":"2016-01-20 01:08:39.000000000","message":"Done","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"b4281637426a3089f8a3b5fe68aad5c4f47c78c1","unresolved":false,"context_lines":[{"line_number":243,"context_line":"Obtained from the information associated with specific users"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    ``curl -X GET http://os_admin:password@localhost:5984/_session``"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"**create_database**"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"Creates a database with name ``database_name``"}],"source_content_type":"text/x-rst","patch_set":10,"id":"da6ed579_8b683bbc","line":246,"updated":"2016-01-12 08:59:47.000000000","message":"Same concern as mentioned in get_user. Moreover I believe this will get us only the the roles of the user and not the databases that the user has access to.","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"6caf2f137abb9c4854b3846a4f65e5a4621ad7eb","unresolved":false,"context_lines":[{"line_number":243,"context_line":"Obtained from the information associated with specific users"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    ``curl -X GET http://os_admin:password@localhost:5984/_session``"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"**create_database**"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"Creates a database with name ``database_name``"}],"source_content_type":"text/x-rst","patch_set":10,"id":"ba63e191_966ee2c7","line":246,"in_reply_to":"da6ed579_8b683bbc","updated":"2016-01-20 01:08:39.000000000","message":"Done","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"b4281637426a3089f8a3b5fe68aad5c4f47c78c1","unresolved":false,"context_lines":[{"line_number":302,"context_line":"1) Enable authentication on server"},{"line_number":303,"context_line":"2) Create/delete/get/list user"},{"line_number":304,"context_line":"3) Enable/check root"},{"line_number":305,"context_line":"4) grant/revoke/show/update access"},{"line_number":306,"context_line":"5) create/delete/list database"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"da6ed579_4b900396","line":305,"range":{"start_line":305,"start_character":28,"end_line":305,"end_character":34},"updated":"2016-01-12 08:59:47.000000000","message":"There is no method to update access","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"6caf2f137abb9c4854b3846a4f65e5a4621ad7eb","unresolved":false,"context_lines":[{"line_number":302,"context_line":"1) Enable authentication on server"},{"line_number":303,"context_line":"2) Create/delete/get/list user"},{"line_number":304,"context_line":"3) Enable/check root"},{"line_number":305,"context_line":"4) grant/revoke/show/update access"},{"line_number":306,"context_line":"5) create/delete/list database"},{"line_number":307,"context_line":""},{"line_number":308,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"ba63e191_e980e348","line":305,"range":{"start_line":305,"start_character":28,"end_line":305,"end_character":34},"in_reply_to":"da6ed579_4b900396","updated":"2016-01-20 01:08:39.000000000","message":"Done","commit_id":"639ef1fccf8fa7b72f04af070fea9cdcd5b537ea"},{"author":{"_account_id":14576,"name":"Petr Malik","email":"pmalik@tesora.com","username":"pmalik"},"change_message_id":"f5dae750d7374bd151029d84e502f260bf31b149","unresolved":false,"context_lines":[{"line_number":90,"context_line":"the guest. This will be done using the following command-"},{"line_number":91,"context_line":"``curl -X PUT http://localhost:5984/_config/admins/os_admin -d \u0027\"password\"\u0027``"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"The username and generated password will be stored in a JSON file on the"},{"line_number":94,"context_line":"instance. All other users that are created are non-admin users so this"},{"line_number":95,"context_line":"preventing anybody from accidentally creating an admin user [3]_ . The only"},{"line_number":96,"context_line":"admin user that can be created is \u0027root\u0027 using the trove root-enable command"},{"line_number":97,"context_line":"by creating a user on the couchDB server with admin privileges."}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a68dd71_4cbb2a76","line":94,"range":{"start_line":93,"start_character":44,"end_line":94,"end_character":8},"updated":"2016-01-26 18:52:05.000000000","message":"So where will this file be located? In the home ~ dir or /etc? Just wondering, is the JSON format required (you can use the stream_codecs.JsonCodec to handle it) or could it be INI as well?","commit_id":"d52b7e61c944d1ce459946a0c8b32f2d2bc04457"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"73b426854f38c0ecd9f1d972b4bfebfe02c54245","unresolved":false,"context_lines":[{"line_number":90,"context_line":"the guest. This will be done using the following command-"},{"line_number":91,"context_line":"``curl -X PUT http://localhost:5984/_config/admins/os_admin -d \u0027\"password\"\u0027``"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"The username and generated password will be stored in a JSON file on the"},{"line_number":94,"context_line":"instance. All other users that are created are non-admin users so this"},{"line_number":95,"context_line":"preventing anybody from accidentally creating an admin user [3]_ . The only"},{"line_number":96,"context_line":"admin user that can be created is \u0027root\u0027 using the trove root-enable command"},{"line_number":97,"context_line":"by creating a user on the couchDB server with admin privileges."}],"source_content_type":"text/x-rst","patch_set":15,"id":"9a68dd71_740d8336","line":94,"range":{"start_line":93,"start_character":44,"end_line":94,"end_character":8},"in_reply_to":"9a68dd71_4cbb2a76","updated":"2016-01-27 03:39:45.000000000","message":"It\u0027ll be stored in the home directory and there\u0027s no specific requirements. I was going to do something similar to how mongo handles it.","commit_id":"d52b7e61c944d1ce459946a0c8b32f2d2bc04457"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"d1abd741fd479fdb832444d4171ee12304f69f9a","unresolved":false,"context_lines":[{"line_number":83,"context_line":"----------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"On a fresh CouchDB instance, the server allows any request to be made my"},{"line_number":86,"context_line":"anyone - it\u0027s an Admin Party [2]_ . To enable the user functionalities, the"},{"line_number":87,"context_line":"guest agent\u0027s CouchDB server will be made secure by creating a Trove user"},{"line_number":88,"context_line":"\u0027os_admin\u0027 by default. When a guest is first started, the os_admin user will"},{"line_number":89,"context_line":"be created and will be connected to the server using a password generated by"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3a57f1b5_f65885fc","line":86,"updated":"2016-02-10 20:42:32.000000000","message":"so, you are saying that part of this change is to kill the party? is that a good thing :)","commit_id":"afd089adb60d182959922e720c1c1a7049fd059f"},{"author":{"_account_id":5293,"name":"Nikhil","email":"SlickNik@gmail.com","username":"slicknik"},"change_message_id":"7d69d5c73d8156781b3ccc14da797b2efc4364b6","unresolved":false,"context_lines":[{"line_number":223,"context_line":"privileges"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    ``curl -s http://os_admin:password@localhost:5984/_config/_admins``"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"**grant_access**"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"Modify the role of user ``username`` for database ``databasename`` to include"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3a57f1b5_d6fea937","line":226,"updated":"2016-02-10 20:45:00.000000000","message":"We recently added support for a disable_root API, so you might want to look at calling this out.","commit_id":"afd089adb60d182959922e720c1c1a7049fd059f"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"25fcb43dbd01e03ef17cb59019faa34d3c981aaf","unresolved":false,"context_lines":[{"line_number":223,"context_line":"privileges"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    ``curl -s http://os_admin:password@localhost:5984/_config/_admins``"},{"line_number":226,"context_line":""},{"line_number":227,"context_line":"**grant_access**"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"Modify the role of user ``username`` for database ``databasename`` to include"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3a57f1b5_277269ae","line":226,"in_reply_to":"3a57f1b5_d6fea937","updated":"2016-02-10 21:30:34.000000000","message":"Done","commit_id":"afd089adb60d182959922e720c1c1a7049fd059f"},{"author":{"_account_id":9664,"name":"amrith","email":"amrith.kumar@gmail.com","username":"amrith"},"change_message_id":"d1abd741fd479fdb832444d4171ee12304f69f9a","unresolved":false,"context_lines":[{"line_number":231,"context_line":""},{"line_number":232,"context_line":"    .. code-block:: bash"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"        curl -X PUT http://os_admin:password@localhost:5984"},{"line_number":235,"context_line":"        /databasename/_security \\"},{"line_number":236,"context_line":"        \u003e -d \u0027{\"admins\":{\"names\":[], \"roles\":[]}, \"members\":{\"names”:["},{"line_number":237,"context_line":"        “username”],”roles\":[]}}\u0027"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3a57f1b5_b640cda6","line":234,"updated":"2016-02-10 20:42:32.000000000","message":"you may want to check universally whether you are going to use http:// or https://","commit_id":"afd089adb60d182959922e720c1c1a7049fd059f"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"25fcb43dbd01e03ef17cb59019faa34d3c981aaf","unresolved":false,"context_lines":[{"line_number":231,"context_line":""},{"line_number":232,"context_line":"    .. code-block:: bash"},{"line_number":233,"context_line":""},{"line_number":234,"context_line":"        curl -X PUT http://os_admin:password@localhost:5984"},{"line_number":235,"context_line":"        /databasename/_security \\"},{"line_number":236,"context_line":"        \u003e -d \u0027{\"admins\":{\"names\":[], \"roles\":[]}, \"members\":{\"names”:["},{"line_number":237,"context_line":"        “username”],”roles\":[]}}\u0027"}],"source_content_type":"text/x-rst","patch_set":16,"id":"3a57f1b5_e76451e6","line":234,"in_reply_to":"3a57f1b5_b640cda6","updated":"2016-02-10 21:30:34.000000000","message":"Done","commit_id":"afd089adb60d182959922e720c1c1a7049fd059f"},{"author":{"_account_id":8932,"name":"Telles Mota Vidal Nóbrega","email":"tellesnobrega@gmail.com","username":"tellesnobrega"},"change_message_id":"7088a05014e6154067fd5ee0403f454d2b2edef1","unresolved":false,"context_lines":[{"line_number":82,"context_line":"CouchDB Security"},{"line_number":83,"context_line":"----------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"On a fresh CouchDB instance, the server allows any request to be made my"},{"line_number":86,"context_line":"anyone - it\u0027s an Admin Party [2]_ . To enable the user functionalities, the"},{"line_number":87,"context_line":"guest agent\u0027s CouchDB server will be made secure by creating a Trove user"},{"line_number":88,"context_line":"\u0027os_admin\u0027 by default. When a guest is first started, the os_admin user will"}],"source_content_type":"text/x-rst","patch_set":18,"id":"dae33548_5f21d9fa","line":85,"range":{"start_line":85,"start_character":70,"end_line":85,"end_character":72},"updated":"2016-02-15 18:08:32.000000000","message":"by","commit_id":"cec13edc636578e1e1903fc9d34ffbfd6860a2f6"},{"author":{"_account_id":17360,"name":"Ishita Mandhan","email":"imandha@us.ibm.com","username":"imandhan"},"change_message_id":"f05bcee909ee2a583e795b4e739cc44f6e069d2e","unresolved":false,"context_lines":[{"line_number":82,"context_line":"CouchDB Security"},{"line_number":83,"context_line":"----------------"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"On a fresh CouchDB instance, the server allows any request to be made my"},{"line_number":86,"context_line":"anyone - it\u0027s an Admin Party [2]_ . To enable the user functionalities, the"},{"line_number":87,"context_line":"guest agent\u0027s CouchDB server will be made secure by creating a Trove user"},{"line_number":88,"context_line":"\u0027os_admin\u0027 by default. When a guest is first started, the os_admin user will"}],"source_content_type":"text/x-rst","patch_set":18,"id":"dae33548_94ffc300","line":85,"range":{"start_line":85,"start_character":70,"end_line":85,"end_character":72},"in_reply_to":"dae33548_5f21d9fa","updated":"2016-02-15 19:43:04.000000000","message":"Done","commit_id":"cec13edc636578e1e1903fc9d34ffbfd6860a2f6"},{"author":{"_account_id":10295,"name":"mariam john","email":"mariamj@us.ibm.com","username":"mariamj"},"change_message_id":"5b10804d9b0d291b8047c33a3a1c4ebedcb61d36","unresolved":false,"context_lines":[{"line_number":206,"context_line":""},{"line_number":207,"context_line":"    ``curl -X http://os_admin:password@localhost:5984/_all_dbs``"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":"    ``curl -X http://os_admin:password@localhost:5984/databasename/_security``"},{"line_number":210,"context_line":""},{"line_number":211,"context_line":"**enable_root**"},{"line_number":212,"context_line":""}],"source_content_type":"text/x-rst","patch_set":19,"id":"dae33548_16672526","line":209,"updated":"2016-02-16 19:07:49.000000000","message":"Both the above commands gave me a curl error. Running the same commands with curl -s instead worked.","commit_id":"5692576dd9ce752d55e56e9bbd243352e052dcab"}]}
