Commit graph

272 commits

Author SHA1 Message Date
blacksmith-sh[bot]
720b56544b
Migrate workflows to Blacksmith 2026-02-02 19:34:56 +00:00
3dec5fbe36
dep cleanup 2026-02-02 13:32:06 -06:00
b4d9fb9677
dep cleanup 2026-02-02 13:31:02 -06:00
d137925a0f
update deps 2026-02-02 13:26:02 -06:00
575735b0da
Handle generic mikrotik commands 2026-02-02 13:18:31 -06:00
2bf47951cd
fix: use correct GitHub ARM runner label (ubuntu-24.04-arm) 2026-02-02 12:50:28 -06:00
998c4c4471
fail fast in ci 2026-02-02 12:45:43 -06:00
1b63da6e9e
update cargo 2026-02-02 12:40:01 -06:00
Graham McIntire
207ff82d2c
Merge pull request #4 from towerops-app/dependabot/cargo/prost-build-0.14.3
Bump prost-build from 0.13.5 to 0.14.3
2026-02-02 12:34:17 -06:00
dependabot[bot]
12fe5337e2
Bump prost-build from 0.13.5 to 0.14.3
Bumps [prost-build](https://github.com/tokio-rs/prost) from 0.13.5 to 0.14.3.
- [Release notes](https://github.com/tokio-rs/prost/releases)
- [Changelog](https://github.com/tokio-rs/prost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/prost/compare/v0.13.5...v0.14.3)

---
updated-dependencies:
- dependency-name: prost-build
  dependency-version: 0.14.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 18:34:03 +00:00
Graham McIntire
129c641f1c
Merge pull request #3 from towerops-app/dependabot/cargo/clap-4.5.56
Bump clap from 4.5.54 to 4.5.56
2026-02-02 12:32:50 -06:00
dependabot[bot]
f31a756fad
Bump clap from 4.5.54 to 4.5.56
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.54 to 4.5.56.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.54...clap_complete-v4.5.56)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.5.56
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 18:31:02 +00:00
Graham McIntire
1c636381a1
Merge pull request #2 from towerops-app/dependabot/cargo/prost-types-0.14.3
Bump prost-types from 0.13.5 to 0.14.3
2026-02-02 12:30:38 -06:00
dependabot[bot]
a5056e3616
Bump prost-types from 0.13.5 to 0.14.3
Bumps [prost-types](https://github.com/tokio-rs/prost) from 0.13.5 to 0.14.3.
- [Release notes](https://github.com/tokio-rs/prost/releases)
- [Changelog](https://github.com/tokio-rs/prost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/prost/compare/v0.13.5...v0.14.3)

---
updated-dependencies:
- dependency-name: prost-types
  dependency-version: 0.14.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 18:30:20 +00:00
fbf2435165
build arm/amd in parallel natively 2026-02-02 12:29:35 -06:00
Graham McIntire
3b6f0ca8fd
Merge pull request #1 from towerops-app/dependabot/cargo/prost-0.14.3
Bump prost from 0.13.5 to 0.14.3
2026-02-02 12:29:11 -06:00
dependabot[bot]
7f0d63df41
Bump prost from 0.13.5 to 0.14.3
Bumps [prost](https://github.com/tokio-rs/prost) from 0.13.5 to 0.14.3.
- [Release notes](https://github.com/tokio-rs/prost/releases)
- [Changelog](https://github.com/tokio-rs/prost/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/prost/compare/v0.13.5...v0.14.3)

---
updated-dependencies:
- dependency-name: prost
  dependency-version: 0.14.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 18:27:09 +00:00
001d713688
dependabot fix 2026-02-02 12:26:22 -06:00
eb330b2f6f
protobufs update for mikrotik things 2026-02-02 12:25:40 -06:00
Graham McIntire
224c2b5898
Create dependabot.yml for version updates
Add initial configuration for Dependabot version updates.
2026-02-02 12:25:02 -06:00
fa42254cfb
ci cache improvements 2026-02-01 08:28:56 -06:00
a4745f55bf
readme update 2026-02-01 08:17:00 -06:00
72ea5d56f0
improve ci speed 2026-01-31 17:21:09 -06:00
4254f47ea5
github release fix 2026-01-31 17:01:09 -06:00
be054323a6
more caching in github ci 2026-01-31 16:53:25 -06:00
5636b00f33
add github ci 2026-01-31 16:48:28 -06:00
98d1bbbb21
structured logging 2026-01-31 15:40:42 -06:00
b8aecf0a55
more tests 2026-01-31 15:26:36 -06:00
6e57918386
cleanup and readme update 2026-01-31 14:56:36 -06:00
c7c286204e
temporarilly disable tests in ci 2026-01-31 14:47:55 -06:00
92c7675141
Update CI to Rust 1.91 to match local environment 2026-01-31 14:42:51 -06:00
4cd357777f
Add TRAP_ENABLED env var to conditionally enable trap listener 2026-01-31 14:39:24 -06:00
89adc3a6b3
Add SNMP trap listener for v1 and v2c traps
- Add trap.rs with BER/ASN.1 parser for SNMP trap PDUs
- Support both SNMPv1 and SNMPv2c trap formats
- Listen on configurable UDP port (default 162)
- Log received traps at INFO level
- Add LOG_LEVEL env var for log verbosity control
- Add TRAP_PORT env var and CLI flag
- Update docker-compose with trap port mapping
2026-01-31 14:14:56 -06:00
61e7fe1c47
Add SNMP trap listener design document 2026-01-31 14:11:04 -06:00
8ed2208271
poll each device simultaneously 2026-01-31 14:00:00 -06:00
bf1c6314cb
agent version tracking 2026-01-30 17:25:08 -06:00
c3e6e8c5b0
fix clippy error 2026-01-30 16:00:33 -06:00
380beaca1a
Agent overhaul with zero persistence 2026-01-30 15:50:20 -06:00
3793477e2f
relax ping failures 2026-01-29 12:12:01 -06:00
b8932f16b0
fix clippy issues 2026-01-29 12:02:20 -06:00
cee8d693da
make websocket client more robust 2026-01-29 11:55:01 -06:00
dbf66af5c0
support snmp v1 2026-01-29 11:28:45 -06:00
0548ca313d
include device id and ip in snmp error logs 2026-01-25 12:20:45 -06:00
cf08b0589b
cleanup 2026-01-24 12:43:24 -06:00
8ee809d21e
websocket improvements 2026-01-23 12:43:11 -06:00
9cb924fd77
connectivity improvements 2026-01-23 10:33:13 -06:00
ee7ce7fe00
feat: use system ping instead of raw ICMP sockets
- Replace raw ICMP socket implementation with system ping command
- Add regex-lite dependency for parsing ping output
- Add tokio process feature for async command execution
- Support macOS and Linux ping output formats
- Add iputils to Dockerfile for setuid-root ping
- Remove socket2 dependency (no longer needed)

This eliminates the need for CAP_NET_RAW capability in containers.
2026-01-21 13:11:24 -06:00
84b7519ad0
cargo clippy fix 2026-01-20 11:33:52 -06:00
6cea690e6b
format 2026-01-20 11:33:37 -06:00
71267870b0
refactor: remove log dependency, replace with custom macros
- Added custom logging macros (log_error!, log_warn!, log_info!, log_debug!)
- Implemented LogLevel enum and LOG_LEVEL static for runtime level control
- Exported macros with #[macro_export] for use across all modules
- Replaced all log:: calls in websocket_client.rs, health.rs, and version.rs
- Removed obsolete test code referencing old log crate
- Removed log dependency from Cargo.toml
- Fixed useless comparison warning in test
- Binary size: still 1.5M (no change - log was lightweight)
- Tests: 65 passing, 0 warnings

This completes the removal of 9 dependencies (thiserror, hostname, chrono,
base64, rand, ureq, tiny_http, anyhow, log). Dependency count: 19 → 10.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-19 17:31:12 -06:00