Skip to content

Commit a43c302

Browse files
committed
Document the new config section
1 parent 62ac74d commit a43c302

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

NOTES.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,22 @@ existing bug reports, go to https://github.com/uninett/nav/issues .
88
To see an overview of upcoming release milestones and the issues they resolve,
99
please go to https://github.com/uninett/nav/milestones .
1010

11+
NAV 5.9
12+
=======
13+
14+
Web security
15+
------------
16+
17+
While it is only relevant for older browsers, the HTTP header
18+
``X-XSS-Protection`` is set to ``1; mode=block``. It does not affect browsers
19+
that do not support it after all.
20+
21+
There's a new section in :file:`webfront/webfront.conf`, ``[security]``. When
22+
running in production with SSL/TLS turned on, there's a new flag ``needs_tls``
23+
that should also be toggled on. This'll turn on secure cookies (only sent over
24+
SSL/TLS). See also the new howto
25+
:doc:`Securing NAV in production </howto/securing-nav-in-production>`.
26+
1127
NAV 5.8
1228
=======
1329

doc/howto/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ Howtos
1919
setting-up-logging
2020
using_the_api
2121
api_parameters
22+
securing-nav-in-production
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
==========================
2+
Securing NAV in production
3+
==========================
4+
5+
Overview
6+
========
7+
8+
The default configuration of NAV is set up to work well during development, but
9+
needs to be tightened when running in production.
10+
11+
NAV consists of pages controlled by NAV itself, and pages served directly by
12+
the web server. Security features for NAV's own pages are controlled via the
13+
``[security]``-section in the file :file:`webfront/webfront.conf`, while
14+
security for the other pages are controlled directly by the web server.
15+
16+
17+
SSL/TLS
18+
=======
19+
20+
This needs to be turned on in the webserver itself. While there is no reason to
21+
serve any of NAV without SSL/TLS turned off, it is especially important for the
22+
pages controlled by NAV.
23+
24+
When the server serves NAV with SSL/TLS, ensure that the ``needs_tls``-flag in
25+
the ``[security]``-section is set to ``yes``. This explicitly turns on secure
26+
cookies, which is dependent on SSL being in use.

0 commit comments

Comments
 (0)