aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/workspaces_cmd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix quoted command lines arguments (#306)Dan Engelbrecht2025-03-121-46/+45
| | | Handling of quotes and quotes with leading backslash for command line parsing - UE-231677
* strip leading path separator when creating workspace shares (#285)Dan Engelbrecht2025-02-241-1/+15
|
* handle special backslash followed by quote for paths (#279)Dan Engelbrecht2025-01-221-4/+16
|
* fix trailing path separator in workspace commands (#265)Dan Engelbrecht2024-12-131-0/+15
|
* workspace share security (#192)Dan Engelbrecht2024-10-231-89/+327
| | | | | | | - Improvement: Reworked workspace shares to be more secure. Workspaces and workspace shares can only be created using the `zen workspace` command, the http endpoint is disabled unless zenserver is started with the `--workspaces-allow-changes` option enabled. - Each workspace are now configured via a `zenworkspaceconfig.json` file in the root of each workspace - A workspace can allow shares to be created via the http interface if the workspace is created with the `--allow-share-create-from-http` option enabled - A new http endpoint at `/ws` - issuing a `Get` operation will get you a list of workspaces - A new http endpoint at `/ws/refresh` - issuing a `Get` will make zenserver scan for edits in workspaces and workspace shares
* workspace share path hardening (#95)Dan Engelbrecht2024-06-141-2/+2
| | | | | | * resolve relative paths for root path * block share paths that go outside of root path * fix test using invalid share_path * validate that root path is absolute
* workspace share aliases (#91)Dan Engelbrecht2024-06-041-40/+89
| | | | | | | - Add `zen workspace-share` `--root-path` option - the root local file path of the workspace - if given it will automatically create the workspace before creating the share. If `--workspace` is omitted, an id will be generated from the `--root-path` parameter - Add `/ws/share/{alias}/` endpoint - a shortcut to `/ws/{workspace_id}/{share_id}/` based endpoints using the alias for a workspace share - Add `--alias` option to replace `--workspace` and `--share` options for `workspace-share` zen commands - Rename `zen workspace create` `folder` option to `root-path` - Rename `zen workspace create` `folder` option to `share-path`
* workspace shares (#84)Dan Engelbrecht2024-05-291-0/+523
Feature: New 'workspaces' service which allows a user to share a local folder via zenserver. A workspace can have mulitple workspace shares and they provie an HTTP API that is compatible with the project oplog HTTP API. Workspaces and shares are preserved between runs. Workspaces feature is disabled by default - enable with --workspaces-enabled option when launching zenserver.