Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mentat-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
mentat-test
Commits
6302c40c
Commit
6302c40c
authored
2 years ago
by
Rajmund Hruška
Browse files
Options
Downloads
Plain Diff
Merge branch 'devel' of homeproj.cesnet.cz:mentat-ng into devel
parents
3ab83955
538b7943
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/sphinx/_doclib/installation.rst
+21
-9
21 additions, 9 deletions
doc/sphinx/_doclib/installation.rst
with
21 additions
and
9 deletions
doc/sphinx/_doclib/installation.rst
+
21
−
9
View file @
6302c40c
...
...
@@ -584,7 +584,9 @@ If you wish to use the web interface Hawat, you wil have to install and configur
a web server. You may use any server you like as long as it supports execution of
WSGI Python3 scripts. Do not forget to setup some initial user accounts, either
use the demonstration fixtures, or setup real user accounts. Otherwise you will
not be able to log in.
not be able to log in. Also, please note that Hawat application is not reentrant,
so employed web server must allow process base dispatch (not threaded or event
based).
Following examples demonstrate necessary Apache2 configuration when Mentat system
is installed on target system with Debian packages. Please review and adjust the
...
...
@@ -617,29 +619,34 @@ ready for deployment out of the box:
a2dissite default-ssl.conf
a2ensite site_mentat.conf
# Step 5: Enforce process based Apache worker
a2dismod mpm_worker
a2dismod mpm_event
a2enmod mpm_prefork
# !!!!! THIS STEP IS SUPER IMPORTANT !!!!!
# Step
5
: In file /etc/mentat/mentat-hawat.py.conf change default SECRET_KEY and
# Step
6
: In file /etc/mentat/mentat-hawat.py.conf change default SECRET_KEY and
# in production deployment make sure, that ENABLED_BLUEPRINTS key does not
# contain 'hawat.blueprints.auth_dev', or that is is commented out. Otherwise
# you would enable anyone impersonate any other user without password.
# !!!!! THIS STEP IS SUPER IMPORTANT !!!!!
vim /etc/mentat/mentat-hawat.py.conf
# Step
6
: Restart Apache service:
# Step
7
: Restart Apache service:
systemctl restart apache2.service
# Step
7
: OPTION A: Insert demonstration data into Mentat`s metadata database
# Step
8
: OPTION A: Insert demonstration data into Mentat`s metadata database
# (this will insert some demo accounts, groups, networks and filters into db
# and can be used in conjuction with htpasswd file above):
mentat-dbmngr.py --command fixtures-add
# Step
8
: OPTION B: Create initial user account/s in Mentat`s metadata database
# Step
9
: OPTION B: Create initial user account/s in Mentat`s metadata database
# (please adjust the attributes, do not simply copy and paste):
mentat-dbmngr.py --command user-add login=superman "fullname=Clark Kent" email=kent@dailyplanet.com "organization=Daily Planet, inc." roles=user,admin
.. warning::
Please make sure you have read step
5
in the recipe above. The :ref:`section-hawat-plugin-auth-dev`
Please make sure you have read step
6
in the recipe above. The :ref:`section-hawat-plugin-auth-dev`
authentication module in particular is a HUGE security risk when enabled in production
installation and accessible from network.
...
...
@@ -684,15 +691,20 @@ with `Shibboleth SSO <https://www.shibboleth.net/index/basic/>`__ login service
a2dissite default-ssl.conf
a2ensite site_mentat.conf
# Step 5: Enforce process based Apache worker
a2dismod mpm_worker
a2dismod mpm_event
a2enmod mpm_prefork
# !!!!! THIS STEP IS SUPER IMPORTANT !!!!!
# Step
5
: Change default SECRET_KEY in /etc/mentat/mentat-hawat.py.conf:
# Step
6
: Change default SECRET_KEY in /etc/mentat/mentat-hawat.py.conf:
# !!!!! THIS STEP IS SUPER IMPORTANT !!!!!
vim /etc/mentat/mentat-hawat.py.conf
# Step
6
: Restart Apache service:
# Step
7
: Restart Apache service:
systemctl restart apache2.service
# Step
7
: Create initial user account/s in Mentat`s metadata database
# Step
8
: Create initial user account/s in Mentat`s metadata database
# (please adjust the attributes, do not simply copy and paste):
mentat-dbmngr.py --command user-add login=superman "fullname=Clark Kent" email=kent@dailyplanet.com "organization=Daily Planet, inc." roles=user,admin
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment