[feature] Add IP address smart matching

Aperta
#915 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
graphql, rust, typescript
Ambito
api, backend, security

Direzione di ricerca

Find where HostWhereInput and primaryIpHasPrefix are defined (GraphQL schema and resolvers for host queries). Implement externalIPInRange and primaryIPInRange that accept CIDR (e.g. 192.168.0.0/16) or a hyphenated range, then wire them into the same filter path as the existing prefix helper. Confirm done by querying hosts with those filters against known IPs; no files or tests are named in the issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature

There is no simple way to only query for specific hosts that I care about. I would like a way to filter by CIDR

Describe the solution you'd like
I would like to see HostWhereInput have externalIPInRange([CIDR|range]) and primaryIPInRange([CIDR|range]) functions that accept either CIDR notation 192.168.0.0/16 or a range 192.168.0.0-192.168.100.20

Describe alternatives you've considered
Currently, the primaryIpHasPrefix allows for searching on /8 /16 and /24 blocks, but not more complex networking schemes,

Lingua principale
Rust
Stelle
639
Fork
65
Merge medio
1g 5h
PR unite (30g)
62

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di spellshift/realm

Tutte le issue di spellshift/realm

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.