Ejemplo n.º 1
0
def lookup_canarytoken_alert_count(canarytoken):
    key = KEY_CANARYTOKEN_ALERT_COUNT + canarytoken.value()
    return db.get(key)
Ejemplo n.º 2
0
def get_canary_google_api_key():
    return db.get(KEY_CANARY_GOOGLE_API_KEY)
Ejemplo n.º 3
0
def get_geoinfo_from_cache(ip):
    key = KEY_CANARY_IP_CACHE + ip
    return simplejson.loads(db.get(key))
Ejemplo n.º 4
0
def lookup_canarytoken_alert_count(canarytoken):
    key = KEY_CANARYTOKEN_ALERT_COUNT+canarytoken.value()
    return db.get(key)
Ejemplo n.º 5
0
def get_kc_endpoint():
    return db.get(KEY_KUBECONFIG_SERVEREP)
Ejemplo n.º 6
0
def get_canary_google_api_key():
    return db.get(KEY_CANARY_GOOGLE_API_KEY)
Ejemplo n.º 7
0
def get_geoinfo_from_cache(ip):
    key = KEY_CANARY_IP_CACHE + ip
    return simplejson.loads(db.get(key))