Commit graph

18 commits

Author SHA1 Message Date
Gabriel Ngandu-Biseba
1515ab09be Fix codeQL error
------
Call "tmpdir()" a single time inside "database.js" and remove "caFilePath" from the config if the path starts with the temporary directory path as a failsafe

Fix whitespace

Move the unassignment of " dbConfig.ssl" and " dbConfig.ssl" outside the block responsible to move the CA file from the temporary directory to the data directory

Fix inverted "if" condition. Also add "path.resolve" to a path check in order to make sure that we are comparing absolute paths with each others

Remove unnecessary check for a ".pem" file, simplify the path check and fix the file copying to itself

Add additional path checks to avoid filename exploits

Fix issue where the temp directory used to temporarily store the CA file is within the working directory instead of the OS provided temp directory path
2025-04-03 14:33:36 +02:00
Gabriel Ngandu-Biseba
8a0d501ffc Use path.resolve instead of path.join in order to normalize the path. 2025-03-31 12:25:45 +02:00
Gabriel Ngandu-Biseba
69c779b382 Remove leftover logging from debugging 2024-12-06 13:58:21 +01:00
Gabriel Ngandu-Biseba
aeffe6d5ad Add check to prevent user-provided dbConfig.caFilePath. 2024-12-06 13:50:28 +01:00
Gabriel Ngandu-Biseba
30693392e0 Remove linter comments automatically added by editor 2024-12-06 13:33:37 +01:00
Gabriel Ngandu-Biseba
ee6e130403 Remove unused variable 2024-12-06 13:22:30 +01:00
Gabriel Ngandu-Biseba
e73c87cfae Add support for a user provided CA file to connect to maria/mysql 2024-12-06 11:45:41 +01:00
Gabriel Ngandu-Biseba
98ba019cf0 Fix always true if condition 2024-11-29 11:42:06 +01:00
Gabriel Ngandu-Biseba
d2b48a648f Add support for user provided CA certificate to establish secure connections with a mysql/mariadb server 2024-11-29 11:41:09 +01:00
Louis Lam
ad4629cb03
Fix UPTIME_KUMA_DB_NAME issue (#4169) 2023-12-05 05:16:55 +08:00
Louis Lam
03e43ab364
Log color and simplify startup log for production (#3889) 2023-10-14 03:00:34 +08:00
Frank Elsinga
d6302198f3
chore(jsdoc):Linting fixes (#3703)
* fixed the lockfile having a different version

* jsdoc
2023-09-07 15:42:44 +08:00
Louis Lam
9c61247162 Fix #3679 2023-09-04 21:32:48 +08:00
Louis Lam
db3a7d69fe Change some jsdoc rule to warn instead of error 2023-08-11 22:29:45 +08:00
Louis Lam
e26abc3156 Improve the setup database 2023-07-01 02:48:42 +08:00
Louis Lam
d286c534bd Improve the setup database for embedded MariaDB 2023-06-30 22:17:07 +08:00
Louis Lam
4056951915 WIP: building database in knex.js 2023-02-11 22:21:06 +08:00
Louis Lam
e4183ee2b7
Database Setup Page (#2738)
* WIP

* WIP: Database setup process

* Add database setup page
2023-02-11 14:41:02 +08:00