Commit Graph

106 Commits

Author SHA1 Message Date
Wilman Yesid Farfan Diaz
38b540a2ea feat: implement Windows named pipe IPC server for agent-tray communication
All checks were successful
Build, MSI & Deploy / Build Docker images (push) Successful in 10m52s
Build, MSI & Deploy / Build Edge Agent Binaries (push) Successful in 8s
Build, MSI & Deploy / Deploy to Dokploy (push) Successful in 0s
Build, MSI & Deploy / Build Edge Agent MSI (push) Successful in 40s
Build, MSI & Deploy / Send notification (push) Successful in 0s
2026-07-12 18:28:01 -05:00
Wilman Yesid Farfan Diaz
eb2dcbe4f8 feat: initialize full microservices architecture including backend-api, edge-agent, infrastructure backup, and supporting modules
Some checks failed
Build, MSI & Deploy / Build Docker images (push) Failing after 1m46s
Build, MSI & Deploy / Deploy to Dokploy (push) Has been skipped
Build, MSI & Deploy / Build Edge Agent Binaries (push) Failing after 1m11s
Build, MSI & Deploy / Build Edge Agent MSI (push) Has been skipped
Build, MSI & Deploy / Send notification (push) Successful in 0s
2026-07-12 18:22:02 -05:00
Wilman Yesid Farfan Diaz
351f7e23d0 Actualizacion de versi[on al MSI del Edge Agent, manejo en el Cargo.toml del edge agent. 2026-07-11 23:04:10 -05:00
Wilman Yesid Farfan Diaz
fd3809ab1d fix(installer): traducir instalador a español, corregir tildes y optimizar contraste de fondos
All checks were successful
Build, MSI & Deploy / Build Docker images (push) Successful in 4m47s
Build, MSI & Deploy / Build Edge Agent Binaries (push) Successful in 7s
Build, MSI & Deploy / Deploy to Dokploy (push) Successful in 1s
Build, MSI & Deploy / Build Edge Agent MSI (push) Successful in 34s
Build, MSI & Deploy / Send notification (push) Successful in 0s
2026-07-11 22:21:46 -05:00
Wilman Yesid Farfan Diaz
f862aa3d20 feat: add WiX installer configuration for Edge Agent and Tray services
Some checks failed
Build, MSI & Deploy / Build Docker images (push) Successful in 4m48s
Build, MSI & Deploy / Build Edge Agent Binaries (push) Successful in 9s
Build, MSI & Deploy / Deploy to Dokploy (push) Successful in 0s
Build, MSI & Deploy / Build Edge Agent MSI (push) Failing after 30s
Build, MSI & Deploy / Send notification (push) Successful in 1s
2026-07-11 21:54:00 -05:00
Wilman Yesid Farfan Diaz
78b56807b0 fix(ci): secuenciar build y push de tags para evitar perdida de etiquetas
Some checks failed
Build, MSI & Deploy / Build Docker images (push) Failing after 6m30s
Build, MSI & Deploy / Deploy to Dokploy (push) Has been skipped
Build, MSI & Deploy / Build Edge Agent Binaries (push) Failing after 1s
Build, MSI & Deploy / Send notification (push) Successful in 0s
Build, MSI & Deploy / Build Edge Agent MSI (push) Has been skipped
2026-07-11 19:57:24 -05:00
Wilman Yesid Farfan Diaz
d3d1a6df01 feat: implement core backend-api, events-relay, telemetry-ingestor, and build-orchestrator services with prometheus monitoring infrastructure 2026-07-07 23:06:27 -05:00
3fe7517cc2 refactor: remove unused WiX utility namespace and service auto-restart configuration 2026-07-07 00:15:57 -05:00
7b9efe6741 refactor: encapsulate Windows named pipe creation in a synchronous function to avoid Send bound issues in async tasks 2026-07-06 23:29:23 -05:00
b88ee8f6ce fix: define SECURITY_DESCRIPTOR_REVISION constant to support newer windows-sys versions 2026-07-06 23:25:50 -05:00
2692e3c4c5 chore: update tray-icon and windows-sys dependencies in edge-agent 2026-07-06 22:49:29 -05:00
09fcf5c21d refactor: improve edge-tray UI responsiveness, modernize IPC pipe creation, and update Windows dependencies 2026-07-06 21:52:18 -05:00
24f2b2fa84 chore: update Dockerfile to copy all icon files instead of a single specific one 2026-07-06 20:30:16 -05:00
40954b59de feat: add application icon and implement automatic process termination for edge-tray during installation 2026-07-06 01:48:24 -05:00
6fd5b19fca feat: implement real-time OTA update progress reporting and tray icon status indicators 2026-07-06 01:23:37 -05:00
c7d2774159 refactor: move ipc_protocol module declaration and optimize frontend Docker multi-stage build cache 2026-07-05 23:56:06 -05:00
7cdc8ace05 feat: add crash reporting via MQTT, implement periodic data store-and-forward drainage, and enforce periodic signal publication in deadband filter to comply with ANH 0651 regulations. 2026-07-05 23:12:35 -05:00
henryor
73db1f93ce fix: stabilize post-merge validation 2026-06-29 10:34:10 -05:00
henryor
c3668d047f feat(telemetry): persist scada mqtt by resolved device 2026-06-27 08:46:03 -05:00
Wilman Yesid Farfan Diaz
959c89b5d3 fix(edge): resolve 0xc0000409 crash and configure auto-restart 2026-06-26 21:58:48 -05:00
Wilman Yesid Farfan Diaz
e661caa514 feat: add multi-stage Dockerfiles for centralized service building and deployment 2026-06-26 21:16:16 -05:00
Wilman Yesid Farfan Diaz
d9daa6e6e4 feat: implement multi-stage Docker builds using cargo-chef for all backend services and optimize frontend build caching 2026-06-26 21:03:55 -05:00
henryor
d70efd6b5e fix(mqtt): support larger deploy payloads 2026-06-25 18:08:56 -05:00
Wilman Yesid Farfan Diaz
7cbae7d3cc refactor: optimize Docker build caching and update error logging in credential store 2026-06-19 11:20:04 -05:00
Wilman Yesid Farfan Diaz
875a5a1106 feat: consolidate frontend services into a unified pnpm workspace and build pipeline with optimized Docker configuration 2026-06-19 08:47:21 -05:00
Wilman Yesid Farfan Diaz
9635ec379b refactor: consolidate Docker build stages and optimize cross-compilation pipeline for Windows/Linux targets 2026-06-19 01:38:01 -05:00
Wilman Yesid Farfan Diaz
43307fea12 chore: enable locked sharing for Docker cargo registry and git cache mounts 2026-06-19 00:17:48 -05:00
Wilman Yesid Farfan Diaz
3046823bb4 feat: implement automatic Linux binary upload to MinIO in build-orchestrator and optimize Docker build caching and ignore patterns. 2026-06-19 00:14:32 -05:00
henryor
11f29f9248 chore(rust): normalize workspace formatting 2026-06-18 23:03:50 -05:00
Wilman Yesid Farfan Diaz
1571d2fa69 chore: update entrypoint and build scripts to use environment variables for configuration management 2026-06-17 11:32:36 -05:00
Wilman Yesid Farfan Diaz
7bb5cd658a feat: implement cargo-chef multi-stage builds for edge-agent and update Docker ignore patterns 2026-06-17 08:05:17 -05:00
Wilman Yesid Farfan Diaz
87a4d0427e feat: add WiX installer configuration and Linux build script for Windows MSI generation 2026-06-16 22:48:47 -05:00
Wilman Yesid Farfan Diaz
99e8dec729 feat: implement json-generator service and edge-agent, and optimize Docker unified build process 2026-06-16 21:41:50 -05:00
Wilman Yesid Farfan Diaz
d3ec5f8645 feat: implement multi-stage Dockerfiles for individual services using cargo-chef and update unified build configuration 2026-06-16 20:57:47 -05:00
Wilman Yesid Farfan Diaz
f2ed516748 feat: add multi-stage Dockerfile for cross-compiling and MSI generation of edge-agent 2026-06-16 20:24:56 -05:00
Wilman Yesid Farfan Diaz
b1d60a5f9a feat: implement multi-stage Docker builder for Windows/Linux and add provisioning configuration loader 2026-06-16 20:22:41 -05:00
Wilman Yesid Farfan Diaz
99ed6a88a1 feat: implement multi-stage Docker builder for cross-compilation of edge-agent binaries and MSI generation 2026-06-16 19:30:34 -05:00
Wilman Yesid Farfan Diaz
257976167a feat: add multi-stage Dockerfile for cross-compiling and building edge-agent MSI installer 2026-06-16 19:04:55 -05:00
Wilman Yesid Farfan Diaz
74e7832aef feat: implement core edge-agent services, backend handlers for protocol imports and reports, and frontend admin modules 2026-06-16 18:35:11 -05:00
Wilman Yesid Farfan Diaz
073d80dc79 feat: implement optimized multi-stage MSI builder for edge-agent and simplify unified build pipeline 2026-06-16 13:45:22 -05:00
Wilman Yesid Farfan Diaz
cc5b308dfb feat: add multi-stage Docker builder for unified workspace services and Windows edge-agent cross-compilation 2026-06-16 13:44:40 -05:00
Wilman Yesid Farfan Diaz
4a7aa94cb9 feat: implement asymmetric provisioning flow for edge agent and add installer worker for orchestration 2026-06-16 10:11:38 -05:00
Wilman Yesid Farfan Diaz
4801101d4f feat: add agent download token management and implement edge project CRUD handlers 2026-06-15 20:07:40 -05:00
Wilman Yesid Farfan Diaz
be7f0a8da4 feat: implement modular multi-protocol data collector agent with support for Modbus, S7, OPC-UA, MQTT Sparkplug B, and SQL drivers. 2026-06-14 19:37:42 -05:00
henryor
b08de6c5fc fix(edge): restore MSI builder build 2026-05-14 08:56:48 -05:00
Wilman Yesid Farfan Diaz
027f983755 fix(docker): add perl + cmake for vendored OpenSSL build
OpenSSL's Configure script is written in Perl — without it vendored
openssl-sys fails with 'perl: not found' in debian:bookworm-slim images.

Affected images: build-orchestrator, edge-agent/Dockerfile.builder (cacher + builder stages)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 21:52:34 -05:00
Wilman Yesid Farfan Diaz
1e33792a90 fix(edge): vendored OpenSSL for opcua-support — no external OpenSSL required
- openssl = { version = '0.10', features = ['vendored'] } compiles OpenSSL
  from source as part of the Rust build; no OPENSSL_DIR or vcpkg needed
- opcua-support feature now activates both dep:opcua + dep:openssl (vendored)
- Dockerfile.builder: add cmake to cacher + builder stages (required for vendored build)
- Dockerfile.builder: set OPENSSL_NO_ASM=1 to avoid nasm dependency in cross-compile
- Dockerfile.builder: add --features edge-agent/opcua-support to production cargo builds
- build-orchestrator/Dockerfile: add cmake for runtime agent builds

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 21:50:22 -05:00
Wilman Yesid Farfan Diaz
93f6447171 refactor(edge): MQTT-only agent — remove HTTP polling, embed OTA payload in command
- Remove run_updater() periodic HTTP polling loop entirely
- Remove check_and_perform_update() and ServerSettings (api_url/api_token)
- AgentCommand::OtaUpdate now carries download_url + sha256 + asset_type
- Backend trigger_ota_update generates download URL + fetches SHA-256 before publishing MQTT
- Agent makes ONE outbound HTTPS GET only when OTA is commanded (no stored credentials)
- LogReporter::new cleaned up (removed unused api_url/api_token params)
- UpdaterSettings simplified: only prefer_msi + verify_signature remain
- Existing agent.toml with [server] or [updater] enabled keys ignored safely (serde)

Security model: MQTT is the only persistent channel. Binary download is a
single outbound HTTPS request using a temporary URL embedded in the MQTT command.
All traffic flows: Agent → MQTT broker (persistent) + Agent → Frontend/Nginx → Backend → MinIO (one-shot on OTA).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 21:41:20 -05:00
Wilman Yesid Farfan Diaz
1346e1ab0a feat(edge): OPC UA node scanner (v0.3.0)
- shared-lib: Add OpcUaScannedNode and OpcUaScanResult types to mqtt_messages
- edge-agent: Bump version 0.2.0 → 0.3.0
- edge-agent: Add optional opcua dep + opcua-support feature flag
- edge-agent/drivers/opc_ua: Add browse_nodes() with cfg-gated real impl
- edge-agent/mqtt_listener: Add ScanOpcUa command variant and MQTT handler
- edge-agent/main: Handle AgentCommand::ScanOpcUa, publish results to MQTT
- backend-api: Migration 20260511000000_opcua_scan_results.sql
- backend-api/handlers/edge_devices: trigger_opcua_scan + get_opcua_scan_result
- backend-api/main: MQTT handler for omnioil/opcua-scan/+, add API routes
- build-orchestrator: Enable opcua-support feature when building agent
- frontend-admin/variables-api: OPC UA scanner API types and functions
- frontend-admin/DeviceConfigModal: OPC UA node browser UI with polling
- .env.example.*: AGENT_LATEST_VERSION 0.2.0 → 0.3.0

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-11 21:14:37 -05:00
Wilman Yesid Farfan Diaz
1b29607313 feat: implement OTA update service with authenticated backend proxy for agent binaries 2026-05-03 17:35:49 -05:00