{"id":200421,"date":"2020-11-14T10:17:23","date_gmt":"2020-11-14T02:17:23","guid":{"rendered":"http:\/\/4563.org\/?p=200421"},"modified":"2020-11-14T10:17:23","modified_gmt":"2020-11-14T02:17:23","slug":"mongodb-%e6%9c%89%e6%95%b0%e6%8d%ae%e5%ba%93%e5%ad%98%e5%8f%96%e6%8e%a7%e5%88%b6%e5%90%97","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=200421","title":{"rendered":"mongodb \u6709\u6570\u636e\u5e93\u5b58\u53d6\u63a7\u5236\u5417"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  mongodb \u6709\u6570\u636e\u5e93\u5b58\u53d6\u63a7\u5236\u5417               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5bfc\u5e08\u7ed9\u4e86\u4e2a\u5f88\u5947\u602a\u7684\u6bd5\u8bbe\u9898\u76ee\uff0c\u5728 mongodb \u57fa\u7840\u4e0a\u5b9e\u73b0\u6570\u636e\u5e93\u7684\u5b58\u53d6\u63a7\u5236\uff0c\u6211\u5bfb\u601d\u8fd9\u4e0d\u662f db \u90fd\u6709\u989d\u57fa\u672c\u529f\u80fd\u5417\uff1f<\/p>\n<p>\u81ea\u4e3b\u5b58\u53d6\u63a7\u5236\uff08 Discretionary Access Control \u7b80\u79f0 DAC \uff09\uff1a<\/p>\n<ul>\n<li>\u7528\u6237\u5bf9\u4e0d\u540c\u7684\u6570\u636e\u5bf9\u8c61\u6709\u4e0d\u540c\u7684\u5b58\u53d6\u6743\u9650\u3002<\/li>\n<li>\u4e0d\u540c\u7684\u7528\u6237\u5bf9\u540c\u4e00\u5bf9\u8c61\u4e5f\u6709\u4e0d\u540c\u7684\u6743\u9650\u3002<\/li>\n<li>\u7528\u6237\u8fd8\u53ef\u4ee5\u5c06\u5176\u62e5\u6709\u7684\u5b58\u53d6\u6743\u9650\u8f6c\u6388\u7ed9\u5176\u4ed6\u7528\u6237\u3002<\/li>\n<\/ul>\n<p>\u5f3a\u5236\u5b58\u53d6\u63a7\u5236\uff08 Mandatory Access Control \u7b80\u79f0 MAC \uff09:<\/p>\n<ul>\n<li>\u6bcf\u4e00\u4e2a\u6570\u636e\u5e93\u5bf9\u8c61\u88ab\u6807\u4ee5\u4e00\u5b9a\u7684\u5bc6\u7ea7\u3002<\/li>\n<li>\u6bcf\u4e00\u4e2a\u7528\u6237\u88ab\u6388\u4e88\u67d0\u4e00\u4e2a\u7ea7\u522b\u7684\u8bb8\u53ef\u8bc1\u3002<\/li>\n<li>\u5bf9\u4e8e\u4efb\u610f\u4e00\u4e2a\u5bf9\u8c61\uff0c\u53ea\u6709\u5177\u5907\u5408\u6cd5\u8bb8\u53ef\u8bc1\u7684\u7528\u6237\u624d\u53ef\u4ee5\u5b58\u53d6\u3002<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4279075\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : auxox <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             DAC \u8fd9\u5757 mongo \u662f\u660e\u786e\u652f\u6301\u7684\u3002\u53c2\u89c1\uff1a https:\/\/docs.mongodb.com\/manual\/core\/authorization\/<br \/>\u6709\u4e00\u70b9\u5f88\u597d\u5947\uff0c\u8fd9\u4e2a\u9898\u76ee\u7684\u610f\u601d\u662f\u5728 mongo \u7684 codebase \u4e0a\u52a0\u989d\u5916\u7684\u529f\u80fd\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4279076\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @auxox \u5e94\u8be5\u662f\u53ef\u4ee5\u52a0\u4e00\u4e2a\u4e2d\u95f4\u5c42\u7684\u610f\u601d\u5427&#8230;\u8001\u5e08\u4e00\u76f4\u5f3a\u8c03 mongodb \u4e0d\u652f\u6301\u5b58\u53d6\u63a7\u5236\uff0c\u542c\u5f97\u6211\u4e91\u91cc\u96fe\u91cc\uff0c\u56de\u6765\u4e00\u67e5\u4e0d\u592a\u5bf9\u52b2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4279077\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @auxox \u662f\u4e0d\u662f\u8bf4 mongodb \u7684\u6743\u9650\u63a7\u5236\u7c92\u5ea6\u53ea\u662f\u5230\u89d2\u8272\u548c\u6587\u6863\uff0c\u6709\u6ca1\u6709\u50cf\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u5bf9\u67d0\u4e9b\u5217\u6216\u8005\u662f\u67d0\u4e9b\u5143\u7956\u7684\u8bbf\u95ee\u6743\u9650\u63a7\u5236                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4279078\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Privileges<br \/>A privilege consists of a specified resource and the actions permitted on the resource.<\/p>\n<p>A resource is a database, collection, set of collections, or the cluster. If the resource is the cluster, the affiliated actions affect the state of the system rather than a specific database or collection. For information on the resource documents, see Resource Document.<\/p>\n<p>An action specifies the operation allowed on the resource. For available actions see Privilege Actions.<br \/>@auxox                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4279079\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : avastms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6bd5\u8bbe\u4e0d\u5f97\u4f60\u81ea\u5df1\u5b9e\u73b0\u4e48\u3002\u3002<br \/>\u4f60\u7528\u4eba\u5bb6\u529f\u80fd\u7b97\u5565\u3002\u3002\u3002<\/p>\n<p>\u771f import \u8bba\u6587\u4e48\u3002\u3002\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4279080\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : auxox <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zxCoder mongo \u6743\u9650\u63a7\u5236\u7c92\u5ea6\u6ca1\u6709\u90a3\u4e48\u7ec6\uff0c\u6700\u5c0f\u7684\u7c92\u5ea6\u662f\u96c6\u5408\uff0c\u4e5f\u5c31\u662f rdbms \u4e2d\u7684\u8868\u3002\u8bdd\u8bf4 mysql \u6216\u8005 pg \u6709\u9488\u5bf9\u7279\u5b9a\u8bb0\u5f55\u8fdb\u884c\u8bbf\u95ee\u63a7\u5236\u7684\u529f\u80fd\u5417\uff0c\u5982\u679c\u652f\u6301\u7684\u8bdd\uff0c\u90a3\u5bf9\u4e8e\u8bb0\u5f55\u6570\u4e3a\u5343\u4e07\u7ea7\u7684\u8868\uff0c\u8fd9\u5757\u600e\u4e48\u5b9e\u73b0\u5462\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4279081\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @avastms &#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4279082\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @auxox \u627e\u8001\u5e08\u95ee\u4e86\u4e00\u4e0b \u786e\u5b9e\u5927\u81f4\u5de5\u4f5c\u5c31\u662f\u8981\u5b9e\u73b0\u66f4\u5c0f\u7684\u7c92\u5ea6\u7684\u5b58\u53d6\u63a7\u5236\u3002\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>mongodb \u6709\u6570\u636e\u5e93\u5b58\u53d6\u63a7\u5236\u5417&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/200421"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=200421"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/200421\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=200421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=200421"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=200421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}