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