Thanks for your feedback. I'll probably use protected collections.

2015-04-16 11:55 GMT+02:00 Geert Josten <[email protected]>:

>  RFE #3239, I have added your case to it..
>
>   From: Geert Josten <[email protected]>
> Reply-To: MarkLogic Developer Discussion <[email protected]>
> Date: Thursday, April 16, 2015 at 10:48 AM
> To: MarkLogic Developer Discussion <[email protected]>
> Subject: Re: [MarkLogic Dev General] rest-writer and URI privileges
>
>   Hi Andreas,
>
>  I think I raised either a bug or an RFE for that. It is almost
> positively due to amping of internal functions within the REST-api, which
> effectively assigns both any-uri, and any-collection..
>
>  Best option you have at this moment is to use protected collections.
> Haven’t looked at that closely though..
>
>  Cheers,
> Geert
>
>   From: Andreas Hubmer <[email protected]>
> Reply-To: MarkLogic Developer Discussion <[email protected]>
> Date: Thursday, April 16, 2015 at 10:15 AM
> To: MarkLogic Developer Discussion <[email protected]>
> Subject: [MarkLogic Dev General] rest-writer and URI privileges
>
>   Hi,
>
>  I would like to restrict the URIs for which a user can create documents
> via REST.
>
>  My setup so far is:
> * a user 'app-user' which is assigned the role 'app-role' (nothing else)
> * no other role is assigned to the 'app-role'
> * the 'app-role' has execute privileges for rest-reader, rest-writer
> and xdbc:invoke (for non-rest calls)
> * the 'app-role' has default permissions for update and read
>
>  It surprises me that the user is able to create arbitrary documents via
> REST. I would expect that URI privileges or the unprotected-uri/any-uri
> execute privilege are necessary.
>
>  Is there anything I am missing?
> How can I restrict the URIs for which the REST user can create documents?
>
>  Regards,
> Andreas
>
>
>  --
>   Andreas Hubmer
>  IT Consultant
>
>  EBCONT enterprise technologies GmbH
>
>  OUR TEAM IS YOUR SUCCESS
>
>  UID-Nr. ATU68135644
> HG St.Pölten - FN 399978 d
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to