Adolfo Gómez García
e4a9b89d32
Removed legacy non working actor as downloadables and updated required python version to 3.9
2024-09-26 03:23:27 +02:00
Adolfo Gómez García
6b002a540e
Fixed tree generation to include some more info
2024-09-26 03:04:19 +02:00
Adolfo Gómez García
f8ab0b09d3
Refactor some opchecker methods to use cached instances (by the model instance itself) insead of using 2 variables to hold model an instance
2024-09-26 02:46:58 +02:00
Adolfo Gómez García
fce9e81509
Adding test for actor_v3 and some minor fixes
2024-09-26 02:28:58 +02:00
Adolfo Gómez García
c04a2b7396
Added support for "delayed network" on OpenStack...
2024-09-25 17:52:08 +02:00
Adolfo Gómez García
821ee3ecc1
Fixing up connection scripts for RDP. Preparing them for future client change on how these are executed
2024-09-23 17:34:21 +02:00
Adolfo Gómez García
af3a03d7f7
Remove 'Max Audit Logs duration' from Security section in Config
2024-09-23 16:07:46 +02:00
Adolfo Gómez García
58b845efd2
Fixed tests
2024-09-23 16:07:38 +02:00
Adolfo Gómez García
27d8432d6d
Refactor OAuth2Test to include code challenge verification and state value retrieval
...
Refactor the OAuth2Authenticator class in the authenticator.py file to use the cache.pop() method instead of cache.get() and cache.remove()
2024-09-20 00:14:38 +02:00
Adolfo Gómez García
55f3a697ca
Refactor pyrightconfig.json to include src/**/*.py and add stubPath for enterprise/stubs
...
Working on oauth2 tests
2024-09-19 22:21:57 +02:00
Adolfo Gómez García
6ce5cbe10e
Some improvements to Authentication limitation by network (Extended to REST api and whatever uses authenticator)
2024-09-19 19:32:42 +02:00
Adolfo Gómez García
fc671f2a7a
Now the IP is checked always on authenticate to allow login
2024-09-19 19:03:29 +02:00
Adolfo Gómez García
ec52e0a16f
Removing old legacy nonsese code froma auth (internal authentication is a nonsense...)
2024-09-19 18:41:34 +02:00
Adolfo Gómez García
1d5cd65858
Refactor authentication event logging to use service pool instead of deployed service
...
Fixing up oauth to use secure sessions
2024-09-19 13:02:40 +02:00
Adolfo Gómez García
95b79f6af1
Renamed test and fixed a warning to debug log on ui
2024-09-18 22:36:27 +02:00
Adolfo Gómez García
50449c79f2
Refactor OAuth2Authenticator to use ResponseType alias and handle logout URL in test_code_flow.py
2024-09-18 22:18:42 +02:00
Adolfo Gómez García
3fbd033964
Refactor OAuth2Authenticator to add support for logout URL in test_code_flow.py
2024-09-18 22:11:37 +02:00
Adolfo Gómez García
4d9ce8b11d
Refactor OAuth2Authenticator to handle different callback scenarios in test_code_flow.py
2024-09-18 22:10:21 +02:00
Adolfo Gómez García
8e51026336
Refactor OAuth2Authenticator to handle logout URL and store token on session
2024-09-18 22:09:51 +02:00
Adolfo Gómez García
fcac2d4d23
Refactor Cache class to add support for removing cached items
...
The Cache class in cache.py has been refactored to include a new method, `pop()`, which removes a stored cached item and returns it. This method takes a key as input and removes the corresponding item from the cache. If the item is not found, it returns a default value.
This change enhances the functionality of the Cache class by providing a convenient way to remove cached items when needed.
Refactor cache.py to improve cache management
2024-09-18 22:09:12 +02:00
Adolfo Gómez García
c6d9dac602
Adding support for oauth2 authenticator tests
2024-09-18 18:57:56 +02:00
Adolfo Gómez García
ac72b88554
Refactor authorize.py to ignore type checking
2024-09-18 18:57:35 +02:00
Adolfo Gómez García
e4a49ed763
Refactor OAuth2Authenticator to handle missing redirection endpoint and request object
2024-09-18 18:57:21 +02:00
Adolfo Gómez García
2cb262a6db
Refactor security key and secret sizes, and added support for generating public/private pem keys and public/private keys for openssh
2024-09-18 18:57:05 +02:00
Adolfo Gómez García
72e2204c3e
Refactor to use snake_case naming convention and taken away paramiko dependencie (Not needed, because we already use cryptography module)
2024-09-18 18:56:06 +02:00
Adolfo Gómez García
2e541c6cbf
Refactor user_interface.py for improved code readability and maintainability
2024-09-17 18:31:31 +02:00
Adolfo Gómez García
aaeed2d24c
Fixed tag processing flow... was a mess :S
2024-09-17 18:27:48 +02:00
Adolfo Gómez García
7365364b36
fixed import models
2024-09-17 17:05:52 +02:00
Adolfo Gómez García
e9c6b117b8
Refactor authentication URLs to use enum values
2024-09-17 17:05:25 +02:00
Adolfo Gómez García
b6a8892a63
Removed nonvalid links
2024-09-17 03:08:14 +02:00
Adolfo Gómez García
27f950e2b6
Several minor fixes
...
- Error exception show fix
- Oauth2 tokeninfo fix
- Extracted common fields from ldap, etc.. to fields
- Removed "rereading" tag from main.py, nonsense...
2024-09-17 02:47:34 +02:00
Adolfo Gómez García
735a447334
Updating icons
2024-09-16 19:04:08 +02:00
Adolfo Gómez García
c7666bb4f2
Refactor authentication logging to include error flag
2024-09-16 16:22:42 +02:00
Adolfo Gómez García
c67eee8b73
Refactor pickle imports to use pickletools.optimize
2024-09-13 19:50:10 +02:00
Adolfo Gómez García
33508e0ba0
Refactor variable names in Authenticator class
2024-09-13 19:04:13 +02:00
Adolfo Gómez García
3bbf9ec99a
Refactor deferred deletion worker imports
2024-09-13 00:01:08 +02:00
Adolfo Gómez García
a170596f1d
Improved some user service logs
2024-09-12 21:07:43 +02:00
Adolfo Gómez García
ba78eb7f33
Fixed Rest Userservice to honor "cache" or "assigned" on deletion
2024-09-12 17:59:35 +02:00
Adolfo Gómez García
0524a1bc78
some minor refactoring of userservice names
2024-09-11 17:39:35 +02:00
Adolfo Gómez García
efc4244367
Update HTML5RDPTransport drive name configuration to allow reading from settings file GUACAMOLE_DRIVE_NAME
2024-09-11 16:18:33 +02:00
Adolfo Gómez García
a61514cd3d
Update translations
2024-09-11 15:47:56 +02:00
Adolfo Gómez García
e0fdd8878a
Upgraded user interfaces
2024-09-11 03:42:15 +02:00
Adolfo Gómez García
ab1e807f36
Added tests for validate initialization by ip also
2024-09-10 09:57:05 +02:00
Adolfo Gómez García
4c755f548e
Fixed cache decorator for functions without arguments and fixed server registration certification validation to allow empty certificate
2024-09-10 03:45:52 +02:00
Adolfo Gómez García
b0ffdb5492
Minor aclarations for ActorV3
2024-09-10 03:25:16 +02:00
Adolfo Gómez García
0c6afef707
Refactor code to allow optional prefix in the cached decorator, and improved cache selector for better avoidande of cache collisions
2024-09-10 03:00:11 +02:00
Adolfo Gómez García
a3868190a1
Refactor SAMLAuthenticator to always generate HTTPS URLs
2024-09-09 17:24:38 +02:00
Adolfo Gómez García
6544f194db
Minor fixes and finished actor_initialization implementation
...
Improved deferred deletion to, in process_to_stop, check must_stop_before_deletion also
2024-09-09 00:44:49 +02:00
Adolfo Gómez García
b01cd25648
Refactor code to remove unused import and fix formatting in SAML authentication module
2024-09-08 21:45:31 +02:00
Adolfo Gómez García
320e97b85d
Refactor code to use validate_certificate instead of validate_server_certificate in server registration
2024-09-08 21:45:03 +02:00
Adolfo Gómez García
6a0244e83d
Refactor code to remove unused imports and fix formatting
2024-09-07 23:47:56 +02:00
Adolfo Gómez García
3f8797f4d0
Refacotiriced actor_data return value, and added "actor_initialization". Also normalized the list of ids, so all methods use same mechanincs to obtain it
2024-09-07 21:12:11 +02:00
Adolfo Gómez García
e42e3e4fbd
Refactor code to update client version check
2024-09-06 17:09:34 +02:00
Adolfo Gómez García
1e028d5fdc
Refactor code to initialize modules in uds/mfas, uds/notifiers, uds/osmanagers, uds/services, and uds/transports packages
2024-09-06 04:15:59 +02:00
Adolfo Gómez García
6248ac69af
Refactor code to generate ServiceInfo and some minor fixes
2024-09-06 04:06:51 +02:00
Adolfo Gómez García
c794b2befa
Fixed external url lauchern
2024-09-05 19:29:59 +02:00
Adolfo Gómez García
01c41704a9
Fixed default retries to 1 day (failures) and state checks (lock on an single state) to 3 hours...
2024-09-04 22:36:59 +02:00
Adolfo Gómez García
e90099bcac
Added "is_deleted" to proxmox
2024-09-04 22:24:11 +02:00
Adolfo Gómez García
8e5418d792
chore: Update logger level in dispatcher.py
2024-09-04 19:41:08 +02:00
Adolfo Gómez García
20496327bb
Fixed OSManager process unused machine
2024-09-04 18:51:18 +02:00
Adolfo Gómez García
ba0dd1f46a
chore: Added capacity to put_back_to_cache to all Dynamic services
2024-09-03 23:36:55 +02:00
Adolfo Gómez García
a47e5b2d93
Updated admin interface
2024-09-03 20:28:20 +02:00
Adolfo Gómez García
722cfae7ae
fixed stats for use on returning back service to cache.
2024-09-03 19:26:14 +02:00
Adolfo Gómez García
f836bbf73a
chore: Fix assigned value decrement in UserServiceManager
2024-09-02 23:04:47 +02:00
Adolfo Gómez García
aab94bffbc
Adding tests for userservice manager
2024-09-02 23:03:55 +02:00
Adolfo Gómez García
207a784b8f
Adding support for putting back userservices into cache instead of removing them (if possible)
2024-09-02 19:11:49 +02:00
Adolfo Gómez García
7c2a8168fa
Adding support for returning back to cache
2024-09-02 18:55:12 +02:00
Adolfo Gómez García
0a39939659
Adding support for "return user service to cache" support
2024-09-02 18:04:16 +02:00
Adolfo Gómez García
629d4622a7
feat: Add assertions for task state in test_dynamic_publication and test_dynamic_service
2024-09-01 20:18:41 +02:00
Adolfo Gómez García
457c1e25e8
Fixed dynamic service and done tests for deletion and deletion tests
2024-08-31 20:21:23 +02:00
Adolfo Gómez García
f4ee6e50c0
Fixed missing method for testing publication queue
2024-08-31 19:49:24 +02:00
Adolfo Gómez García
ef4b7e5bac
Adding support for waiting the userservice mark as "deleted" until the deferred deletion is completed, so limits can be correctly respected.
2024-08-30 20:42:20 +02:00
Adolfo Gómez García
3f60e7509e
Moving types of deferred deletion to a better place, and fixing up left-begind not needed behaviors
2024-08-30 19:39:40 +02:00
Adolfo Gómez García
eb62997bde
chore: Disable bytes type promotions in pyrightconfig.json
2024-08-30 18:58:45 +02:00
Adolfo Gómez García
e19805f081
chore: Move constants and types from deferred deletion
...
Simple update for storage, now using contextmanager instead of an intermediary class for "as dict"
2024-08-30 18:40:32 +02:00
Adolfo Gómez García
bf6e1674d2
Moving constants and types from deferred deletion
2024-08-30 16:26:50 +02:00
Adolfo Gómez García
c69d880c40
Added tests for jobs factory
2024-08-29 18:35:21 +02:00
Adolfo Gómez García
206947cbe3
Moved workers out of uds.core, where in fact it should be...
2024-08-29 17:36:20 +02:00
Adolfo Gómez García
7526132f96
Removed old config vaule and updated user interface
2024-08-29 17:07:21 +02:00
Adolfo Gómez García
1fd5c5b49a
chore: Update user interface field info name. and fixed not respecting "Lazy" translations on choiceitems
2024-08-29 16:39:49 +02:00
Adolfo Gómez García
a4a07be77f
chore: Update LinuxOsADManager type_name to 'Linux Active Directory OS Manager'
2024-08-29 16:14:42 +02:00
Adolfo Gómez García
6d6b8e07d9
chore: Update function names and parameters for OpenNebula storage and template enumeration
2024-08-29 03:59:10 +02:00
Adolfo Gómez García
708a3e22af
chore: Update get_vm_config method to include force parameter from cache decorator
2024-08-23 20:46:49 +02:00
Adolfo Gómez García
022b620edc
chore: Remove unused configuration elements
2024-08-23 20:17:45 +02:00
Adolfo Gómez García
fb83d801b4
chore: Update Config class to include removal of config values
2024-08-23 20:10:21 +02:00
Adolfo Gómez García
40f24fd316
Done proxy client tests and some minor fixes/improvements on Proxmox (such as waiting for template conversion finish)
2024-08-23 04:59:26 +02:00
Adolfo Gómez García
155a74178a
added ellidable to runpython for future migrations squash
2024-08-23 02:12:07 +02:00
Adolfo Gómez García
0001fca79e
chore: Update MAC address handling in network tests for consistency. Upgraded also proxmox client
2024-08-23 02:01:03 +02:00
Adolfo Gómez García
bb448d2876
chore: Update restrain_server function signature to specify return type
2024-08-23 02:00:25 +02:00
Adolfo Gómez García
a568ff9a28
Refactor tunnel transport migrations to include schema_editor parameter
2024-08-23 02:00:07 +02:00
Adolfo Gómez García
ccc1aa66ce
Updated admin interface
2024-08-22 00:23:08 +02:00
Adolfo Gómez García
aba2ea1245
chore: Update communication endpoint method parameter name for consistency
2024-08-21 21:56:47 +02:00
Adolfo Gómez García
338a4d1ecc
Added migration of old net filterring format to new format
2024-08-21 17:13:57 +02:00
Adolfo Gómez García
8aaed4d41e
Refactor VM fixtures to include HA and protection settings
2024-08-21 16:59:59 +02:00
Adolfo Gómez García
6df00254af
chore: Update Transports class to use db_value() method for sorting allowed OS choices
2024-08-21 16:55:02 +02:00
Adolfo Gómez García
2cd6f21c07
Fixed validator of host and port to allow FQDN
2024-08-21 16:33:09 +02:00
Adolfo Gómez García
0d79b90b84
Removed skip_locked for now
2024-08-21 16:32:44 +02:00
Adolfo Gómez García
94a3a791cd
Refactor network tests and update MAC address handling for consistency
2024-08-21 16:32:26 +02:00
Adolfo Gómez García
afa8757264
Refactor ChoiceItem id field to accept both string and integer values
2024-08-21 16:31:57 +02:00
Adolfo Gómez García
fd66a226da
chore: Update ProxmoxClient method name from remove_snapshot to delete_snapshot
...
Added some more tests and fixes
2024-08-20 04:09:54 +02:00
Adolfo Gómez García
4bc3947dc1
chore: Update ProxmoxClient content-type header to use application/x-www-form-urlencoded
2024-08-19 22:56:52 +02:00
Adolfo Gómez García
30fb0d0183
chore: Update Content-Security-Policy to include frame-ancestors 'none' for improved security
2024-08-19 22:56:39 +02:00
Adolfo Gómez García
5ba08e2896
chore: Add support for trusted IP forwarders in authentication and request middleware
2024-08-19 22:56:27 +02:00
Adolfo Gómez García
6f8eb00ad0
Adding more proxmox client tests
2024-08-19 22:56:05 +02:00
Adolfo Gómez García
23f52b363c
chore: Refactor network tests and add IP conversion tests after some minor changes on ip_to_long to ensure covering better testing cases
2024-08-19 12:41:40 +02:00
Adolfo Gómez García
8234becde2
Now, trusted sources is also to identify a valid origin for a X_FORWARDED_FOR...
...
To be tested!
2024-08-19 04:03:24 +02:00
Adolfo Gómez García
01353528dd
Refactor ProxmoxProvider to support API Token authentication
2024-08-16 18:08:34 +02:00
Adolfo Gómez García
b402e2e117
Using first the SERVER_NAME instead of HTTP_HOST for inproved security as suggested by @meetinthemiddle-be. Thanks! ;-)
2024-08-16 16:07:41 +02:00
Adolfo Gómez García
2ec731896f
chore: Update tunnelId to tunnelid in guacamole dispatcher
2024-08-14 12:57:48 +02:00
Adolfo Gómez García
9cc2afdb1a
Updating translations
2024-08-07 20:01:45 +02:00
Adolfo Gómez García
4780c58e6a
Updating translations
2024-08-07 20:00:19 +02:00
Adolfo Gómez García
b41a0a9331
chore: Refactor server token validation to use server_type parameter
2024-08-07 19:53:25 +02:00
Adolfo Gómez García
c04a40a468
chore: Generate random key for tunnel
2024-08-03 02:09:12 +02:00
Adolfo Gómez García
cdb0f110cf
Fixed some actor registration related info
2024-07-25 03:57:49 +02:00
Adolfo Gómez García
25c5c3a4d1
Improved session creation
2024-07-25 00:55:47 +02:00
Adolfo Gómez García
33554dc724
Fixed custom message
2024-07-19 21:25:37 +02:00
Adolfo Gómez García
0e097e3a12
Fixes on crypto typing and refactorized userId on mfas, and added support for using identifier instead of username in RADIUS MFA
2024-07-19 18:07:37 +02:00
Adolfo Gómez García
abedf042da
Fixed implicit project id, and try to get name of project if scoped auth used
2024-07-18 17:50:00 +02:00
Adolfo Gómez García
cfdf622447
chore: Update default timeout value to 8 seconds an added cached validity to openstack auth to avoid multple auths if posssible
2024-07-18 16:39:09 +02:00
Adolfo Gómez García
4fea6e6a3e
added remove duplicates to open stack
2024-07-18 16:15:11 +02:00
Adolfo Gómez García
43d0f3b4d4
Fixed test and added comment on from_dict for server_info
2024-07-17 19:53:26 +02:00
Adolfo Gómez García
7566071270
Cleaned and done openstack client tests
2024-07-17 19:41:52 +02:00
Adolfo Gómez García
9d51963903
Cleaning and fixing up Openstack Client
2024-07-17 18:27:09 +02:00
Adolfo Gómez García
b303ffc858
Adding test for openstack
2024-07-17 01:11:47 +02:00
Adolfo Gómez García
286b7cb09f
Adding Openstack Client tests and fixes to client and provider
2024-07-16 22:58:40 +02:00
Adolfo Gómez García
2a4ccac195
Fixing up openstack client, adding support for Application Credentials
2024-07-16 21:21:58 +02:00
Adolfo Gómez García
773c3b5b50
Fix model detail retrieval error handling
2024-07-15 18:21:25 +02:00
Adolfo Gómez García
c1c922b87b
Removed global stats from cache decorator (not really usefull in fact....)
2024-07-14 14:43:02 +02:00
Adolfo Gómez García
f6843fe11a
Added postgress on sql_datetime
2024-07-12 22:39:18 +02:00
Adolfo Gómez García
31c015cb41
Fixed MFA list not being appended to gui field (Removed by mistake)
2024-07-12 04:20:06 +02:00
Adolfo Gómez García
78352cfe8b
feat: Add type annotations to _ObservableList and _ObservableDict
2024-07-11 22:24:18 +02:00
Adolfo Gómez García
e880bdb228
Ensure that _fields exists on class creation (using __new__)
2024-07-11 21:45:44 +02:00
Adolfo Gómez García
c61e7e5444
Small state translation fix
2024-07-11 11:07:24 +02:00
Adolfo Gómez García
72407449be
Implemented "is_dirty" for Autoserializables, to avoid publication and
2024-07-11 10:58:54 +02:00
Adolfo Gómez García
d974d5904c
More addition for dirty control to Autoserializable
2024-07-11 10:49:49 +02:00
Adolfo Gómez García
8c5e2d6552
Adding support for controlling dirty state for autoserializable.
...
Added support for list fields
2024-07-11 10:26:47 +02:00
Adolfo Gómez García
b0cf8c5ddf
Refactoring code and improved possible use of a "is_dirty".
...
This method is to improve in the future the storage of data (Skipping it).
Curently, no one uses is_dirty (base class always returns True), but there it is in case longs serializations requires some optimization.
2024-07-11 05:55:32 +02:00
Adolfo Gómez García
e4d5bef48a
chore: Remove unused machine method in ProxmoxPublication and update references
2024-07-11 03:46:46 +02:00
Adolfo Gómez García
3016b0845c
Some small cleanups and fixed ServiceNotReadyError
2024-07-10 21:44:21 +02:00
Adolfo Gómez García
930c22d8fa
Fixed ReadyState on UserServiceNotReady error
2024-07-10 15:54:35 +02:00
Adolfo Gómez García
8778fa3314
Updated frontentds
2024-07-10 04:51:48 +02:00
Adolfo Gómez García
aa25ba9575
Added report method to allow debuging execution queue
2024-07-09 22:38:14 +02:00
Adolfo Gómez García
1e64b957a1
Moved ExecutionTimer to be used in other places
2024-07-09 22:30:08 +02:00
Adolfo Gómez García
a25184af52
Incorpored a max delay_rate for deletion
2024-07-09 22:19:07 +02:00
Adolfo Gómez García
1a263bf668
Added next execution factor correction based on how long it takes to execute operations on the server...
2024-07-09 22:16:07 +02:00
Adolfo Gómez García
4f6f93bba3
Updated from "last_check" to "next_check" deferred deletion info, so it's more versatile
2024-07-09 21:46:21 +02:00
Adolfo Gómez García
b1ee7656c8
Improving deferred deletion performance
2024-07-09 18:05:58 +02:00
Adolfo Gómez García
ad9d3532ee
Some improvements on dynamic tests to cover previously bogus unseriralization of the queue
2024-07-09 03:54:29 +02:00
Adolfo Gómez García
6a4c9a7454
Fixed tests for proxmox and due to changes, tests for deferred deleter
2024-07-08 21:35:03 +02:00
Adolfo Gómez García
84e24fd3ae
Fixed autoserializable test with new cast
2024-07-08 20:35:28 +02:00