- Mastering MongoDB 3.x
- Alex Giamas
- 163字
- 2021-08-20 10:10:58
Use secure configuration options
It goes without saying that sane configuration options should be used. We must use one of the following:
- MapReduce.
- mongo shell group operation or a group operation from our client driver.
- $where JavaScript server evaluation.
If we don't, we should disable server-side scripting by using the --noscripting option on the command line when we start our server.
Number 2 in the previous list can be a tricky one as many drivers may use MongoDB's group() command when we issue group commands in the driver; however, given the limitations that group() has in terms of performance and output documents, we should rethink our design to use the aggregation framework or application side aggregations.
The web interface also has to be disabled, by not using any of the following commands:
- net.http.enabled
- net.http.JSONPEnabled
- net.http.RESTInterfaceEnabled
On the contrary, wireObjectCheck needs to remain enabled, as it is by default, as this ensures that all documents stored by the mongod instance are valid BSON.
- 三菱FX3U/5U PLC從入門到精通
- 大數據專業英語
- 流處理器研究與設計
- 計算機圖形圖像處理:Photoshop CS3
- 大數據安全與隱私保護
- B2B2C網上商城開發指南
- JSF2和RichFaces4使用指南
- Windows環境下32位匯編語言程序設計
- 21天學通Java Web開發
- TensorFlow Reinforcement Learning Quick Start Guide
- 基于敏捷開發的數據結構研究
- 生成對抗網絡項目實戰
- 項目實踐精解:C#核心技術應用開發
- Mastering MongoDB 4.x
- Embedded Linux Development using Yocto Projects(Second Edition)