{"id":2730,"date":"2018-11-09T13:01:47","date_gmt":"2018-11-09T11:01:47","guid":{"rendered":"http:\/\/hasselba.ch\/blog\/?p=2730"},"modified":"2018-11-09T13:01:47","modified_gmt":"2018-11-09T11:01:47","slug":"node-js-domino-db-docker-8-security","status":"publish","type":"post","link":"https:\/\/hasselba.ch\/blog\/?p=2730","title":{"rendered":"node.js, domino-db &#038; Docker (8): Security"},"content":{"rendered":"<p>Security is a big topic when developing node.js applications. A simple helper for writing secure code is the <a id=\"user-content-eslint-plugin-security\" class=\"anchor\" href=\"https:\/\/github.com\/nodesecurity\/eslint-plugin-security#eslint-plugin-security\" aria-hidden=\"true\">eslint-plugin-security<\/a> plugin. It checks for common mistakes during writing code, for example using the <em>eval<\/em> statement with external input, or unsafe RegEx expressions&#8230;<\/p>\n<p>To install the plugin, just save it to the project with<\/p>\n<pre><code>npm install --save-dev eslint-plugin-security<\/code><\/pre>\n<p>To enable it, you need to change the <em>.eslintrc<\/em> configuration file:<\/p>\n<pre><code>{\r\n  \"plugins\": [\"security\"],\r\n  \"extends\": [\r\n    \"plugin:security\/recommended\",\r\n    \"rallycoding\"\r\n  ]\r\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Security is a big topic when developing node.js applications. A simple helper for writing secure code is the eslint-plugin-security plugin. It checks for common mistakes during writing code, for example using the eval statement with external input, or unsafe RegEx &hellip; <a href=\"https:\/\/hasselba.ch\/blog\/?p=2730\">Weiterlesen <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,131,35],"tags":[132,90],"class_list":["post-2730","post","type-post","status-publish","format-standard","hentry","category-javascript","category-node-js","category-security","tag-node-js","tag-security"],"_links":{"self":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2730","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2730"}],"version-history":[{"count":2,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2730\/revisions"}],"predecessor-version":[{"id":2732,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2730\/revisions\/2732"}],"wp:attachment":[{"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasselba.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}