Warning: This page has not been updated in over over a year and may be outdated or deprecated.
administration:security
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
administration:security [2023/03/10 11:37] – [Changing File Ownership] demiankatz | administration:security [2023/08/17 12:26] – [Don't Leave Autoconfiguration Turned On] demiankatz | ||
---|---|---|---|
Line 25: | Line 25: | ||
</ | </ | ||
- | The username is most likely '' | + | The username is most likely '' |
2.) Change ownership of the entire VuFind® directory to your new service user, then change the cache back to the appropriate ownership, then adjust the command-line cache. This requires three commands, but you should run them in rapid sequence to avoid disruption to your system: | 2.) Change ownership of the entire VuFind® directory to your new service user, then change the cache back to the appropriate ownership, then adjust the command-line cache. This requires three commands, but you should run them in rapid sequence to avoid disruption to your system: | ||
Line 42: | Line 42: | ||
<code bash> | <code bash> | ||
- | sudo su vufind | + | sudo su vufind |
crontab -e | crontab -e | ||
</ | </ | ||
+ | |||
+ | Note that in this example, we specify which shell to use when switching to the vufind user, since in the example above, we set a " | ||
===== Using SSL ===== | ===== Using SSL ===== | ||
Line 91: | Line 93: | ||
<code bash> | <code bash> | ||
- | sudo su solr | + | sudo su solr -s / |
cd $VUFIND_HOME | cd $VUFIND_HOME | ||
./solr.sh start | ./solr.sh start | ||
</ | </ | ||
+ | |||
+ | See the note under [[administration: | ||
If you are automatically starting Solr, make sure that your configuration includes the appropriate username. See the [[/ | If you are automatically starting Solr, make sure that your configuration includes the appropriate username. See the [[/ | ||
Line 135: | Line 139: | ||
[[administration: | [[administration: | ||
+ | ==== Allowing Access to the Solr Host ==== | ||
+ | |||
+ | Starting with Solr 9 (and thus affecting VuFind® releases 9.0 and later), Solr will only allow " | ||
+ | |||
+ | === Option 1: Reconfigure SOLR_JETTY_HOST === | ||
+ | |||
+ | If you want to permanently allow Solr to accept connections using a hostname other than " | ||
+ | |||
+ | === Option 2: Use SSH Tunneling === | ||
+ | |||
+ | If you only want to temporarily access Solr from another location, you can do so without loosening security by opening an SSH tunnel to expose the Solr port on another machine, effectively allowing " | ||
===== Locking Down the Admin Panel ===== | ===== Locking Down the Admin Panel ===== | ||
Line 154: | Line 169: | ||
VuFind® stores some user information in its database. | VuFind® stores some user information in its database. | ||
+ | |||
+ | VuFind® also supports configuration settings to enforce length and content restrictions on usernames and passwords. Review the settings in the [Authentication] section of [[configuration: | ||
When using some [[configuration: | When using some [[configuration: | ||
Line 160: | Line 177: | ||
Starting with VuFind® 7.0, you can configure a [[administration: | Starting with VuFind® 7.0, you can configure a [[administration: | ||
+ | |||
+ | ===== General Best Practices ===== | ||
+ | |||
+ | ==== Stay Up to Date ==== | ||
+ | |||
+ | VuFind® generally puts out one major and one minor release each year, plus patch releases as necessary. Maintaining your VuFind® instance ensures that you receive the latest security fixes and that your instance remains compatible with the latest versions of all of its dependencies. | ||
+ | |||
+ | You should also be sure to keep your dependencies up to date through necessary operating system patching and upgrading. Make sure that you are running VuFind® in combination with up-to-date and supported versions of Linux, Apache, PHP, etc. | ||
+ | |||
+ | ==== Don't Leave Autoconfiguration Turned On ==== | ||
+ | |||
+ | It's necessary to put VuFind® into " | ||
+ | |||
+ | Similarly, while it is sometimes useful to give Apache ownership of your configuration files to allow it to write updates to disk, this ownership should only be granted during active maintenance of VuFind®, and ownership should be given to a different user at all other times. | ||
---- struct data ---- | ---- struct data ---- | ||
properties.Page Owner : | properties.Page Owner : | ||
---- | ---- | ||
administration/security.txt · Last modified: 2024/05/22 17:27 by demiankatz