[05:25:32] <sector_0> keeping in mind that the data in that particular collection isn't sensitive
[05:26:00] <sector_0> It's public data, but I just want users to be able to filter results
[08:18:03] <iocube> Hi. pymongo question, how can I tell mongo to authenticate on database different from 'admin'?
[08:19:12] <iocube> for example, I created user (db.createUser()) on 'test' database, and I want to authenticate against 'test' database
[08:20:43] <iocube> test.authenticate('testuser', 'testpwd') gives me an error: SCRAM-SHA-1 authentication failed for testuser on admin from client 127.0.0.1 ; UserNotFound: Could not find user testuser@admin
[08:31:18] <iocube> OK. this works. client = pymongo.MongoClient('mongodb://<user>:<password>@<address>:<ip>/<database_name>')
[12:15:30] <bratner> Is there a way to extend the c++ stream builder interface with custom types ? ex: mydocument << "key" << value_of_custom_type;
[13:17:33] <someone235> Hi, I try to install mongo by following this instructions: https://docs.mongodb.com/ecosystem/platforms/amazon-ec2/ . but I get "No package mongodb-org-server available". Someone knows why and how to fix this?
[13:24:21] <bratner> someone235, run 'cat /etc/yum/repos.d/mongodb.repo' see if you have it correct.
[13:26:07] <bratner> is there a "built-in" way to make mongo refuse to insert a document with specific key:value pair?
[13:31:58] <someone235> bratner, it seems that there were a typo in docs
[13:33:06] <someone235> bratner, now it says: The file /dev/xvdf does not exist and no size was specified.
[16:15:13] <SubMind> hey how to import mongodb in angular2 ?
[19:45:17] <sector_0> what's the best way to let a user define filters for a search
[19:45:52] <sector_0> currently I'm testing my server with the user inputting raw JSON, which is then used in the find() function
[19:46:40] <sector_0> the data isn't too sensitive so I currently can't think of any security risk of doing this, but at the same time I'm not that sensible when it comes to mongodb
[19:54:33] <sector_0> if you just do something like: find({field: JSON.parse(userData)})
[19:54:58] <sector_0> then the user is free to inject anything basically
[19:54:58] <bratner> sector_0, slide 7 has some regexes http://www.slideshare.net/null0x00/json-injection
[19:57:28] <bratner> sector_0, in any case this is a best-effort defense. Monitor the queries and flag suspicious users and lock them out automatically so they will have to explain themselves.
[19:59:56] <bratner> do people who use the c++ driver visit this channel?
[21:11:51] <bratner> In c++ API can one create a bson array directly from std::vector<> or a basic C++ array?