diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2018-03-13 13:34:48 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2018-03-13 13:34:48 +0000 |
commit | dfed7b4575cfe5990a2675b41a9a88d52b97b265 (patch) | |
tree | f8053dca7f4fd2d138fac6fd56713b030401b18c | |
parent | 16f6e2f995074c75b3b1b871ec05cfedaf5dfd42 (diff) | |
parent | 8f17a25c5b869d4f3e224d774fb352e59ba1a52a (diff) | |
download | gitlab-ce-dfed7b4575cfe5990a2675b41a9a88d52b97b265.tar.gz |
Merge branch 'docs-fe-security' into 'master'
Add frontend security documentation
See merge request gitlab-org/gitlab-ce!17622
-rw-r--r-- | doc/development/new_fe_guide/development/security.md | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/development/new_fe_guide/development/security.md b/doc/development/new_fe_guide/development/security.md index debda7de0c6..5bb38f17988 100644 --- a/doc/development/new_fe_guide/development/security.md +++ b/doc/development/new_fe_guide/development/security.md @@ -1,3 +1,14 @@ # Security -> TODO: Add content +## Avoid inline scripts and styles + +Inline scripts and styles should be avoided in almost all cases. In an effort to protect users from [XSS vulnerabilities](https://en.wikipedia.org/wiki/Cross-site_scripting), we will be disabling inline scripts using Content Security Policy. + +## Including external resources + +External fonts, CSS, and JavaScript should never be used with the exception of Google Analytics and Piwik - and only when the instance has enabled it. Assets should always be hosted and served locally from the GitLab instance. Embedded resources via `iframes` should never be used except in certain circumstances such as with ReCaptcha, which cannot be used without an `iframe`. + +## Resources for security testing + +- [Mozilla's HTTP Observatory CLI](https://github.com/mozilla/http-observatory-cli) +- [Qualys SSL Labs Server Test](https://www.ssllabs.com/ssltest/analyze.html) |