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
if [[ "${PASSBOLT_PLUGINS_JWT_AUTHENTICATION_ENABLED}"=="false" ]];then
99
+
return 0
100
+
fi
101
+
102
+
if [[ -f"$passbolt_config/jwt/jwt.key"&&-f"$passbolt_config/jwt/jwt.pem" ]];then
96
103
chmod 640 "$passbolt_config/jwt/jwt.key"
97
104
chown www-data:0 "$passbolt_config/jwt/jwt.key"
98
105
chmod 640 "$passbolt_config/jwt/jwt.pem"
@@ -112,8 +119,8 @@ function install() {
112
119
fi
113
120
114
121
import_subscription ||true
115
-
116
122
jwt_keys_creation
123
+
jwt_keys_permissions_adjustments ||echo"[WARN] An attempt to adjust the JWT keypair permission failed. This may be expected if you mount your own keypair as read-only and may be fine as long as the Passbolt server can read said keypair. You can use the health-check command to find any issue with your instance: https://www.passbolt.com/docs/hosting/troubleshooting/logs/#api">&2
if [[ "${PASSBOLT_PLUGINS_JWT_AUTHENTICATION_ENABLED}"=="false" ]];then
99
+
return 0
100
+
fi
95
101
102
+
if [[ -f"$passbolt_config/jwt/jwt.key"&&-f"$passbolt_config/jwt/jwt.pem" ]];then
96
103
chmod 640 "$passbolt_config/jwt/jwt.key"
97
104
chmod 640 "$passbolt_config/jwt/jwt.pem"
98
105
chmod 750 "$passbolt_config/jwt"
@@ -111,6 +118,7 @@ function install() {
111
118
112
119
import_subscription ||true
113
120
jwt_keys_creation
121
+
jwt_keys_permissions_adjustments ||echo"[WARN] An attempt to adjust the JWT keypair permission failed. This may be expected if you mount your own keypair as read-only and may be fine as long as the Passbolt server can read said keypair. You can use the health-check command to find any issue with your instance: https://www.passbolt.com/docs/hosting/troubleshooting/logs/#api">&2
Copy file name to clipboardExpand all lines: scripts/entrypoint/passbolt/entrypoint.sh
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,12 @@ function jwt_keys_creation() {
95
95
chown www-data:www-data "$passbolt_config/jwt"
96
96
su -c '/usr/share/php/passbolt/bin/cake passbolt create_jwt_keys' -s /bin/bash www-data
97
97
fi
98
+
}
99
+
100
+
functionjwt_keys_permissions_adjustments() {
101
+
if [[ "${PASSBOLT_PLUGINS_JWT_AUTHENTICATION_ENABLED}"=="false" ]];then
102
+
return 0
103
+
fi
98
104
99
105
if [[ -f"$passbolt_config/jwt/jwt.key"&&-f"$passbolt_config/jwt/jwt.pem" ]];then
100
106
chmod 640 "$passbolt_config/jwt/jwt.key"
@@ -118,6 +124,7 @@ function install() {
118
124
119
125
import_subscription ||true
120
126
jwt_keys_creation
127
+
jwt_keys_permissions_adjustments ||echo"[WARN] An attempt to adjust the JWT keypair permission failed. This may be expected if you mount your own keypair as read-only and may be fine as long as the Passbolt server can read said keypair. You can use the health-check command to find any issue with your instance: https://www.passbolt.com/docs/hosting/troubleshooting/logs/#api">&2
0 commit comments