mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
firstboot: Prompt for secret during firstboot welcome
- A freshly installed FreedomBox can be hijacked by a third party and an admin account can be created which can be used to inject malware or simply take over the instance. Password protecting the firstboot step is a good way to avoid this. A secret will be displayed to the user as soon as the Plinth package is installed, which they have to enter during firstboot welcome step. Also, writing this to a file in plinth's home in case the user loses it. - This protection is not applicable for images built by freedom-maker and for Amazon Machine Images. Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
d846987e8c
commit
ba9af6ddff
9 files changed
+113
-25
No files matched your search
@@ -27,28 +27,29 @@
|
||||
.navbar-brand {
|
||||
display: none;
|
||||
}
|
||||
img.firstboot {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
}
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p class="text-center">
|
||||
<img src="{% static 'theme/img/FreedomBox-logo-standard.png' %}"
|
||||
alt="{{ box_name }}" width="640"/>
|
||||
</p>
|
||||
<div class="logo">
|
||||
<img class="firstboot" src="{% static 'theme/img/FreedomBox-logo-standard.png' %}"
|
||||
alt="{{ box_name }}" />
|
||||
</div>
|
||||
|
||||
<form class="form text-center" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
{% if show_wizard_password_prompt %}
|
||||
{{ form|bootstrap }}
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
<input type="submit" class="btn btn-lg btn-primary"
|
||||
value="{% trans "Start Setup" %}"/>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<p class="text-center" style="font-size: larger">
|
||||
{% blocktrans trimmed %}
|
||||
To complete the setup of your {{ box_name }}, please provide
|
||||
some basic information.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user