Commit graph

100 commits

Author SHA1 Message Date
Peng Peng
61d793e4c6
cli, daemon: add olares-cli status backed by olaresd /system/status (#2917)
* cli, daemon: add `olares-cli status` backed by olaresd /system/status

Adds a new top-level `olares-cli status` command that calls the local
olaresd daemon's `/system/status` HTTP endpoint and prints either a
grouped, annotated human-readable report or raw JSON.

To avoid duplicating the response schema, the daemon's `state` struct
and related enums are extracted into a new shared package
`cli/pkg/daemon/state`. The daemon now type-aliases those types so all
existing daemon call sites keep compiling unchanged.

Made-with: Cursor

* cli: drop unused state.APIResponse envelope type

The HTTP client in cli/pkg/daemon/api/client.go intentionally uses an
inline anonymous envelope with json.RawMessage for the data field so
that --json mode can passthrough the bytes verbatim, so the public
APIResponse{Data State} type defined here had zero references. Remove
it; if a strongly-typed consumer ever shows up, re-add then.

Addresses Cursor Bugbot feedback on PR #2917.

Made-with: Cursor
2026-04-21 00:29:50 +08:00
eball
8d59df2bfc
daemon: enforce master node requirement for specific commands (#2903)
* daemon: enforce master node requirement for specific commands and enhance sunshine proxy initialization

* fix: correct interface name from serverInf to serverIntf in mdns server
2026-04-17 00:11:25 +08:00
eball
53b93829d6
daemon: enhance GetCPUName to retrieve AIBOOK M1000 and Rockchip model names (#2888) 2026-04-15 00:06:57 +08:00
eball
173213a7d9
daemon: remove closed state management and simplify Close logic (#2859)
fix(dsr_proxy): remove closed state management and simplify Close logic
2026-04-13 13:59:40 +08:00
eball
faae2289fb
daemon: add endpoint to list NFS servers (#2808) 2026-04-02 21:35:03 +08:00
eball
62c96cddda
daemon: implement NFS mount and unmount handlers (#2807) 2026-04-02 19:01:01 +08:00
dkeven
db28721499
fix(daemon): update some dependencies to solve vulnerabilities (#2726) 2026-03-20 21:11:42 +08:00
eball
6511603f6a
fix: simplify IP change check and improve error handling (#2701)
fix: simplify IP change check and improve error handling in IsIpChanged function
2026-03-18 10:56:39 +08:00
dkeven
002cb73f9d
fix(cli): do not provide version option for upgrade commands (#2666) 2026-03-12 14:01:54 +08:00
eball
cf0b52b23c
daemon: replace CPU info retrieval with a new utility function (#2652) 2026-03-10 20:43:14 +08:00
eball
fb5ae74c6e
fix(daemon): improve host IP validation and error handling in CheckCurrentStatus (#2632) 2026-03-05 20:40:41 +08:00
eball
5820b5612e
fix(daemon): increase retry count for USB device detection (#2620) 2026-03-04 23:49:37 +08:00
eball
8ce8b6c976
feat(cli): add time synchronization check using chronyc (#2616)
* feat(cli): add time synchronization check using chronyc

* feat(cli): update time synchronization check to validate stratum value
2026-03-04 14:43:42 +08:00
dkeven
14691ea3ec
feat(daemon): use unified remote api env to query external ip (#2613) 2026-03-04 00:18:25 +08:00
eball
76bde01b86
daemon: enhance USB device mounting by dynamically setting options based on filesystem type (#2596)
fix: enhance USB device mounting by dynamically setting options based on filesystem type
2026-03-03 13:09:11 +08:00
eball
cf7125aac8
cli, daemon: enhance DGX Spark support and update GPU type handling (#2496)
* feat(gpu): enhance DGX Spark support and update GPU type handling

* feat(amdgpu): refactor AMD GPU detection and support for GB10 chip and APU

* feat(connector): enhance GB10 chip detection with environment variable support

* feat(gpu): enhance DGX Spark support and update GPU type handling

* feat(amdgpu): refactor AMD GPU detection and support for GB10 chip and APU

* feat(connector): enhance GB10 chip detection with environment variable support

* feat: add nvidia device plugin for gb10

* fix(gpu): update pod selector for hami-device-plugin based on GB10 chip detection

fix(deploy): bump app-service image version to 0.4.78

* feat: enable CGO for building on ARM architecture and adjust build constraints for Linux

* feat: enhance multi-architecture support for ARM64 in release workflow

* feat: update multi-arch setup for ARM64 in release workflow

* feat: enhance ARM64 multi-architecture support in release workflow

* feat: streamline ARM64 cross-compilation setup in release workflow

* feat: enhance ARM64 support by adding architecture-specific package installations

* feat: update ARM64 package sources in release workflow for improved compatibility

* feat: amd device plugin and container toolkit install

* refactor: remove GB10 chip type check from GPU info update

* feat(gpu): update hami version to v2.6.10-compatible for spark

* fix: remove gb10 device plugin checking

* fix: update klauspost/cpuid to v2.3.0

* fix: amd gpu check (#2522)

* feat: enhance storage device detection with USB serial properties

* feat: update hami version to v2.6.11-compatible-arm

* feat: add chip type support for AMD and NVIDIA GPUs in node label updates

* feat(gpu): supports auto binding GPU to app

* feat(gpu): remove chip type handling from GPU label updates

* feat(gpu): remove GPU type specification from DaemonSet and values.yaml

* feat(gpu): remove GB10 device plugin installation and related checks

* feat(gpu): update HAMi to v2.6.11

---------

Co-authored-by: dkeven <dkvvven@gmail.com>
Co-authored-by: hys <hysyeah@gmail.com>
2026-02-28 11:44:02 +08:00
eball
8a786c7c5a
daemon: change pcap open timeout to 1 millisecond to prevent close hang (#2439) 2026-01-22 21:42:33 +08:00
eball
8d34cc995d
daemon: modify mDNS registration method (#2427)
daemon: update zeroconf dependency to v0.2.5 and modify mDNS registration method
2026-01-19 23:28:29 +08:00
eball
1e7b655826
daemon: handle missing auth token for WebSocket connections (#2411) 2026-01-14 23:56:09 +08:00
eball
473898a715
daemon: bump zeroconf dependency to v0.2.4 (#2375)
daemon: bump zeroconf dependency to v0.2.4 and increase log verbosity for server events
2026-01-07 00:10:40 +08:00
eball
be7f3b3c3f
daemon: update serial filtering logic to use suffix matching (#2367) 2026-01-04 20:44:41 +08:00
eball
f8653692b1
daemon: update DID gate URL handling in JWS validation and resolution (#2354) 2025-12-31 13:07:22 +08:00
eball
48fdaa5481
daemon: enhance USB monitoring with serial filtering support (#2349)
* daemon: enhance USB monitoring with serial filtering support

* daemon: add check for USB devices with serial before mounting

* daemon: implement FilterBySerial function for USB device filtering
2025-12-30 21:17:15 +08:00
dkeven
a04d363597
fix(daemon): update module appservice dependency to fix security issues (#2326) 2025-12-25 17:21:19 +08:00
eball
e52db36045
daemon: improve umount handling for broken USB devices (#2299)
* daemon: improve umount handling for broken USB devices

* fix: update package name from @didvault/app to @olares/app in package-lock.json
2025-12-23 23:48:40 +08:00
eball
bab074cd37
daemon: bump jws sdk version (#2287) 2025-12-22 17:58:55 +08:00
eball
ecf8849b55
daemon: handle restarting state for system errors (#2270) 2025-12-18 17:07:57 +08:00
hys
3b644efa0a cli: argo workflow breaking change 2025-12-17 21:26:16 +08:00
eball
cd88ade7ca
daemon: improve handling of broken mounts with detailed error reporting (#2247) 2025-12-17 11:00:24 +08:00
eball
02e45a7fb3
daemon: fix intranet server restarting bug (#2229)
* daemon: fix intranet server restarting bug

* fix(watcher): correct condition for verifying AdGuard DNS pod health
2025-12-12 21:28:19 +08:00
dkeven
e73480b353
fix(daemon): merge mirror endpoints into the main container repo (#2203) 2025-12-11 20:50:04 +08:00
eball
1a485ca959
daemon: reset local domain when ip changing (#2192) 2025-12-11 00:13:05 +08:00
eball
56367c964e
daemon: skip owner check if not installed successfully (#2133) 2025-11-29 00:00:53 +08:00
eball
fefd635f6c
cli: add disk management commands for extending and listing unmounted disks (#2078)
* feat: lvm commands

* feat: add disk management commands for extending and listing unmounted disks
2025-11-17 23:54:15 +08:00
eball
01324970b4
daemon: Implement DSR Proxy for handling DNS requests and responses (#2057)
* daemon: Implement DSR Proxy for handling DNS requests and responses

* fix: update DSR proxy logging and improve DNS pod configuration handling

* fix: update sys-event deployment to include additional permissions and bump image version

* fix: update install step to include pcap-devel package

* fix: correct spelling in install step for udev-devel and pcap-devel

* fix: refactor DSRProxy implementation for better clarity and organization

* fix: build arm64

* fix: update sys-event image version to 0.2.12

---------

Co-authored-by: liuyu <>
2025-11-13 11:59:46 +08:00
eball
908629dd9a
daemon: access local domain via proxy protocol (#2043) 2025-11-06 18:25:01 +08:00
eball
9b7ff997b9
daemon: add local domain pattern as a host alias (#2030)
* fix: update zeroconf dependency to v0.2.2 and add host alias functionality

* fix: enhance intranet request handling for host patterns
2025-11-04 19:27:41 +08:00
dkeven
64883f1752
app-service: fix middleware netpol; rollback env schema (#2024) 2025-10-31 19:45:00 +08:00
dkeven
ef0b8d3180
fix(daemon): avoid concurrent execution of uninstall and change-ip (#2025) 2025-10-31 19:44:13 +08:00
dkeven
5b4464533b
refactor(app-service): change Env CRD schema for future i18n (#2016) 2025-10-30 16:15:18 +08:00
eball
62233642ad
daemon: improve error handling in CheckCurrentStatus function (#2015)
fix: improve error handling in CheckCurrentStatus function
2025-10-30 00:09:53 +08:00
dkeven
1509ab6435
feat(daemon): unified node disk size between olaresd and dashboard (#2013) 2025-10-29 19:03:10 +08:00
dkeven
f621aeef54
feat(daemon): ensure dockerhub mirror in sysenv at the first (#2010) 2025-10-29 19:01:34 +08:00
dkeven
3297f3088e
feat(daemon): handle sysenv for dockerhub mirror endpoint (#2000) 2025-10-28 17:07:59 +08:00
dkeven
9fb31d52b7
fix(daemon): handle LVM device when getting disksize (#1996) 2025-10-27 23:44:54 +08:00
eball
7a84a51940
feat: refactor disk utility functions to improve disk size retrieval (#1985) 2025-10-25 00:33:14 +08:00
eball
6215da6cc0
daemon: update dependencies and improve WebSocket handling in proxy server (#1967)
fix: update dependencies and improve WebSocket handling in proxy server
2025-10-22 16:42:18 +08:00
eball
4c3cf83106
fix: intranet server bugs (#1966)
* feat: add X-Forwarded-Proto header to proxy requests

* feat: add X-Forwarded-Proto header to proxy requests

* fix: intranet server bugs

* feat(olares-app): update olares-app version to v1.5.10

---------

Co-authored-by: qq815776412 <815776412@qq.com>
2025-10-22 00:02:49 +08:00
eball
e02fd1b2de
daemon: run proxy server in a goroutine (#1962)
Start the proxy server in a goroutine to avoid blocking.
2025-10-21 19:00:40 +08:00
eball
774a0e14c4
daemon: access from intranet via domain olares.local (#1957)
* feat: implement mDNS server and proxy server structures for intranet

* feat: implement mDNS server and proxy server structures for intranet

* feat(intranet): implement server initialization and start logic

* refactor: mdns server

* feat(intranet): implement proxy server and enhance server management

* feat: Enhance intranet server functionality and update dependencies

- Refactored mDNS server start and restart methods for clarity.
- Improved SetHosts method to handle host management more effectively.
- Added Reload method to the Server struct for dynamic configuration updates.
- Integrated application URL retrieval from Kubernetes into the intranet watcher.
- Updated Go module dependencies to newer versions for better stability and features.
- Adjusted deployment configurations for L4 proxy and ingress images.

* feat: Upgrade L4BflProxy and update auth image version to 0.2.36

* feat: Update Kubernetes dependencies and improve intranet server handling
2025-10-20 23:54:56 +08:00