Commit Graph

349 Commits

Author SHA1 Message Date
Rubén D
92e92ea605 refactor: [WIP] Migrate config manager controller.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 18:33:20 +02:00
Rubén D
4a7c4c317b refactor: [WIP] Migrate access and item manager controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 18:11:05 +02:00
Rubén D
bc8e128138 refactor: [WIP] Remove circular dependency.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 08:24:13 +02:00
Rubén D
1c8fb0ea1a refactor: [WIP] Use hexagonal architecture and implement interfaces for services and repositories.
Controllers are being splited into commands to better dependency management.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-06-06 08:17:34 +02:00
Rubén D
bf456ffd4b chore: Minor code tweaks.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-28 08:53:13 +02:00
Rubén D
de0bc2a15b fix: wrong property declaration.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-24 08:05:41 +02:00
Rubén D
3b5c62f697 fix: Prevent XSS on all output variables.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-24 07:46:35 +02:00
Rubén D
57470583e7 fix: Prevent XSS on all output variables.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-23 21:51:54 +02:00
Rubén D
2796ef578b chore: Refactor Installer's constructor signature.
This will provide connection data when running instead of building time (object wiring).

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-20 07:11:24 +02:00
Rubén D
f0e5be2c52 chore: Build mock test for FileBackupService class.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-19 08:25:34 +02:00
Rubén D
f22145b389 chore: Use Application helper class and externalize UpgradeConfigChecker.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 22:04:08 +02:00
Rubén D
98ffc311cf chore: Refactoring of Bootstrap class into an abstract class.
This allows to implement bootstrap classes for each module and simplifies the bootstrap code.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 19:01:28 +02:00
Rubén D
fe349cb6f9 chore: Inject dependencies into modules.
Avoid to inject de IoC container and inject required dependencies. A few helper modules have been created to provide common dependencies.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 18:02:35 +02:00
Rubén D
d6963e041e chore: (WIP) Do not rely on dependencies' container for controllers.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-05-16 11:31:02 +02:00
Rubén D
c76e262daa * [MOD] Exceptions in docblock.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2022-02-27 19:20:14 +01:00
Rubén D
6f2f1ec5e2 * [FIX] Prevent login process when user/password are not provided.
* [FIX] Use null when clientId or categoryId are not set when searching account.
* [FIX] Minor fixes.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-17 22:56:21 +02:00
Rubén D
ebe58282f6 * [ADD] Test API module without using a real sysPass instance.
* [MOD] Improve module loading.
* [MOD] Improve backup file regex.
* [MOD] Minor code tweaks.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-17 16:26:39 +02:00
Rubén D
58249da565 * [MOD] Use static types.
* [MOD] CORS headers.
* [MOD] Improve Forwarded header lookup.
* [ADD] Create interface for configuration data.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-12 20:49:18 +02:00
Rubén D
19f9ae1ab3 * [ADD] Warning messages before changing the master password.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-03 11:26:18 +02:00
Rubén D
dd96643e6a * [ADD] Check whether the master password is correct and not the same as the new one.
* [MOD] Unset environment variables before every test.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-10-02 08:34:55 +02:00
Rubén D
e64897855a * [ADD] Master password update CLI command and tests.
* [MOD] Code refactoring.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-09-27 00:20:24 +02:00
Rubén D
f8e9e19731 * [ADD] Backup CLI command and tests.
* [MOD] Code refactoring.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-09-26 18:42:34 +02:00
Rubén D
0b02c8fdbf Merge branch 'v3.2' into feature/cli_module
# Conflicts:
#	composer.json
#	composer.lock
#	lib/SP/Providers/Auth/Ldap/LdapMsAds.php
#	lib/SP/Services/Install/Installer.php
#	lib/SP/Util/Checks.php
#	lib/SP/Util/Link.php
#	public/js/app-actions.min.js
#	public/js/app-util.min.js
#	tests/res/scripts/reset_db.sh
2021-09-19 21:40:27 +02:00
Rubén D
600c398bb8 * [ADD] Install CLI command tests.
* [MOD] Install CLI command refactoring.
* [MOD] Minor code tweaks.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-09-19 21:32:34 +02:00
Rubén D
33c381a1e1 * [MOD] Use logger on CLI commands
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-03-13 10:01:53 +01:00
Rubén D
ff4e8df2e6 * [ADD] CHeck whether sysPass is installed
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-01-19 08:39:22 +01:00
Rubén D
b1f76654cd * [ADD] CLI module with install command
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-01-19 08:23:53 +01:00
Rubén D
8e96ec4285 * [MOD] Code refactoring by enforcing type checks (WIP)
* [MOD] Update dependencies

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2021-01-17 14:56:56 +01:00
Rubén D
a55548f4c4 * [MOD] Update dependencies
* [FIX] Fix displaying install page when the app is already installed. Thanks to @kmmndr for the notice. Closes #1629
* [FIX] Fix issue when dropping DB user after an errored installation.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-20 15:25:20 +01:00
Rubén D
41703b50f9 * [MOD] Strict type checking (WIP)
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-20 14:24:42 +01:00
Rubén D
e4e6e04c57 * [MOD] Updated copyright
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-07 19:42:41 +01:00
Rubén D
896d9fd3ad * [MOD] Deprecate PHP versions below 7.2 since they are no longer supported by PHP and Travis CI tests are not performed for them. https://www.php.net/supported-versions.php
* [MOD] Improve internal config handling. No more properties visibility tweaks.
* [MOD] Updated dependencies.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-12-07 19:37:00 +01:00
Rubén D
90aa6eb027 * [FIX] Skip direct link on new account
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-06-29 00:49:31 +02:00
Rubén D
9d6509e386 * [ADD] Allow to disable database fallback when using LDAP auth. Closes #1518. Thank to @itpro-tips for the feedback.
* [MOD] Improved authentication workflow.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-06-29 00:25:13 +02:00
Rubén D
d310a10ba0 * [MOD] Merge v3.1 changes
* [ADD] Use custom ldap attributes for users or groups
* [ADD] Use custom ldap filter for users or groups lookup
* [MOD] Improved internal config handling by using an array instead of class properties

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-06-28 19:38:06 +02:00
Rubén D
cd9dd167bd * [MOD] Merge v3.1 changes
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-03-11 19:34:54 +01:00
Rubén D
978eca80d2 * [MOD] Include custom fields in API response using adapters
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-03-07 12:01:44 +01:00
Rubén D
3bcf2e0b4d * [ADD] Include custom field in API response. Thanks to @sf32738 for the feedback. Closes #1388.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-01-11 20:50:09 +01:00
Rubén D
bec1d21d8c * [MOD] Improved CSRF handling by using HTTP header to set the token
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2020-01-08 13:18:03 +01:00
Rubén D
749a45fd0a * [FIX] Do not allow deleting Plugins from the UI. Thanks to @yawnbros for the feedback.
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-12-21 11:30:54 +01:00
Rubén D
a299760683 * [FIX] Wrong behavior when viewing PDF files. Thanks to @m-shirokov for the notice. Closes #1501
* [MOD] Minor code tweaks

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-12-16 00:40:02 +01:00
Rubén D
54e84f17cf * [FIX] Wrong behavior when displaying account notes tooltip with multiple lines. Thanks to @MagikEh for the feedback. Closes #1432
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-08-23 00:15:19 +02:00
Rubén D
3f79d69336 * [FIX] Wrong URL when application URL setting is set. Thanks to @kalxasus for the notice. Closes #1395
* [MOD] Update Authenticator version in composer.json

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-07-20 23:30:47 +02:00
Rubén D
da9dc6f3ab * [FIX] LDAP group filter wasn't applied when importing. Thanks to @twindscheif for the notice. Closes #1390
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-07-20 22:00:47 +02:00
Rubén D
98a68f47c5 * [FIX] Client custom fields were not created/saved. Thanks to @ZUNbado and @sf32738 for the notice. Closes #1375
* [MOD] Minor code tweaks

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-07-20 21:44:04 +02:00
Rubén D
b5559b52eb * [FIX] Skip over initialization when upgrade is needed. Thanks to @Envikia and @alexseys for the notice. Closes #1355
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-07-20 20:51:28 +02:00
Rubén D
01a8339f5b * [MOD] Display XML export download icon on demo mode
Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-27 13:44:27 +02:00
Rubén D
6197c52af1 * [MOD] Update copyright date
* [MOD] Code cleanup

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-27 02:48:18 +02:00
Rubén D
6e1f04ddc5 * [FIX] Wrong limit for maximum file size. Thanks to @javierlm for the feedback. Closes #1313
* [MOD] Typo in translation. Related #1313

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-27 00:39:27 +02:00
Rubén D
b8022166ba * [FIX] Wrong behavior when disabling remote syslog
* [MOD] Increase account's name length up to 100 characters long. Related #1071

Signed-off-by: Rubén D <nuxsmin@syspass.org>
2019-04-27 00:34:13 +02:00