Skip to content

Commit 429dd03

Browse files
authored
Merge pull request hestiacp#1302 from hestiacp/staging/release/v1.3.0
Staging/release/v1.3.0
2 parents 8dca2d7 + ee9156d commit 429dd03

File tree

28 files changed

+402
-347
lines changed

28 files changed

+402
-347
lines changed

CHANGELOG.md

Lines changed: 50 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,58 @@ All notable changes to this project will be documented in this file.
33

44
## [1.3.0] - Major Release (Feature / Quality Update)
55
### Features
6-
- Users can now choose to point a domain to a different document root (similar to domain parking).
7-
- The software update procedure will now perform a system health check prior to installation and repair missing environment variables.
6+
- Users can now choose to point a domain to a different document root location (similar to domain parking).
7+
- The software update process will now perform a system health check before proceeding with installation.
88
- Administrators now have control over software update notifications through the following settings in `$HESTIA/conf/hestia.conf` and through the Control Panel web interface:
9-
- `UPGRADE_SEND_EMAIL` = Sends an email notification to admin email address
10-
- `UPGRADE_SEND_EMAIL_LOG` = Sends installation log output to admin email address
11-
- Upgrade process will now save logs to the `hst_backups` directory.
12-
- Support for removing backup remote location (#1083).
13-
- Add support Proftpd TLS Support
14-
- Add the possibility to assign user "Administrators" rights on login. Replaces "root" login. Notifications are only send towards the "admin" account email.
15-
- Updated translations system with the use of Gettext. Modified / Updated all translated strings.
16-
- Use php7.4 as default version.
17-
- Updated MariaDB to 10.5 (Manual upgrade required install/upgrade/manual/upgrade_mariadb.sh).
18-
- Added support for Turkish (emrahk [Forum](https://forum.hestiacp.com/t/how-to-contribute-with-translations/1664/4?u=eris) )
9+
- `UPGRADE_SEND_EMAIL` = Sends an email notification to primary admin account's email address
10+
- `UPGRADE_SEND_EMAIL_LOG` = Sends installation log output to the primary admin account's email address
11+
- The upgrade process will now save installation logs to the `/root/hst_backups` directory by default for post-install troubleshooting.
12+
- **Note:** We may adjust this path in the future and will document such changes as they happen.
13+
- We've introduced the ability to assign Administrator rights to other user accounts, enabling them to perform tasks under the Server Settings tab.
14+
- We've introduced a more robust translation system which will allow us to provide higher quality translations in future releases.
15+
- **Note:** Some country codes have been updated, as a result your language setting may default back to English after upgrading.
16+
- For new installations, MariaDB 10.5 is now the default version.
17+
- For existing installations, we've provided a manual post-install upgrade script. Please run `$HESTIA/install/upgrade/manual/upgrade_mariadb.sh` to migrate to MariaDB 10.5).
18+
- The user interface theme has been set to "Dark" by default. This can be changed from **Server Settings > Configure > Basic Options > Appearance**.
19+
- **Note:** The name of the default theme has not been adjusted, and the change to the "dark" theme only applies to new installations at this time. This behavior may be changed in a future release.
1920

20-
## Bugfixes
21-
- Removed root login (root / root password )
22-
- Update apache2.conf replace Include with IncludeOptional (#1072)
23-
- Add ca-certificates, software-properties-common to the dependencies (#1073 + [Forum](https://forum.hestiacp.com/t/hestiscp-fails-on-new-debian-9-vps/1623/8) ) @daniel-eder
24-
- Fixed issues with database port during backup when port was missing (#1068)
25-
- Postqresql: forbid the use of upper case (#1084) causing issues with backup / creating database or user
26-
- Fixed permissions email account during restore (#1114)
27-
- Create .npm on creating new user (#1113) @hahagu
28-
- Fixed Access to a website without a ssl certificate on https shows the content of the first, valid ssl website (#1103)
29-
- Fixed an issue when installing --with-debs and version check (#1110)
30-
- Improved Translations Chinese @myrevery
31-
- File manager create directory with proper permissions
32-
- Removed loop ad v-rebuild-all (#1096)
33-
- Add $restart flag to v-add-web-domain-backend call (#1094) (#797) @bright-soft
34-
- Fixed an issue with Restore Failed on Domains with Mail Setups using SSL (#1069)
35-
- Fixed an issue with PHPMyAdmin button (#1078)
36-
- Changed WordPress name in Webapp installer (#1074)
37-
- Add a free disk space validation during backup routine (#1115)
38-
- Removed PHP validation SSH keys allowing support other types then RSA / DSA
39-
- Fixed an issue which cause wrong password generation (#1184)
40-
- Fixed issue with v-add-sys-ip and saving the ip configuration to correct port (@madito)
41-
- Updated Exim black list for extensions (@kpapad904 / #1138)
42-
- Fixed multiple bugs due to translations
43-
- Fixed bug with passwords containing "'" [Forum](https://forum.hestiacp.com/t/two-factor-authentication-issue-with-standard-user/1652/)
44-
- Refactor LXD Complier script
45-
- Set default theme to "Dark"
46-
- Clean up gmail.tpl (DNS) (@madito)
47-
- Improved translations (NL, DE, UK, RU, ES, IT, ZH-CN)
21+
### Bugfixes
22+
- Fixed a security issue where user password reset keys could potentially be gleaned from system process list - thanks **RACK911 LABS**
23+
- Fixed an issue with passwords containing "`'`" - [Forum](https://forum.hestiacp.com/t/two-factor-authentication-issue-with-standard-user/1652/)
24+
- Fixed an issue with database backups when the port was not specified (#1068)
25+
- Fixed an issue where websites without SSL enabled would display the content of the first valid SSL enabled website (#1103)
26+
- Fixed an issue that would occur when using the `--with-debs` flag with the installer due to an incorrect version check routine (#1110)
27+
- Fixed an issue with incorrect permissions which would occur when restoring email accounts (#1114)
28+
- Fixed an issue where the File Manager would apply the wrong permissions on new directories
29+
- Fixed an issue that prevented successful restoration of SSL-enabled mail domains from a backup archive (#1069)
30+
- Fixed an issue where the phpMyAdmin button would not work in the Control Panel Web UI (#1078)
31+
- Fixed an issue where passwords were generated incorrectly (#1184)
32+
- Fixed an issue in `v-add-sys-ip` to ensure IP configuration is set to the correct port - thanks **@madito**
33+
- Fixed an issue that resulted in an extended loop condition when running `v-rebuild-all`
34+
- Improved support for API key usage with the `v-add-remote-dns-host` command (#1265)
35+
- Improved validation of free disk space when executing backup routine (#1115)
36+
- Improved support for SSH key types other than RSA / DSA
37+
- Improved reliability of backup function when removing remote locations (#1083)
38+
- Improved spam filtering by adding additional known-dangerous file extensions in exim's blacklist (#1138) - thanks **@kpapad904**
39+
- Updated Apache2 configuration to use Include with IncludeOptional (#1072)
40+
- Removed the ability to log in as "root" (whic logged to the admin account, deemed no longer necessary)
41+
- Add ca-certificates, software-properties-common to the dependencies (#1073 + [Forum](https://forum.hestiacp.com/t/hestiscp-fails-on-new-debian-9-vps/1623/8)) - thanks **@daniel-eder**
42+
- Create .npm directory by default when creating new user accounts (#1113) - thanks **@hahagu**
43+
- Improved accuracy of several UI translations (NL, DE, UK, RU, ES, IT, ZH-CN) - thanks **@myrevery** and other contributors for your work!
44+
- Added `$restart` flag to `v-add-web-domain-backend` command (#1094) (#797) - thanks **@bright-soft**
45+
- PostgreSQL: forbid the use of upper case (#1084) causing issues with backup / creating database or user
46+
- Changed WordPress name in Quick Web App installer (#1074)
47+
- Cleaned up entries used in the Google / Gmail DNS template - thanks **@madito**
48+
- Enhanced ProFTPd support for TLS
49+
- Refactored LXD compiler script
50+
- Updated phpMyAdmin to version 5.0.4
51+
52+
## [1.2.4] - Service Release
53+
### Features
54+
- No new features have been introduced in this release.
55+
56+
### Bugfixes
57+
- Fixes an issue on auto renewing let's encrypt certificates.
4858

4959
## [1.2.3] - Service Release
5060
### Features

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ We have three primary or "evergreen" branches, which exist throughout our produc
2727

2828
| Branch | Description | Cycle |
2929
|---------------|:---------------:|:---------------:|
30-
| `main` | Contains a snapshot of the latest development code.<br>**Not intended for production use and may be unstable.** | Daily |
30+
| `main` | Contains a snapshot of the latest development code.<br>**Not intended for production use and contains code from a merge snapshot.** | Daily |
3131
| `beta` | Contains a snapshot of the next version which is currently in testing.<br>**Not intended for production but should be highly stable.** | Weekly |
32-
| `release` | Contains a snapshot of the latest stable release.<br>**Intended for production use. Same code as packages in repository.** | Monthly |
32+
| `release` | Contains a snapshot of the latest stable release.<br>**Intended for production use. This repository contains the same code as our compiled packages.** | Monthly |
3333

3434
### Creating a new branch and submitting pull requests
3535
The first step is to create a fork of the `hestiacp/hestiacp` repository under your account so that you may submit pull requests and patches via GitHub.
3636

3737
Once you've created your fork, clone the repository to your computer and make sure that you've checked out the `main` branch. **Always** create a new topic branch for you work. When submitting pull requests it is important that you target the correct branch to ensure that your changes are properly integrated and tested based on our release schedule. When creating a new branch, we ask that you please adhere to the following naming conventions as much as possible:
3838

3939
### Branch naming convention:
40-
- **Prefix:** `topic/` (such as **bugfix**, **feature**, **refactor**, etc.)
40+
- **Prefix:** `topic/` (such as **fix**, **feature**, **refactor**, etc.)
4141
- **ID**: `888` (GitHub Issue ID if an issue exists) -or- `2020-07` (Year-Month if an issue does not already exist)
4242
- **Separator:** `_` (underscore)
4343
- **Title:** `my-awesome-patch`
@@ -49,7 +49,7 @@ Branch name examples:
4949
* `test/2020-07_mail-domain-ssl`
5050

5151
### Squashing commits for smaller changes
52-
When submitting a pull request with multiple smaller commits which are related to the same file or issue, we ask that you please **squash your commits** whenever appropriate in order to keep the project's commit history clean and easy to follow for other developers.
52+
To aid other developers and keep the project's commit history clean, please **squash your commits** when it's appropriate. For example with smaller commits related to the same piece of code, such as commits labelled "Fixed item 1", "Adjusted color of button XYZ", "Adjusted alignment of button XYZ" can be squashed into one commit with the title "Fixed button issues in item".
5353

5454
### What happens when I submit a pull request?
5555
- Our internal development team will review your work and validate your request.

ISSUE_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
Please enter your answer here (e.g. When I try adding a web domain, an error message appeared stating that the php-fpm pool did not exist).
99

1010
### What steps did you take when the issue occured?
11-
1. Ex.: Click on the Web tab
12-
2. Ex.: Click on Add Web Domain
11+
1. Ex.: Click on the "Web" tab.
12+
2. Ex.: Click on "Add Web Domain".
1313
3. Ex.: Attempted to add a domain and received an Internal Server Error.
1414

1515
### Expected behavior:
@@ -19,7 +19,7 @@ Please enter your answer here (e.g. the web domain should have been added succes
1919
Please enter your answer here (e.g. Ubuntu 20.04 LTS)
2020

2121
### Hestia Control Panel version:
22-
Please enter your answer here (e.g. 1.2.0).
22+
Please enter your answer here (e.g. 1.3.0).
2323

2424
### Additional notes:
25-
If there is anything else that you'd like us to know about this issue, feel free to share here.
25+
If there is anything else that you'd like us to know about this issue that will help us diagnose and troubleshoot more effectively, such as links to forum posts or other discussions, please feel free to share here.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
[Hestia Control Panel](https://www.hestiacp.com/)
44
==================================================
5-
**Latest stable release:** Version 1.2.4 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md)<br>
5+
**Latest stable release:** Version 1.3.0 | [View Changelog](https://github.com/hestiacp/hestiacp/blob/release/CHANGELOG.md)<br>
66

77
**Web:** [www.hestiacp.com](https://www.hestiacp.com/)<br>
88
**Documentation:** [docs.hestiacp.com](https://docs.hestiacp.com/)<br>
99
**Forums:** [forum.hestiacp.com](https://forum.hestiacp.com/)<br>
10-
**Discord:** [Join HestiaCP Discord channel](https://discord.gg/nXRUZch)<br />
10+
**Discord:** [Join the discussion](https://discord.gg/nXRUZch)<br />
1111
<br>
1212
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ST87LQH2CHGLA)
1313
<br>

SECURITY.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Reporting a Vulnerability
44

5-
If you have discovered a vulnerability in Hestia Control Panel,
6-
let our development team know via e-mail at info@hestiacp.com and
7-
we will respond as soon as possible.
5+
If you believe that you have have discovered a vulnerability in Hestia Control Panel,
6+
please let our development team know via email at info@hestiacp.com.
7+
8+
We ask that you please include a detailed description of the vulnerability,
9+
a list of services involved (e.g. exim, dovecot) and the versions which you've tested,
10+
full steps to reproduce the vulnerability, and include your findings and expected results.

bin/v-change-user-rkey

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
2-
# info: change user password
3-
# options: USER
2+
# info: change user random key
3+
# options: USER [HASH]
44
#
5-
# The function changes user's password and updates RKEY value.
5+
# The function changes user's RKEY value thats has been used for security value to be used forgot password function only.
66

77

88
#----------------------------------------------------------#
@@ -11,8 +11,9 @@
1111

1212
# Argument definition
1313
user=$1
14+
hash=$2
1415

15-
16+
echo $rkeyhash;
1617
# Importing system enviroment as we run this script
1718
# mostly by cron wich not read it by itself
1819
source /etc/profile
@@ -25,14 +26,21 @@ source $HESTIA/conf/hestia.conf
2526
# Verifications #
2627
#----------------------------------------------------------#
2728

28-
check_args '1' "$#" 'USER'
29+
check_args '1' "$#" 'USER [HASH]'
2930
is_format_valid 'user'
3031
is_object_valid 'user' 'USER' "$user"
3132
is_object_unsuspended 'user' 'USER' "$user"
3233

3334
# Perform verification if read-only mode is enabled
3435
check_hestia_demo_mode
3536

37+
if [ ! -z "$hash" ]; then
38+
password=$hash
39+
is_password_valid
40+
hash=$password;
41+
else
42+
hash=$(generate_password)
43+
fi
3644
#----------------------------------------------------------#
3745
# Action #
3846
#----------------------------------------------------------#
@@ -44,7 +52,7 @@ d=$(date +%s)
4452
#----------------------------------------------------------#
4553

4654
# Changing RKEY value
47-
update_user_value "$user" '$RKEY' "$(generate_password)"
55+
update_user_value "$user" '$RKEY' "$hash"
4856

4957
#check if RKEYEXP exists
5058
if [ -z "$(grep RKEYEXP $USER_DATA/user.conf)" ]; then

func/upgrade.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ upgrade_start_backup() {
435435
echo " ---- mysql"
436436
fi
437437
cp -f /etc/mysql/*.cnf $HESTIA_BACKUP/conf/mysql/
438-
cp -f /etc/mysql/conf.d/*.cnf $HESTIA_BACKUP/conf/mysql/
438+
cp -f /etc/mysql/conf.d/*.cnf $HESTIA_BACKUP/conf/mysql/ > /dev/null 2>&1
439+
cp -f /etc/mysql/mariadb.conf.d/*.cnf $HESTIA_BACKUP/conf/mysql/ > /dev/null 2>&1
439440
fi
440441
if [[ "$DB_SYSTEM" =~ "pgsql" ]]; then
441442
if [ "$DEBUG_MODE" = "true" ]; then

install/deb/mysql/my-large.cnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ interactive_timeout=50
4040
long_query_time=5
4141

4242
!includedir /etc/mysql/conf.d/
43+
!includedir /etc/mysql/mariadb.conf.d/

install/deb/mysql/my-medium.cnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ interactive_timeout=50
3939
long_query_time=5
4040

4141
!includedir /etc/mysql/conf.d/
42+
!includedir /etc/mysql/mariadb.conf.d/

install/deb/mysql/my-small.cnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ interactive_timeout=50
3939
long_query_time=5
4040

4141
!includedir /etc/mysql/conf.d/
42+
!includedir /etc/mysql/mariadb.conf.d/

0 commit comments

Comments
 (0)