Commit Graph

87 Commits (df210386dd10b06d5cde5d78091a1608f11574a4)

Author SHA1 Message Date
grossmj c8ed96d91b Add isolate and unisolate endpoints. Ref https://github.com/GNS3/gns3-gui/issues/3190
3 years ago
grossmj d606553e20 Allow images to be stored in subdirs and used by templates.
3 years ago
grossmj 332fa47b50 Option to prune images when deleting template.
3 years ago
grossmj bf9a3aee20 Associate images when creating or updating a template.
3 years ago
grossmj 4d9e4e1059 Add prune images endpoint.
3 years ago
grossmj 07d4892faf Check if user has the right to add a permission
3 years ago
grossmj 4c6135fe88 Add /permissions/prune to delete orphaned permissions
3 years ago
grossmj 9df586d5d5 Check a permission matches an existing route before it is allowed to be created.
3 years ago
Jeremy Grossmann f13b4e89b7
Merge branch '3.0' into image-management-refactoring
3 years ago
grossmj 6dd0f4d4d3 Allow logged in user to change some of its data. Administrators can lock users using the `is_active` field.
3 years ago
grossmj 515bd50261 Start refactoring for images management
3 years ago
grossmj 4e33d29af8 Change RBAC field names from builtin to is_builtin
3 years ago
grossmj d65b49acaa Add user permissions + RBAC tests.
3 years ago
grossmj fbc47598d9 Basic functional RBAC support.
3 years ago
grossmj 6d4da98b8e Base API and tables for RBAC support.
3 years ago
grossmj 2bf16f1e5f Change method to prevent forbidden directory traversal. Ref #1894
3 years ago
grossmj f3d81fa450 Clean files and catch file path escape. Ref #1894
3 years ago
grossmj 8810249d36 Add user groups support.
3 years ago
grossmj 10164e262d Enable SQL foreign key support for SQLite
3 years ago
grossmj ad7d8e2e7d Fix tests.
3 years ago
grossmj a02aede1b0 Use uuid5 to create new compute_id. Fixes #1641 #1887
3 years ago
grossmj 0465cb87f6 Protect the API and add alternative authentication endpoint.
3 years ago
grossmj e28452f09a Secure users API and handle manual password recovery.
3 years ago
grossmj c03226e368 Add default super admin account in controller db.
3 years ago
grossmj 6b8ce8219c Fix tests.
3 years ago
grossmj c59fc375f2 Remove traceng code.
3 years ago
grossmj 1b5a5de4bc Generate new config for each test. Fixes tests.
3 years ago
grossmj 30ebae207f Use Pydantic to validate the server config file.
3 years ago
grossmj 170e83e589 Fix tests and update requirements
3 years ago
grossmj 566e326b57 Save computes to database
3 years ago
grossmj 0fea3f969e Use aiosqlite and add service for templates
3 years ago
grossmj d730c591b3 Refactor template management to use database.
3 years ago
grossmj 58c1b01439 Add default JWT secret key and fix tests.
4 years ago
grossmj bde706d19a Generate JWT secret key if none is configured in the config file.
4 years ago
grossmj d47dcb0d6f User authentication with tests.
4 years ago
grossmj bf7cf862af Refactor tests and start work on database integration.
4 years ago
grossmj c043830e3f Move endpoints to routes & preparations to use a database.
4 years ago