Browse Source

Add a relevant description about security practice for resources

Gabriel Horner 2 years ago
parent
commit
71fa4cb6f4
1 changed files with 7 additions and 0 deletions
  1. 7 0
      docs/dev-practices.md

+ 7 - 0
docs/dev-practices.md

@@ -316,6 +316,13 @@ inspectors for block/page data and AST.
 Since the desktop app is built with Electron, a full set of Chromium developer
 tools is available under the menu `View > Toggle Developer Tools`. Handy tools
 include a JS console and HTML inspector.
+## Security Practices
+
+* Our builds should not include unverified, third-party resources as this opens
+  up the app to possibly harmful injections. If a third-party resource is
+  included, it should be verified against an official distributor. Use
+  https://github.com/logseq/logseq/pull/9712 as an example to include a third
+  party resource and not the examples under resources/js/.
 
 ## FAQ