Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

All notable changes to this project will be documented in this file.

## Unreleased - 2025-09-26

### Added
- New HTTP API server: `asninfo serve` subcommand with CORS enabled and background refresh.
- Lookup endpoints: `GET /lookup` and `POST /lookup` with optional `legacy=true` response.
- Health endpoint: `GET /health`.
- Environment variable `ASNINFO_MAX_ASNS` to cap ASNs per request (default 100).
- Request logging for HTTP server; requests to `/health` are excluded to reduce noise.

### Changed
- Documentation: README expanded with commands, HTTP API usage, Docker examples, and environment variables.
- Clarified that CSV exports always use the simplified schema; `--simplified` flag implies reduced dataset (skips population, hegemony, and PeeringDB data).
- Docker README: added examples showing how to pass a local .env using `--env-file` or by bind-mounting to `/asninfo/.env`.

## v0.3.4 - 2025-09-10

* update `bgpkit-commons` to `v0.9.4` to support older Rust versions
Expand Down
115 changes: 111 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ oneio = { version = "0.19.0", default-features = false, features = ["https", "s3
tracing-subscriber = "0.3"
tracing = "0.1"
clap = { version = "4.5", features = ["derive"] }

axum = { version = "0.8"}
tokio = { version = "1.39", features = ["macros", "rt-multi-thread", "time", "net"] }
chrono = { version = "0.4", default-features = false, features = ["clock", "serde", "std"] }

dotenvy = "0.15.7"
serde = { version = "1.0.210", features = ["derive"] }
serde = { version = "1.0.210", features = ["derive"] }
http = "1"
tower-http = { version = "0.6", features = ["cors"] }
Loading