Commit Graph

669 Commits

Author SHA1 Message Date
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
Ylian Saint-Hilaire d2e52fbbff
Merge pull request #5382 from Ylianst/deny-resetaccount-pass-auth
deny resetaccount pass change with external auth
2023-10-07 11:45:13 -07:00
Ylian Saint-Hilaire 3a3663bb55 Improvements to show config option in MyServer tab. 2023-10-03 20:35:02 -07:00
Simon Smith 434bfe1845 fix missing getConfig in resetaccount
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2023-09-30 11:31:25 +00:00
Simon Smith 014e89ea8b deny resetaccount pass change with external auth
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2023-09-30 11:20:39 +00:00
Ylian Saint-Hilaire 28e3b18256
Merge pull request #5365 from Ylianst/update-packages
Update packages
2023-09-24 11:46:46 -07:00
Ylian Saint-Hilaire d97e0b1f62 Added warning for NodeJS <16 to upgrade to new version. 2023-09-24 11:40:06 -07:00
Simon Smith ec25d91544
Update packages in meshcentral.js 2023-09-20 16:04:14 +01:00
Ylian Saint-Hilaire 62f52e91c7 config.json read fixes. 2023-09-11 09:50:15 -07:00
Ylian Saint-Hilaire 81b35baa61
Merge pull request #5301 from si458/fix-package-installs
update node-windows and archiver to latest version
2023-09-09 23:05:38 -07:00
Ylian Saint-Hilaire 95dfb608e3
Merge pull request #5318 from si458/add-network-online
add network-online to install on linux
2023-09-09 23:04:55 -07:00
Ylian Saint-Hilaire a3dfc30607
Merge pull request #5330 from si458/fix-webdav-upload
Fix webdav upload
2023-09-09 23:02:04 -07:00
Ylian Saint-Hilaire 5160926477
Merge pull request #5331 from si458/fix-resetaccount-with-messaging
delete user messaging on resetaccount
2023-09-09 23:01:28 -07:00
Simon Smith 403c313771 update passport to 0.6.0
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2023-09-07 08:26:13 +01:00
Simon Smith bed9d8cf33
delete user messaging on resetaccount 2023-09-06 20:15:22 +01:00
Simon Smith 5fa27a0339
update-webdav-module 2023-09-06 13:55:50 +01:00
Simon Smith 749d5b0ea5
fix-google-webdav-module-install 2023-09-06 13:55:04 +01:00
Simon Smith de46556df7
add network-online to install 2023-08-29 21:05:30 +01:00
Simon f3cd0a4dda update node-windows and archiver to latest version
Signed-off-by: Simon <simonsmith5521@gmail.com>
2023-08-22 10:58:29 +01:00
Ylian Saint-Hilaire adbfa6122a Added auto-install of ua-parser-js. 2023-08-14 21:30:00 -07:00
Simon Smith a7aacb8802
pin webdav to version 4 2023-08-11 11:54:54 +01:00
Ylian Saint-Hilaire 775568c7a7 Added Windows ARM 64bit support. 2023-04-14 13:36:34 -07:00
Ylian Saint-Hilaire d6b3d8b53b Updated mongodb module version. 2023-02-03 12:29:24 -08:00