Commit Graph

691 Commits

Author SHA1 Message Date
si458 113adb5b85 add debug/log to schema file
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-09-30 14:07:34 +01:00
si458 2beeb6f644 fix agentTimeStampServer and agentTimeStampProxy not being set correctly #6409
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-09-27 19:11:41 +01:00
si458 bc34f140c8 upgrade express-handlebars #6357
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-09-24 19:17:08 +01:00
si458 a1899a719f add freebsd install/uinstall/start/stop/restart commands #6040
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-09-19 22:33:24 +01:00
Ylian Saint-Hilaire d84afb939a More dependency updates. 2024-09-15 10:02:51 -07:00
Ylian Saint-Hilaire f5e63b7cbd Updated dependencies. 2024-09-15 09:52:32 -07:00
si458 2b5337329a remove minify-js use html-minifier instead #6357
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-09-10 20:01:10 +01:00
Ylian Saint-Hilaire 0a64b80654 Updated express-ws. 2024-09-08 14:48:19 -07:00
si458 d367b2ed87 few fixes and doc updates
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-09-05 19:19:52 +01:00
si458 ac0d805378 fix webrtcconfig and allow stun servers #6309
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-09-03 13:42:06 +01:00
si458 6f2b57998f fix agentidletimeout being undefined
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-08-05 11:48:53 +01:00
Ylian Saint-Hilaire fc29e60939 Improved configuration file encryption in the database, added testing. 2024-08-04 22:00:37 -07:00
Josiah Baldwin 44991975d3
Added ability to use environment variables as arguments (#6184) 2024-08-01 15:47:30 +01:00
Simon Smith 6da9222871
add s3 autobackup support (#6280)
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-07-29 14:41:36 +01:00
si458 62cae4cf8a fix autobackup: true
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-07-18 10:48:40 +01:00
si458 aaad8b79cc fix autobackup not running if no backupintervalhours specified
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-07-18 10:03:32 +01:00
Simon Smith f6c7761afb
update ws to 8.17.1 (#6214)
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-06-28 15:09:34 +01:00
Josiah Baldwin 118b0c58dc
Added "trustedproxy" to the arguments list (#6211) 2024-06-28 14:25:49 +01:00
si458 df91c90d33 fix ip fliters from files #3401
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-06-20 22:34:08 +01:00
si458 7955bc4954 include connect-flash with passport to allow displaying of errors
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-06-17 10:10:35 +01:00
Ylian Saint-Hilaire 49b561260a Updated ExpressJS to 4.19.2 2024-05-23 15:47:44 -07:00
si458 f1ba76a423 fix device notifications not dismissing on other web sessions
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-05-21 17:47:39 +01:00
si458 323ef2d50a fix cookieEncoding hex for 2fa #6096
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-05-18 19:45:31 +01:00
Simon Smith 19eb1235f5
set min to node 16 (#5955)
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-05-12 15:37:47 +01:00
Simon Smith 410c84c30b
add --mysql --mariadb arguments for stateless run (#6031)
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-04-18 17:07:01 +01:00
si458 1dca9e2235 fix missing connect-flash again #6028
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-04-15 14:51:18 +01:00
Simon Smith 30d570f28b
translation fixes for meshcentral-data-domain (#6027)
* dont translate min files
* translate meshcentral-web-domain folders with --translate
* also translate default views folder incase of changes

Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-04-15 13:00:42 +01:00
si458 31ebb21e0b fix ipv6 only letsencrypt #5988
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-04-06 23:47:02 +01:00
mstrhakr 05fca6cb36
Fix formatting issues from merging (#5909)
* fix formatting issues in webserver.js

* fix formatting issues is meshcentral.js
2024-03-09 23:46:01 -08:00
Josiah Baldwin 150e2337f5
Add options for overriding TLS ciphers used (#5915)
* Add the ability to set TLS cipher suites

Added config option to set the TLS ciphers instead of relying on a hardcoded list of ciphers determined by meshcentral.

* Added option to use default node ciphers

This allows the ciphers used to be set to the recommended ciphers by nodejs, as well as allowing the user to override the ciphers using the "--tls-cipher-list" command line switch for node.

* Updated validArguments array to include "usenodedefaulttlsciphers" and "tlsciphers" as options
2024-03-09 23:45:10 -08:00
mstrhakr ab0d9c188d
Update Passport version in meshcentral.js - Fix bad merge (#5908) 2024-03-06 19:00:24 +00:00
Ylian Saint-Hilaire bab35e7bca Removed Reddit auth strategy since it never worked well. 2024-03-03 16:34:01 -08:00
mstrhakr 4be5b7273e
Migrate to openid client (#5856)
* Create forksync.yml

* update oidc to use openid-client

* update oidc module requirements

* working oidc+

includes all oauth2 clients automatically migrated. azure will need some kind of fix for the uid

* update openid-client install checks

* created overarching schema for OIDC

* bug fixs for azure login

* update schema

prepare schema for unified oidc module

* update 'oidc' to strategy variable

* working azure+ groups

groups from azure are in,
you can use memberOf or transitiveMemberOf in config (Graphs API)

* clean up old config import + working google oidc

previous config map was recursive nonsense, changed to multiple IFs

* added convertStrArray

* de-expanded scope

put all other auth strategies back to normal and fixed oidc strategy

* swap back to using authlog debugger

* Update meshcentral-config-schema.json

* working google oidc + groups

* working azure+groups (again)

* init oidc docs

very incomplete but basic config is present

* add oidc

* more work on docs

* add scope and claim options

plus fixed a few bugs and faults in my logic
used logs correctly

* further cleanup debug

* more debug cleanup

* continue documentation push

fixed minor debug bugs also

* more work on docs

missing links, need to get azure preset docs, probably more.

* done with docs

its good enough for now

* minor fix + presets get correct icon

* fix google oidc not visible at login

* fix bug with emailVerified property

* fix logout bug + debug cleanup

* fix strategy logout bug +cleanup

* fixed preset login icon

* fix alert + fix schema

* terminate lines

* Dutch language update 1.0.85

line up polish translation

* Fixed guest web relay session revocation (#4667)

* Updated French translation.

* Add hook to allow adding custom api endpoints to Express routing

* Updated German translation.

* Update meshcentral-config-schema.json (change formatting)

This way it is easier to edit and maintain

* Fixed schema.

* fix meshcentral-config-schema.json

* add language selector to login (#5648)

* add language selector to login

* add showLanguageSelect to pick top or bottom boxe

* remove additionalProperties: false in schema to allow comments #5697

Signed-off-by: si458 <simonsmith5521@gmail.com>

* fix notes in docs

* Fix web relay session handling and redirection due to bad merge

* Added option to check HTTP origin.

* add links and fix typo

* move groups after strategy

* Update version split in docs

* Fix preset issuer URL in OIDC strategy

* Update clientid and clientsecret to client_id and client_secret

* Update meshcentral-config-schema.json and fix bad rebase

* Update meshcentral-config-schema.json

* fix bad rebase

* fix bad rebase

* Add 'connect-flash' to passport dependencies

* Remove unnecessary passport dependencies - fix bad rebase

* Fix auth strategy bug and remove console.log statement

* Set groupType to the preset name if it exists, otherwise use the strategy name

* remove finally block from

* Refactor authentication logging in handleStrategyLogin to include strategy name

---------

Signed-off-by: si458 <simonsmith5521@gmail.com>
Co-authored-by: petervanv <58996467+petervanv@users.noreply.github.com>
Co-authored-by: Ylian Saint-Hilaire <ysainthilaire@hotmail.com>
Co-authored-by: Martin Mädler <martin.maedler@gmail.com>
Co-authored-by: Fausto Gutierrez <28719096+faustogut@users.noreply.github.com>
Co-authored-by: Simon Smith <simonsmith5521@gmail.com>
2024-03-03 16:03:27 -08:00
Ylian Saint-Hilaire 27f7648953 Updated archiver to 7.0.0 2024-03-03 11:30:52 -08:00
si458 a7018e74bc split ips correctly with spaces for domains #5809
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-02-17 19:42:47 +00:00
Ylian Saint-Hilaire f2e43cc6da Added option to check HTTP origin. 2024-02-17 11:22:38 -08:00
si458 5c1249ccca split ips correctly with spaces #5809
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-02-17 15:10:47 +00:00
Ylian Saint-Hilaire 1e9607ba8e Changed publicpushnotifications setting to use alt.meshcentral.com. 2024-01-16 18:57:57 -08:00
Simon Smith a822b88756
fix amt powerstate and timer (#5691)
Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-01-13 10:53:45 -08:00
Simon Smith ef6fd23a4f
Fix package installs and set node 20 for docker (#5692)
* fix install packages and set docker to node 20

Signed-off-by: si458 <simonsmith5521@gmail.com>

* missed a few no-package-lock and no-save

Signed-off-by: si458 <simonsmith5521@gmail.com>

* use --save-exact and only install missing modules

Signed-off-by: si458 <simonsmith5521@gmail.com>

---------

Signed-off-by: si458 <simonsmith5521@gmail.com>
2024-01-13 10:52:59 -08:00
Stuart Wyatt 64bef74317
Align and specify NPM module versions (#5685)
The Dockerfile specifies NPM modules to be installed.  However, some do not specify a version, so the latest is installed.  Later in meshcentral.js mainStart() specific versions are required.  If they don't match the latest version, all modules will be reinstalled to get the specific versions.

#5684 Soft version conflict on NPM modules causes NPM modules to be installed on startup in Docker
#5545 Docker on Debian 11 fails on version 1.1.15 and 1.1.16 giving NPM errors
#5681 InstallModules() installs all modules, not just missing modules (regression)
2024-01-11 17:49:12 -08:00
Simon Smith 409d1d6248
update ua-parser-js to 1.0.37 (#5567) 2023-11-17 19:50:17 +00:00
si458 c286c21fb6 add trace-warnings correctly
Signed-off-by: si458 <simonsmith5521@gmail.com>
2023-11-07 14:42:02 +00:00
Simon Smith 4790f40179
wait 5 sec after record and also pass message back (#5508)
* wait 5 sec after record and also pass message back

Signed-off-by: si458 <simonsmith5521@gmail.com>

* add connect-flash package (#5509)

Signed-off-by: si458 <simonsmith5521@gmail.com>

---------

Signed-off-by: si458 <simonsmith5521@gmail.com>
2023-11-04 21:39:02 -07:00
Ylian Saint-Hilaire b4e0dbcd80 More module install improvements, NodeJS minimum version is now 11 due to express-handlebar. 2023-10-21 01:00:47 -07:00
Ylian Saint-Hilaire aadfbafc33 Improved translation.js module installation. 2023-10-20 23:59:14 -07:00
Ylian Saint-Hilaire cdde9b5d67 Major changes to the way NPM is used to install modules, should fix meshcentral updateing incorrectly and other module issues. 2023-10-20 23:36:02 -07:00
Ylian Saint-Hilaire 25b0ac3a6d Rolled back express-ws to 4.0.0 due to 5.x not handling invalid web socket flags correctly. 2023-10-20 20:07:25 -07:00
Simon Smith e20a585b3a
use mysql2 package to support mysql8 (#5427)
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2023-10-20 17:30:57 -07:00
Simon Smith 47767e86a1
add android apk to web ui (#5449)
* add android apk to web ui

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

* add amazon and google buttons instead

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

* add android link and brand icons to agentinvite

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

* oops change mysql back

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

* add android to agentinvite selector

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

* forgot paragraph begin

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

---------

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2023-10-20 17:29:48 -07:00