You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Display a banner in the JI regarding the noble migration
This is largely copied from the same functionality that was implemented
during the focal migration (ecfecea).
There are two banners that can be seen:
OS_PAST_EOL is in effect after April 2, 2025 if the system is still
running on focal. The Source Interface automatically disables itself and
the Journalist Interface will display a banner informing journalists to
contact their administrator.
OS_NEEDS_MIGRATION_FIXES will display a notice in the Journalist
Interface if the check script has run and found issues that need
resolution. It doesn't affect the Source Interface.
The banners point at <https://securedrop.org/focal-eol>, which will be
set up as a redirect to the relevant documentation.
Both checks are done during startup, which means if the state changes
(e.g. disk space is freed up or a systemd unit fails), the banner state
will only change after the nightly reboot.
Refs #7322
Co-authored-by: soleilera <[email protected]>
Copy file name to clipboardExpand all lines: securedrop/journalist_templates/base.html
+9
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,15 @@
18
18
<body>
19
19
20
20
{% if session.logged_in() %}
21
+
{% if g.show_os_past_eol_warning %}
22
+
<divid="os-past-eol" class="alert-banner">
23
+
{{ gettext('<strong>Critical:</strong> The operating system used by your SecureDrop servers has reached its end-of-life. A manual update is required to re-enable the Source Interface and remain safe. Please contact your administrator. <ahref="https://securedrop.org/focal-eol" rel="noreferrer">Learn More</a>') }}
24
+
</div>
25
+
{% elif g.show_os_needs_migration_fixes %}
26
+
<divid="os-near-eol" class="alert-banner">
27
+
{{ gettext('<strong>Important:</strong> Your SecureDrop server needs manual attention to resolve issues blocking automatic upgrade to the next operating system. Please contact your adminstrator. <ahref="https://securedrop.org/focal-eol" rel="noreferrer">Learn More</a>') }}
28
+
</div>
29
+
{% endif %}
21
30
<navaria-label="{{ gettext('Navigation') }}">
22
31
<ahref="#main" class="visually-hidden until-focus">{{ gettext('Skip to main content') }}</a>
Copy file name to clipboardExpand all lines: securedrop/translations/messages.pot
+6
Original file line number
Diff line number
Diff line change
@@ -419,6 +419,12 @@ msgstr ""
419
419
msgid"Can't scan the barcode? You can manually pair FreeOTP with this account by entering the following two-factor secret into the app:"
420
420
msgstr""
421
421
422
+
msgid"<strong>Critical:</strong> The operating system used by your SecureDrop servers has reached its end-of-life. A manual update is required to re-enable the Source Interface and remain safe. Please contact your administrator. <a href=\"https://securedrop.org/focal-eol\" rel=\"noreferrer\">Learn More</a>"
423
+
msgstr""
424
+
425
+
msgid"<strong>Important:</strong> Your SecureDrop server needs manual attention to resolve issues blocking automatic upgrade to the next operating system. Please contact your adminstrator. <a href=\"https://securedrop.org/focal-eol\" rel=\"noreferrer\">Learn More</a>"
0 commit comments