refactor: rename entry field to ip across whitelist API
Rename the `entry` field to `ip` throughout the whitelist API for clarity and consistency. This affects API request/response bodies, path parameters, OpenAPI spec, documentation, and database queries in the audit log endpoint.
This commit is contained in:
@@ -41,7 +41,7 @@ All whitelist operations are logged to the `audit_log` table in SQLite.
|
||||
Each entry records:
|
||||
|
||||
- `action` — what happened (`add_temp`, `delete_temp`, `add_perm`, `delete_perm`, `expire_temp`)
|
||||
- `ip` or `cidr` — the affected IP or CIDR
|
||||
- `ip` — the affected IP or CIDR range
|
||||
- `ttl_seconds` — for temp entries
|
||||
- `reason` — the reason provided
|
||||
- `api_client_ip` — the IP that made the API call (from NGINX `X-Real-IP`)
|
||||
|
||||
Reference in New Issue
Block a user