You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by mikewallace1979 <gi...@git.apache.org> on 2014/12/04 13:01:56 UTC

[GitHub] couchdb pull request: Test users db security rules on clustered in...

GitHub user mikewallace1979 opened a pull request:

    https://github.com/apache/couchdb/pull/288

    Test users db security rules on clustered interface

    Explicitly test authentication_db security rules when authentication_db is on the clustered interface (5984).
    
    COUCHDB-2452

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/couchdb 2452-users-db-security-on-clustered-interface

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/couchdb/pull/288.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #288
    
----
commit 49f03e2be48dac56c27b220b11cd70676df50f99
Author: Mike Wallace <mi...@apache.org>
Date:   2014-11-26T23:17:04Z

    Teach dev/run to clear nodes DB
    
    This commit makes dev/run replace the nodes DB with an empty DB
    before adding the nodes doc. This changes the previous behaviour
    which was to just try adding the docs and ignore conflicts.
    
    The change makes it possible for a developer to run `dev/run -n 1`
    (to spawn a single node cluster) having previously run `dev/run`
    (which spawns a three node cluster). Without replacing the nodes
    DB the `dev/run -n 1` single-node cluster would still have two
    other nodes in the nodes DB and therefore not work correctly.
    
    Note that we explicitly delete each node doc rather than deleting
    the whole database because the cluster membership layer gets upset
    when the nodes database itself is deleted/recreated.

commit 23d79b3f606245ab657900fe7b1bc6ef77ace16e
Author: Mike Wallace <mi...@apache.org>
Date:   2014-11-27T15:13:44Z

    Test _users security on the cluster and admin port
    
    This commit modifies the _users DB security test so that it tests
    the authentication DB against the clustered interface in addition
    to the admin interface.
    
    Previously this test was only being run against the admin port.
    
    COUCHDB-2452

commit ed4a4a9e2bfbc906bc2339007fe7ef13137eba88
Author: Mike Wallace <mi...@apache.org>
Date:   2014-12-01T13:22:46Z

    Make users_db_security.js use N=1 clusters only
    
    The users_db_security.js test will not work against a multi-node
    cluster because it relies on config settings being made by the
    test code. Because there is no generic way of discovering the
    locations of the other nodes on a dev cluster (they may be on
    unexpected ports for one reason or another) it is only possible
    to guarantee those settings are made on a single node.
    
    This commit therefore forces the users_db_security.js test to run
    against a single node cluster by:
    
     - setting the cluster variables to N=Q=R=W=1
     - excluding the test in the Makefile and running it explicitly
       with `dev/run -n 1`
     - teaching run_on_modified_server to correctly preserve the old
       config settings when nested run_on_modified_server calls are
       made
    
    COUCHDB-2452

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb pull request: Test users db security rules on clustered in...

Posted by davisp <gi...@git.apache.org>.
Github user davisp commented on the pull request:

    https://github.com/apache/couchdb/pull/288#issuecomment-85247064
  
    LGTM


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb pull request: Test users db security rules on clustered in...

Posted by kxepal <gi...@git.apache.org>.
Github user kxepal commented on the pull request:

    https://github.com/apache/couchdb/pull/288#issuecomment-151455438
  
    @mikewallace1979 yea, sorry for that /: 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb pull request: Test users db security rules on clustered in...

Posted by mikewallace1979 <gi...@git.apache.org>.
Github user mikewallace1979 commented on the pull request:

    https://github.com/apache/couchdb/pull/288#issuecomment-151454990
  
    Oof this was a truly unpleasant piece of work :)
    
    I'll give it a shot and see what fun issues I run into.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb pull request: Test users db security rules on clustered in...

Posted by kxepal <gi...@git.apache.org>.
Github user kxepal commented on the pull request:

    https://github.com/apache/couchdb/pull/288#issuecomment-151257104
  
    Hey @sagelywizard ! Sorry for long time waiting. Could you rebase your PR (and related as well) here, please?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb pull request: Test users db security rules on clustered in...

Posted by kxepal <gi...@git.apache.org>.
Github user kxepal commented on the pull request:

    https://github.com/apache/couchdb/pull/288#issuecomment-86245201
  
    Related:
    https://github.com/apache/couchdb-chttpd/pull/12
    https://github.com/apache/couchdb-couch/pull/20
    https://github.com/apache/couchdb-couch-mrview/pull/11


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] couchdb pull request #288: Test users db security rules on clustered interfa...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/couchdb/pull/288


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---