Skip to content

Commit

Permalink
Added section to mongodb guide on security
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Hermosilla committed Aug 3, 2017
1 parent 9e98d49 commit eeff0e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mongodb.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ hours_ago=$(date -d '8 hour ago' "+%s")
query="{'class': ${product_class}, 'ts': {'\$gt': ${hours_ago} }}"

mongo Health --quiet --eval "var collection='Stats', query=${query}, outputFormat='json', limit=3000, maxDepth=1" variety.js
```
```

## Security
- https://www.cyberciti.biz/faq/how-to-secure-mongodb-nosql-production-database/
- http://thecodebarbarian.com/casting-mongodb-queries-with-archetype.html

0 comments on commit eeff0e1

Please sign in to comment.