diff doc/xmlrpc.txt @ 5879:94a7669677ae

add permissions to control user of rest and xmlrpc API interfaces. issue2551058: Add new permissions: 'Rest Access' and 'Xmlrpc Access' to allow per-user access control to rest and xmlrpc interfaces using roles. Updated all schemas to add these new perms to all authenticated roles. Error conditions in handle_xmlrpc were not working right in manual testing. I tried to make it a little better, but I don't actually understand how the fault xmlrpc object is supposed to be used. So I may have messed something up. I'll try to ping the people who wrote the xmlrpc code to have them review.
author John Rouillard <rouilj@ieee.org>
date Fri, 27 Sep 2019 23:29:59 -0400
parents d0689aaa83db
children e2b70d43d0fc
line wrap: on
line diff
--- a/doc/xmlrpc.txt	Fri Sep 27 20:38:31 2019 -0400
+++ b/doc/xmlrpc.txt	Fri Sep 27 23:29:59 2019 -0400
@@ -23,12 +23,33 @@
 -----------------------
 There are two ways to run the XML-RPC interface:
 
+  through roundup itself
+
   stand alone roundup-xmlrpc-server
 
-  through roundup itself
+
+through roundup
+---------------
+The XML-RPC service is available from the roundup HTTP server under
+/xmlrpc.
+
+To enable this set ``enable_xmlrpc`` to ``yes`` in the ``[web]``
+section of the ``config.ini`` file in your tracker.
+
+Each user that needs access must include the "Xmlrpc Access" role. To
+add this new permission to the "User" role you should change your
+schema.py to add::
+
+    db.security.addPermissionToRole('User', 'Xmlrpc Access')
+
+This is usually included near where other permissions like "Web Access"
+or "Email Access" are assigned.
 
 stand alone roundup-xmlrpc-server
 ---------------------------------
+Using roundup to access the xmlrpc interface is preferred. Roundup
+provides better control over who can use the interface.
+
 The Roundup XML-RPC standalone server must be started before remote clients can access the
 tracker via XML-RPC. ``roundup-xmlrpc-server`` is installed in the scripts
 directory alongside ``roundup-server`` and roundup-admin``. When invoked, the
@@ -39,11 +60,6 @@
 The default port is ``8000``. An alternative port can be specified with the
 ``--port`` switch.
 
-through roundup
----------------
-In addition to running a stand alone server described above, the
-XML-RPC service is available from the roundup HTTP server.
-
 security consideration
 ----------------------
 Note that the current ``roundup-xmlrpc-server`` implementation does not

Roundup Issue Tracker: http://roundup-tracker.org/