Wiktor 8071a21d71 feat(api): add secure command execution API and HTTP client fallback
- Introduce /api/command/exec endpoint in webui-server.sh for executing a limited set of safe shell commands with JSON response.
- Implement security checks to restrict allowed commands and return appropriate HTTP status codes.
- Add HTTPClient in webroot/js/api.js to communicate with backend API, including execCommand method.
- Enhance ksu mock object to try HTTPClient execCommand first, then fallback to mock implementation.
- Add accessibility improvements in CSS with skip-link styles.

This enables secure remote command execution via the web UI and improves development mode API simulation.

Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
2025-07-21 23:39:12 +00:00
2025-07-20 17:27:10 +02:00
Description
No description provided
Readme 1 MiB
Languages
Shell 47.6%
JavaScript 40.9%
CSS 6.7%
HTML 4.3%
PowerShell 0.3%
Other 0.2%