Details
-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
None
-
None
-
1
Description
Considering a snippet like this:
from couchbase.cluster import Cluster
|
from couchbase.cluster import PasswordAuthenticator
|
cluster = Cluster('couchbases://10.142.175.101?certpath=/Users/daschl/tmp/ks/chain.pem&keypath=/Users/daschl/tmp/ks/pkey.key')
|
authenticator = PasswordAuthenticator('username', 'password')
|
cluster.authenticate(authenticator)
|
cb = cluster.open_bucket('pixels')
|
cb.upsert('u:king_arthur', {'name': 'Arthur', 'email': 'kingarthur@couchbase.com', 'interests': ['Holy Grail', 'African Swallows']})
|
the code works even if its ambiguous since cert authenticator needs to be used and/or if a password is provided that would conflict with the auth modes used.
Attachments
For Gerrit Dashboard: PYCBC-488 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
95555,23 | PYCBC-487,PYCBC-488: Add CertAuthenticator and validation | master | couchbase-python-client | Status: MERGED | +2 | +1 |
95770,21 | PYCBC-489, PYCBC-488: even more rigorous checking for clashing open_bucket params | master | couchbase-python-client | Status: MERGED | +2 | +1 |
96336,3 | PYCBC-488, PYCBC-489: tidy up | master | couchbase-python-client | Status: ABANDONED | 0 | 0 |