GRI-1808: IP admission rules #7

Merged
vivy merged 1 commit from feature/GRI-1808-ip-admission into dev 2026-11-07 16:31:24 +00:00
Member

GRI-1808: Signage: IP admission rules — clean retry of GRI-1762.

Add crates/server/src/admission.rs: IpRange with parse and contains for bare addresses and CIDRs, IpRangeError, IpRule, AutoApproveRule, AdmissionRules with the four-step decide (blocklist, token, auto-approve, pending), plus unit tests for the four steps, the token exception, first-match order, parse errors, /0 /32 /128 and the IPv4-mapped case.

GRI-1808: Signage: IP admission rules — clean retry of GRI-1762. Add `crates/server/src/admission.rs`: `IpRange` with `parse` and `contains` for bare addresses and CIDRs, `IpRangeError`, `IpRule`, `AutoApproveRule`, `AdmissionRules` with the four-step `decide` (blocklist, token, auto-approve, pending), plus unit tests for the four steps, the token exception, first-match order, parse errors, /0 /32 /128 and the IPv4-mapped case.
GRI-1808: decide the enrolment of one address from the lists
Some checks failed
CI / the pre-push hook (pull_request) Successful in 10s
CI / cargo fmt (pull_request) Successful in 15s
CI / cargo deny advisories (pull_request) Failing after 1m0s
CI / cargo deny (pull_request) Successful in 1m5s
CI / repository boundary (pull_request) Successful in 6s
CI / cargo clippy (pull_request) Successful in 9m43s
CI / cargo test (pull_request) Successful in 9m46s
CI / frontend-web (pull_request) Successful in 9m38s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 3s
76dd3855b7
Author
Member

GRI-1808 opened as PR #7: #7

GRI-1808 opened as PR #7: https://git.grimoirix.org/Grimoirix/grimoire-of-digital-signage/pulls/7
vivy merged commit 7d91fde9bd into dev 2026-11-07 16:31:24 +00:00
vivy deleted branch feature/GRI-1808-ip-admission 2026-11-07 16:31:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!7
No description provided.