Skip to content

Commit 8b2f897

Browse files
SantiagoTorresjelly
authored andcommitted
netboot: add downgraded cipher banner
The banner is pretty self-explanatory. Inform users that the chainloaded script is served on downgraded ciphers due to a limitation on the ssl stack of ipxe. Also, add a configuration variable so that downstream users of archweb can prevent the banner from displaying.
1 parent 24fb87b commit 8b2f897

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

local_settings.py.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ MEDIA_URL = '/media/img/'
5454
## Make this unique, and don't share it with anybody.
5555
SECRET_KEY = '00000000000000000000000000000000000000000000000'
5656

57+
## Display a warning if serving netboot images on downgraded ciphers
58+
NETBOOT_SECURITY_BANNER=True
59+
5760
# vim: set ts=4 sw=4 et:

releng/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from django.http import Http404, HttpResponse
77
from django.shortcuts import get_object_or_404, render
88
from django.views.generic import DetailView, ListView
9+
from django.conf import settings
910

1011
from .models import Release
1112
from mirrors.models import MirrorUrl
@@ -89,6 +90,7 @@ def netboot_config(request):
8990

9091

9192
def netboot_info(request):
92-
return render(request, "releng/netboot.html", None)
93+
return render(request, "releng/netboot.html",
94+
{'security_banner': settings.NETBOOT_SECURITY_BANNER})
9395

9496
# vim: set ts=4 sw=4 et:

templates/releng/netboot.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ <h3>Requirements</h3>
2828

2929
</p>
3030

31+
{% if security_banner %}
32+
<h3> A note on security </h3>
33+
34+
Be advised that, due to limitations with the <a
35+
href='https://lists.ipxe.org/pipermail/ipxe-devel/2019-November/006808.html'>iPXE
36+
SSL stack</a>, the chainloading script for the iPXE image is served using a
37+
downgraded list of cipher-suites under ipxe.archlinux.org. The cipher-suites
38+
---RSA-AES256-CBC-SHA256 -- served on this domain are not the recommended list
39+
on the mozilla observatory, yet they still yield a reasonable degree of
40+
protection/authentication.
41+
42+
{% endif %}
43+
3144
<h3>Download</h3>
3245

3346
<h4>BIOS</h4>

0 commit comments

Comments
 (0)