You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "max ogden (JIRA)" <ji...@apache.org> on 2011/03/10 23:45:59 UTC

[jira] Created: (COUCHDB-1089) Let anonymous users access _active_tasks for view generation estimates

Let anonymous users access _active_tasks for view generation estimates
----------------------------------------------------------------------

                 Key: COUCHDB-1089
                 URL: https://issues.apache.org/jira/browse/COUCHDB-1089
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface, JavaScript View Server
            Reporter: max ogden
            Priority: Minor


Currently you have to be a database administrator to access _active_tasks. For UX purposes I would like to allow anyone to see view generation statuses, preferably on a per database level. This solves the problem of the first user to generate a view that then receives no time estimate as to when their process will be completed. I can't think of an application use case for making replication data public.

I spoke with Volker Mische about the implementation details on this issue and he asserted after a code dive that it appears achievable, though the innards of the view status code were not familiar to him.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (COUCHDB-1089) Let anonymous users access _active_tasks for view generation estimates

Posted by "Caolan McMahon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005552#comment-13005552 ] 

Caolan McMahon commented on COUCHDB-1089:
-----------------------------------------

I've wanted to have access to replication info on a per-database level before. It would be useful for creating a nicer UI for managing replication.

> Let anonymous users access _active_tasks for view generation estimates
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-1089
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1089
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface, JavaScript View Server
>            Reporter: max ogden
>            Priority: Minor
>              Labels: http, view
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Currently you have to be a database administrator to access _active_tasks. For UX purposes I would like to allow anyone to see view generation statuses, preferably on a per database level. This solves the problem of the first user to generate a view that then receives no time estimate as to when their process will be completed. I can't think of an application use case for making replication data public.
> I spoke with Volker Mische about the implementation details on this issue and he asserted after a code dive that it appears achievable, though the innards of the view status code were not familiar to him.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (COUCHDB-1089) Let anonymous users access _active_tasks for view generation estimates

Posted by "kowsik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005988#comment-13005988 ] 

kowsik commented on COUCHDB-1089:
---------------------------------

Bad idea. I've got a bunch of Couch's on EC2 and *do not* want anyone to access anything on these Couch's. I have the require_valid_user set to true with the assumption that everything's locked down. While EC2 security groups help, I'll sleep better knowing that Couch is not going to reveal anything to anyone without the required credentials.

> Let anonymous users access _active_tasks for view generation estimates
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-1089
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1089
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface, JavaScript View Server
>            Reporter: max ogden
>            Priority: Minor
>              Labels: http, view
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Currently you have to be a database administrator to access _active_tasks. For UX purposes I would like to allow anyone to see view generation statuses, preferably on a per database level. This solves the problem of the first user to generate a view that then receives no time estimate as to when their process will be completed. I can't think of an application use case for making replication data public.
> I spoke with Volker Mische about the implementation details on this issue and he asserted after a code dive that it appears achievable, though the innards of the view status code were not familiar to him.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (COUCHDB-1089) Let anonymous users access _active_tasks for view generation estimates

Posted by "Caolan McMahon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006344#comment-13006344 ] 

Caolan McMahon commented on COUCHDB-1089:
-----------------------------------------

Only if you have 'safe rewrites' turned off or you're not behind a vhost. Getting the replication information related to a single database at a URL accessible from the db level (rather than the root level) would still be useful. Also, do all replications create an entry in the _replicator database?

Dale, yes I have no idea if this is a good idea for security or not. Certainly needs thinking about.

> Let anonymous users access _active_tasks for view generation estimates
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-1089
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1089
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface, JavaScript View Server
>            Reporter: max ogden
>            Priority: Minor
>              Labels: http, view
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Currently you have to be a database administrator to access _active_tasks. For UX purposes I would like to allow anyone to see view generation statuses, preferably on a per database level. This solves the problem of the first user to generate a view that then receives no time estimate as to when their process will be completed. I can't think of an application use case for making replication data public.
> I spoke with Volker Mische about the implementation details on this issue and he asserted after a code dive that it appears achievable, though the innards of the view status code were not familiar to him.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (COUCHDB-1089) Let anonymous users access _active_tasks for view generation estimates

Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006055#comment-13006055 ] 

Filipe Manana commented on COUCHDB-1089:
----------------------------------------

I don't think you'll need to expose the filter and parameters for a replication anywhere. That is available in the replication documents that are stored in the replicator database (version 1.1 and onwards), just read the document and you get those fields in it. Also, being like a regular database, you can set its _security object to whatever fits your application.
As for the UI, isn't the standard Futon database page enough? 

> Let anonymous users access _active_tasks for view generation estimates
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-1089
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1089
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface, JavaScript View Server
>            Reporter: max ogden
>            Priority: Minor
>              Labels: http, view
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Currently you have to be a database administrator to access _active_tasks. For UX purposes I would like to allow anyone to see view generation statuses, preferably on a per database level. This solves the problem of the first user to generate a view that then receives no time estimate as to when their process will be completed. I can't think of an application use case for making replication data public.
> I spoke with Volker Mische about the implementation details on this issue and he asserted after a code dive that it appears achievable, though the innards of the view status code were not familiar to him.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (COUCHDB-1089) Let anonymous users access _active_tasks for view generation estimates

Posted by "Filipe Manana (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006172#comment-13006172 ] 

Filipe Manana commented on COUCHDB-1089:
----------------------------------------

Dale, I understand that. What I'm saying is that it seems useless, since with replicator database you can know if the replication is running or not by simply reading the "_replication_state" field of the replication document. Plus, for many other use cases, you can define map/reduce views for other not so trivial things.

> Let anonymous users access _active_tasks for view generation estimates
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-1089
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1089
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface, JavaScript View Server
>            Reporter: max ogden
>            Priority: Minor
>              Labels: http, view
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Currently you have to be a database administrator to access _active_tasks. For UX purposes I would like to allow anyone to see view generation statuses, preferably on a per database level. This solves the problem of the first user to generate a view that then receives no time estimate as to when their process will be completed. I can't think of an application use case for making replication data public.
> I spoke with Volker Mische about the implementation details on this issue and he asserted after a code dive that it appears achievable, though the innards of the view status code were not familiar to him.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (COUCHDB-1089) Let anonymous users access _active_tasks for view generation estimates

Posted by "Dale Harvey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006106#comment-13006106 ] 

Dale Harvey commented on COUCHDB-1089:
--------------------------------------

Caolan, do you mean expose the filter options on the (remote) target db that you are replicating too? I can see where that can be handy but I do think it sounds dangerous.

Kowsik, if require_valid_user does what I think it does then it wont be affected, a private install will stay private.

Filipe, the futon replication page is ok enough as a db admins tool, we are talking about providing a ui to replication for end users of applications built with couch (more specifically in my case, couchapps), right now its impossible for me to have continuous replication for my mobile apps because the user the app runs as is not an admin, I can start continous replication tasks but cant inspect whether they are running or not.

> Let anonymous users access _active_tasks for view generation estimates
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-1089
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1089
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface, JavaScript View Server
>            Reporter: max ogden
>            Priority: Minor
>              Labels: http, view
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Currently you have to be a database administrator to access _active_tasks. For UX purposes I would like to allow anyone to see view generation statuses, preferably on a per database level. This solves the problem of the first user to generate a view that then receives no time estimate as to when their process will be completed. I can't think of an application use case for making replication data public.
> I spoke with Volker Mische about the implementation details on this issue and he asserted after a code dive that it appears achievable, though the innards of the view status code were not familiar to him.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (COUCHDB-1089) Let anonymous users access _active_tasks for view generation estimates

Posted by "Caolan McMahon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006024#comment-13006024 ] 

Caolan McMahon commented on COUCHDB-1089:
-----------------------------------------

@Dale: if you find support for that patch I'd also consider exposing the filter and its parameters if a filter is used for replication. It could open up some really nice UI possiblities. Providing these details could make setting up custom sync with couchapps a user rather than an admin thing.

Also, if we decide to expose _active_tasks on a per-database level it would make sense to expose it at the root level under a vhost (much like /_session).

> Let anonymous users access _active_tasks for view generation estimates
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-1089
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1089
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface, JavaScript View Server
>            Reporter: max ogden
>            Priority: Minor
>              Labels: http, view
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Currently you have to be a database administrator to access _active_tasks. For UX purposes I would like to allow anyone to see view generation statuses, preferably on a per database level. This solves the problem of the first user to generate a view that then receives no time estimate as to when their process will be completed. I can't think of an application use case for making replication data public.
> I spoke with Volker Mische about the implementation details on this issue and he asserted after a code dive that it appears achievable, though the innards of the view status code were not familiar to him.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Commented: (COUCHDB-1089) Let anonymous users access _active_tasks for view generation estimates

Posted by "Dale Harvey (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005985#comment-13005985 ] 

Dale Harvey commented on COUCHDB-1089:
--------------------------------------

I have also really wanted this

I found it extremely strange that instantiating a replication was possible without admin credentials but its never possible to see its status, im happy to provide a patch if the feature is agreeable

> Let anonymous users access _active_tasks for view generation estimates
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-1089
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1089
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface, JavaScript View Server
>            Reporter: max ogden
>            Priority: Minor
>              Labels: http, view
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> Currently you have to be a database administrator to access _active_tasks. For UX purposes I would like to allow anyone to see view generation statuses, preferably on a per database level. This solves the problem of the first user to generate a view that then receives no time estimate as to when their process will be completed. I can't think of an application use case for making replication data public.
> I spoke with Volker Mische about the implementation details on this issue and he asserted after a code dive that it appears achievable, though the innards of the view status code were not familiar to him.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira