WIP new WebAdmin: event actions

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-01-31 20:49:25 +01:00
parent b18b37042d
commit c85601146d
17 changed files with 1585 additions and 1188 deletions

View File

@@ -48,6 +48,7 @@
"add_user": "Add user",
"update_user": "Update user",
"template_user": "User template",
"template_admin": "Admin template",
"add_group": "Add group",
"update_group": "Update group",
"add_folder": "Add virtual folder",
@@ -60,7 +61,9 @@
"add_admin": "Add admin",
"update_admin": "Update admin",
"add_ip_list": "Add IP list entry",
"update_ip_list": "Update IP list entry"
"update_ip_list": "Update IP list entry",
"add_action": "Add action",
"update_action": "Update action"
},
"setup": {
"desc": "To start using SFTPGo you need to create an administrator user",
@@ -243,7 +246,13 @@
"domain": "Domain",
"test": "Test",
"get": "Get",
"export": "Export"
"export": "Export",
"value": "Value",
"method": "Method",
"timeout": "Timeout",
"env_vars": "Environment variables",
"hours": "Hours",
"paths": "Paths"
},
"fs": {
"view_file": "View file \"{{- path}}\"",
@@ -401,7 +410,6 @@
"scope_write": "Write",
"scope_read_write": "Read/Write",
"scope_help": "For scope \"Write\" and \"Read/Write\" you have to define a single path and it must be a directory",
"paths": "Paths",
"path_help": "file or directory path, i.e. /dir or /dir/file.txt",
"password_help": "If set the share will be password-protected",
"max_tokens": "Max tokens",
@@ -877,5 +885,123 @@
"role": "role",
"ip_list_entry": "IP list entry",
"configs": "Configurations"
},
"actions": {
"view_manage": "View and manage rule actions for events",
"http_url": "Server URL",
"http_url_help": "i.e https://host:port/path. Placeholders are supported within the URL path",
"http_url_required": "URL is required",
"http_url_invalid": "The URL is invalid, http and https schemes are supported",
"http_part_name_required": "HTTP part name is required",
"http_part_body_required": "HTTP part body is required if no file path is provided",
"http_multipart_body_error": "Multipart requests require no body. The request body is build from the specified parts",
"http_multipart_ctype_error": "Content-Type is automatically set for multipart requests",
"path_duplicated": "Path duplicated",
"command_required": "Command is required",
"command_invalid": "Invalid command, it must be an absolute path",
"email_recipient_required": "At least one email recipient is required",
"email_subject_required": "Email subject is required",
"email_body_required": "Email body is required",
"retention_directory_required": "At least one directory to check is required",
"path_required": "At least a path is required",
"source_dest_different": "Source and target path must be different",
"root_not_allowed": "The root path (/) is not allowed",
"archive_name_required": "Compressed archive name is required",
"idp_template_required": "A user or admin template is required",
"threshold": "Threshold",
"threshold_help": "An email notification will be generated for users whose password expires in a number of days less than or equal to this threshold",
"idp_mode_add_update": "Create or update",
"idp_mode_add": "Create if it doesn't exist",
"template_user_help": "Template for SFTPGo users in JSON format. Placeholders are supported",
"template_admin_help": "Template for SFTPGo admins in JSON format. Placeholders are supported",
"placeholders_help": "Placeholders are supported",
"http_headers": "HTTP headers",
"query_parameters": "Query string parameters",
"http_timeout_help": "Ignored for multipart requests with files as attachments",
"body": "Body",
"http_body_help": "Placeholders are supported. Ignored for HTTP get requested. Leave empty for multipart requests",
"multipart_body": "Multipart body",
"multipart_body_help": "HTTP Multipart requests allow to combine one or more sets of data into a single body. For each part, you can set a file path or a body as text. Placeholders are supported in file path, body, header values",
"http_part_name": "Part name",
"http_part_file": "File path",
"http_part_headers": "Additional part headers one per line as \"key: value\"",
"command_help": "Absolute path of the command to execute",
"command_args": "Arguments",
"command_args_help": "Comma separated command arguments. Placeholders are supported",
"command_env_vars_help": "Placeholders are supported in values. Setting the name to \"$\" without quotes means retrieving the value from the environment",
"email_recipients": "To",
"email_recipients_help": "Comma separated recipients. Placeholders are supported",
"email_bcc": "Bcc",
"email_bcc_help": "Comma separated Bcc addresses. Placeholders are supported",
"email_subject": "Subject",
"content_type": "Content Type",
"attachments": "Attachments",
"attachments_help": "Comma separated paths to attach. Placeholders are supported. The total size is limited to 10 MB",
"data_retention": "Data retention",
"data_retention_help": "Set the data retention, as hours, per path. Retention applies recursively. Setting 0 as retention means excluding the specified path. \"Ignore user permissions\" defines whether to delete files even if the user does not have the \"delete\" permission, by default files will be skipped if the user does not have the \"delete\" permission",
"delete_empty_dirs": "Delete empty dirs",
"ignore_user_perms": "Ignore user permissions",
"fs_action": "Filesystem action",
"paths_src_dst_help": "Paths as seen by SFTPGo users. Placeholders are supported. The required permissions are granted automatically",
"source_path": "Source",
"target_path": "Target",
"paths_help": "Comma separated paths as seen by SFTPGo users. Placeholders are supported. The required permissions are granted automatically",
"archive_path": "Archive path",
"archive_path_help": "Full path, as seen by SFTPGo users, to the zip archive to create. Placeholders are supported. If the specified file already exists, it is overwritten",
"placeholders_modal_title": "Supported placeholders",
"types": {
"http": "HTTP",
"email": "Email",
"backup": "Backup",
"user_quota_reset": "User quota reset",
"folder_quota_reset": "Folder quota reset",
"transfer_quota_reset": "Transfer quota reset",
"data_retention_check": "Data retention check",
"metadata_check": "Metadata check",
"filesystem": "Filesystem",
"password_expiration_check": "Password expiration check",
"user_expiration_check": "User expiration check",
"idp_check": "Identity Provider account check",
"command": "Command"
},
"fs_types": {
"rename": "Rename",
"delete": "Delete",
"path_exists": "Paths exis",
"compress": "Compress",
"copy": "Copy",
"create_dirs": "Create directories"
},
"placeholders_modal": {
"name": "Username, virtual folder name, admin username for provider events, domain name for TLS certificate events",
"event": "Event name, for example \"upload\", \"download\" for filesystem events or \"add\", \"update\" for provider events",
"status": "Status for filesystem events. 1 means no error, 2 means a generic error occurred, 3 means quota exceeded error",
"status_string": "Status as string. Possible values \"OK\", \"KO\"",
"error_string": "Error details. Replaced with an empty string if no errors occur",
"virtual_path": "Path seen by SFTPGo users, for example \"/adir/afile.txt\"",
"virtual_dir_path": "Parent directory for \"VirtualPath\", for example if \"VirtualPath\" is \"/adir/afile.txt\", \"VirtualDirPath\" is \"/adir\"",
"fs_path": "Full filesystem path, for example \"/user/homedir/adir/afile.txt\" or \"C:/data/user/homedir/adir/afile.txt\" on Windows",
"ext": "File extension, for example \".txt\" if the filename is \"afile.txt\"",
"object_name": "File/directory name, for example \"afile.txt\" or provider object name",
"object_type": "Object type for provider events: \"user\", \"group\", \"admin\", etc",
"virtual_target_path": "Virtual target path for rename and copy operations",
"virtual_target_dir_path": "Parent directory for \"VirtualTargetPath\"",
"target_name": "Target object name for rename and copy operations",
"fs_target_path": "Full filesystem target path for rename and copy operations",
"file_size": "File size (bytes)",
"elapsed": "Elapsed time as milliseconds for filesystem events",
"protocol": "Protocol, for example \"SFTP\", \"FTP\"",
"ip": "Client IP address",
"role": "User or admin role",
"timestamp": "Event timestamp as nanoseconds since epoch",
"email": "For filesystem events, this is the email associated with the user performing the action. For the provider events, this is the email associated with the affected user or admin. Blank in all other cases",
"object_data": "Provider object data serialized as JSON with sensitive fields removed",
"object_data_string": "Provider object data as JSON escaped string with sensitive fields removed",
"retention_reports": "Data retention reports as zip compressed CSV files. Supported as email attachment, file path for multipart HTTP request and as single parameter for HTTP requests body",
"idp_field": "Identity Provider custom fields containing a string",
"metadata": "Cloud storage metadata for the downloaded file serialized as JSON",
"metadata_string": "Cloud storage metadata for the downloaded file as JSON escaped string",
"uid": "Unique ID"
}
}
}