Gabriel Ngandu-Biseba
5d2d261278
Add missing null check preventing setup of the database
2025-04-03 15:00:34 +02:00
Gabriel Ngandu-Biseba
6cc26907d3
Fix linter brace issue
2025-04-03 14:43:01 +02:00
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
316262efe5
Sanitize all paths used inside writeDBConfig function
2025-03-31 12:36:19 +02:00
GABRIELNGBTUC
050944f45e
Merge branch 'louislam:master' into master
2025-03-31 12:29:23 +02:00
Gabriel Ngandu-Biseba
35cfd9b257
Use path.resolve instead of path.join in order to normalize the path.
...
Also check if the uploaded file is a .pem
2025-03-31 12:25:28 +02:00
Louis Lam
efdffca06c
Fix: [MariaDB] Unable to clean up heartbeat data ( #5425 )
...
Co-authored-by: GJS <homelab.api@gmail.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2024-12-12 14:49:01 +08:00
Gabriel Ngandu-Biseba
30693392e0
Remove linter comments automatically added by editor
2024-12-06 13:33:37 +01:00
Gabriel Ngandu-Biseba
0943e5d354
Remove unused config
2024-12-06 11:43:43 +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
5864c6dd88
Fix: Embedded MariaDB startup issue ( #5283 )
2024-11-05 20:25:08 +08:00
Louis Lam
ca094296f2
Fix: Knex cannot set a default value for TEXT field (MariaDB) ( #5261 )
2024-10-28 13:16:22 +08:00
Louis Lam
277d6fe0ce
Fix #5087 and fix migration state ( #5260 )
2024-10-27 20:30:44 +08:00
Louis Lam
46d8744fa4
Fix: Docker Healthcheck is not happy during migration ( #5258 )
2024-10-27 13:22:23 +08:00
Louis Lam
4d779cfc69
Data migration and history retention for 2.0.0 ( #5075 )
2024-10-26 20:50:29 +08:00
Louis Lam
eca90a2b00
Revert "feat: structured logging (JSON)" ( #5175 )
2024-10-09 07:43:44 +08:00
Cassandra
b287a25de7
feat: structured logging (JSON) ( #5118 )
2024-09-24 17:51:21 +08:00
Louis Lam
85c67b6866
Revert "Switch back to TryGhost/node-sqlite3
from louislam/node-sqlite3
" ( #4879 )
2024-06-24 15:52:07 +08:00
Louis Lam
88b7c047a8
Switch back to TryGhost/node-sqlite3
from louislam/node-sqlite3
( #4773 )
2024-05-20 10:42:37 +08:00
Louis Lam
6bfb1be71a
Improve MariaDB's connection ( #4728 )
2024-05-19 22:46:22 +08:00
Nelson Chan
08f75b0b99
Fix: Add missing FK for monitor-tls-info table ( #4632 )
2024-03-31 12:04:22 +08:00
Frank Elsinga
0e3b3a9ab8
Made sure that more of the async usages are awaited ( #4574 )
2024-03-15 15:02:55 +01:00
Nelson Chan
35479c7690
Fix: Disable timezone conversion for mariadb ( #3756 )
2023-12-03 01:34:26 +08:00
Louis Lam
2aa15ea635
Merge branch '1.23.X' into 1.23.X-merge-to-2.X.X
...
# Conflicts:
# server/database.js
2023-11-18 01:37:30 +08:00
Louis Lam
f0975cd929
Should be a final ulitmate fix for request timeout issue ( #4045 )
...
* Try to fix timeout again
* Ops
2023-11-18 01:17:54 +08:00
Louis Lam
65cbc7b318
Migrate kafka_producer patch
2023-11-13 21:19:43 +08:00
Louis Lam
ace1fe00c2
Merge branch 'master' into 1.23.X-merge-to-2.X.X
...
# Conflicts:
# docker/debian-base.dockerfile
# package-lock.json
# server/database.js
# server/model/monitor.js
# server/uptime-kuma-server.js
# server/util-server.js
2023-11-13 21:15:51 +08:00
Muhammed Hussein karimi
9f170a68d7
🐛 fix: boolean fields in kafka producer monitor ( #3949 )
...
* 🐛 fix: boolean fields in kafka producer monitor
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* 🐛 fix: boolean fields db patch table modify
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* ✏️ typo: remove `_old` COLUMNs in patch-fix-kafka-producer-booleans
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
---------
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
2023-10-28 14:42:55 +08:00
Louis Lam
e11aad2d60
Add some comments
2023-10-18 21:54:48 +08:00
Louis Lam
03e43ab364
Log color and simplify startup log for production ( #3889 )
2023-10-14 03:00:34 +08:00
Louis Lam
852b3fa61b
Merge branch '1.23.X'
...
# Conflicts:
# package-lock.json
# server/database.js
# server/server.js
# server/util-server.js
2023-10-09 21:28:01 +08:00
Louis Lam
16a396debb
Similar to #3763 , but for 1.23.3
2023-09-21 20:38:54 +08:00
Louis Lam
2ef759a362
Allow missing patch files for downgrade or testing pr.
2023-09-21 20:12:10 +08:00
Louis Lam
83d91dbb1b
Set mariadb timezone to UTC using +00:00 ( #3723 )
2023-09-10 18:33:09 +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
Nelson Chan
f3e1a9c61a
Fix: Incorrect database check in sqlHourOffset ( #3706 )
2023-09-07 14:00:49 +08:00
Louis Lam
076331bf00
Uptime calculation improvement and 1-year uptime ( #2750 )
2023-09-01 05:19:21 +08:00
Louis Lam
db3a7d69fe
Change some jsdoc rule to warn instead of error
2023-08-11 22:29:45 +08:00
Matthew Nickson
8a92054c2b
Added JSDoc to ESLint ( #3529 )
...
* Added JSDoc to eslint rules
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
* Fixed JSDoc eslint errors
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
* Update the check-linters workflow to Node.js 20
---------
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
2023-08-11 15:46:41 +08:00
Louis Lam
da4f4e3d76
Update migrations
2023-08-09 21:07:23 +08:00
Louis Lam
3e0f5f4231
Merge branch 'master' into 2.0.X
...
# Conflicts:
# package-lock.json
# server/database.js
# server/util-server.js
2023-08-09 20:09:56 +08:00
Nelson Chan
2921f33c24
Feat: add givenPortOnly as gamedig option ( #3532 )
2023-08-08 03:14:21 +08:00
Jinhyeok Lee
439b6517d1
Feat: Add http/http keyword timeout option ( #2142 )
...
* feat: Add timeoutMs field
* chore: Update Languages (incl. ko-KR)
* Revert "chore: Update Languages (incl. ko-KR)"
This reverts commit 349331a00b
.
* chore: Update ko-KR selectively
* chore: Update en selectively
* Merge manually
* Reorder and show only if http related monitors
* fix: Update Korean translation
* fix: Rename timeoutMs to timeout, rename label, make DOUBLE
* fix: Change minimum step to 0.1, matching DOUBLE type
* Put the sql patch at the end
* Update EditMonitor.vue
* Colocate timeout with retry, fix clampTimeout logic, show default on 0
* Update src/pages/EditMonitor.vue to remove a comment
Co-authored-by: Frank Elsinga <frank@elsinga.de>
* Fix merge issue
* Update the timeout value while finished editing the interval value
---------
Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2023-08-07 00:14:56 +08:00
Louis Lam
c6e68fac97
Follow up #2852 ( #3527 )
2023-08-04 23:08:44 +08:00
Louis Lam
67b1974718
Allow specifying DATA_DIR
without a tailing slash
2023-08-03 20:54:11 +08:00
Henrik Gerdes
42b5d30a33
feat: Implement oauth2 monitors ( #3119 )
...
* [empty commit] pull request for implement oauth2 monitor
* feat: implement oauth2 client credentials flow
* fix: auth methods clarification & error handling
* docs: fix JSdocs types and clarifications
2023-08-02 15:40:19 +08:00
Louis Lam
a0bd4b248b
Merge remote-tracking branch 'origin/master' into 2.0.X
...
# Conflicts:
# docker/debian-base.dockerfile
# package-lock.json
# package.json
# server/database.js
# src/router.js
2023-07-30 19:15:09 +08:00
Tarun Singh
50d4091ded
Merge branch 'master' of https://github.com/louislam/uptime-kuma into status-page-expiry
2023-07-18 22:57:48 -04:00
Muhammed Hussein karimi
278b88a9d9
✨ feat: added kafka producer ( #3268 )
...
* ✨ feat: added kafka producer
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* 🐛 fix: eslint warn
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* 🐛 fix: typings and auth problems
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* 🐛 fix: better variable name to trrack disconnection
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* 🐛 fix: grouping Kafka Producer special settings into one template
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* ✨ feat: add kafka producer translations into `en.json`
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* 🐛 fix: disable close-on-select on kafka broker picker
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* 🐛 fix: `en.json` invalid json (conflict resolve)
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
* Nostr dm notifications (#3051 )
* Add nostr DM notification provider
* require crypto for node 18 compatibility
* remove whitespace
Co-authored-by: Frank Elsinga <frank@elsinga.de>
* move closer to where it is used
* simplify success or failure logic
* don't clobber the non-alert msg
* Update server/notification-providers/nostr.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
* polyfills required for node <= 18
* resolve linter warnings
* missing comma
---------
Co-authored-by: Frank Elsinga <frank@elsinga.de>
* Drop nostr
* Minor
* Fix a bug of clone
---------
Signed-off-by: Muhammed Hussein Karimi <info@karimi.dev>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
2023-07-17 16:15:44 +08:00