Redis

Information stored in Redis:

key format value type value description
[a-z0-9]{32} string dictionary hijack ephemeral key with all details in value
[a-z0-9]{32}token_active string "0" or "1" track if token is active
[a-z0-9]{32}token list "token" used with BLPOP like a mutex for hijack
hijack_[a-z0-9]{32}_prefixes_peers set "prefix_peerASN" get peer ASes from ephemeral hijack key
hij_orig_neighb_[a-z0-9]{32} set "origin_neighbor" store origin-neighbor pairs per hijack
prefix_$PREFIX_peer_$ASN_hijacks set "hijack key" store the prefix and peer asn for this hijack
$SERVICE_seen_bgp_update string "1" or none check if we saw update the last X minutes
peer-asns set ASNs peer as numbers
last_handled_timestamp string timestamp last BGP update handled timestamp
persistent-keys set "hijack_key" persistent hijack keys