Module Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore NameStore NameLoad body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Dict Index NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Dict For TupleStore NameStore NameStore NameStore NameLoad body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Dict Index NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Return Dict Str Str Str Str Str Dict NameLoad DictComp NameLoad Dict Str NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Dict Str Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad NameLoad For NameStore SubscriptLoad NameLoad Index Str body Expr Yield TupleLoad NameLoad NameLoad Str NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore BinOpMult BinOpMult BinOpMult Call NameLoad BinOpDiv Call AttributeLoad NameLoad attr BinOpMult Num Num Num Num Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Index Num Assign NameStore SubscriptLoad NameLoad Index Str Assert CompareEq SubscriptLoad NameLoad Index Str Str Str Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Dict For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad GeneratorExp NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr comprehension NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A psycopg2 N/A yaml N/A sys N/A json N/A time N/A hashlib unpaddedbase64 encode_base64 signedjson.key read_signing_keys signedjson.sign sign_json canonicaljson encode_canonical_json select_v1_keys N/A N/A connection N/A N/A N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute SELECT server_name, key_id, verify_key FROM server_signature_keys N/A rows N/A N/A cursor fetchall N/A N/A N/A cursor close N/A results N/A N/A N/A server_name key_id verify_key rows N/A N/A N/A N/A N/A results setdefault server_name N/A N/A key_id N/A encode_base64 verify_key N/A results N/A select_v1_certs N/A N/A connection N/A N/A N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute SELECT server_name, tls_certificate FROM server_tls_certificates N/A rows N/A N/A cursor fetchall N/A N/A N/A cursor close N/A results N/A N/A N/A server_name tls_certificate rows N/A N/A N/A results N/A server_name tls_certificate N/A results N/A select_v2_json N/A N/A connection N/A N/A N/A cursor N/A N/A connection cursor N/A N/A N/A cursor execute SELECT server_name, key_id, key_json FROM server_keys_json N/A rows N/A N/A cursor fetchall N/A N/A N/A cursor close N/A results N/A N/A N/A server_name key_id key_json rows N/A N/A N/A N/A N/A results setdefault server_name N/A N/A key_id N/A N/A json loads N/A N/A N/A str key_json decode utf-8 N/A results N/A convert_v1_to_v2 N/A N/A server_name valid_until keys certificate N/A N/A N/A N/A old_verify_keys server_name verify_keys valid_until_ts tls_fingerprints N/A server_name N/A key_id N/A key key N/A N/A key_id key N/A N/A keys items valid_until N/A N/A fingerprint certificate N/A fingerprint N/A N/A certificate N/A N/A N/A finger N/A N/A hashlib sha256 certificate N/A N/A sha256 N/A encode_base64 N/A N/A finger digest N/A rows_v2 N/A N/A server json N/A N/A N/A valid_until N/A json N/A valid_until_ts N/A key_json N/A encode_canonical_json json N/A key_id N/A json N/A verify_keys N/A N/A N/A N/A server key_id - valid_until valid_until N/A buffer key_json N/A main N/A N/A N/A N/A N/A config N/A N/A yaml load N/A open N/A N/A sys argv N/A 1 N/A valid_until N/A N/A N/A N/A int N/A N/A N/A time time N/A 3600 24 1000 3600 24 N/A server_name N/A config N/A server_name N/A signing_key N/A N/A read_signing_keys N/A open N/A config N/A signing_key_path N/A 0 N/A database N/A config N/A database N/A N/A N/A database N/A name psycopg2 Can only convert for postgresql N/A args N/A database N/A args N/A N/A N/A args pop cp_max N/A N/A N/A args pop cp_min N/A connection N/A N/A psycopg2 connect args N/A keys N/A select_v1_keys connection N/A certificates N/A select_v1_certs connection N/A json N/A select_v2_json connection N/A result N/A N/A server keys N/A N/A N/A N/A server json N/A N/A v2_json N/A convert_v1_to_v2 server valid_until N/A keys N/A server N/A certificates N/A server N/A v2_json N/A sign_json v2_json server_name signing_key N/A N/A result N/A server v2_json N/A N/A N/A yaml safe_dump result N/A sys stdout default_flow_style False N/A rows N/A list N/A row N/A N/A server json N/A N/A result items N/A row N/A rows_v2 server json N/A cursor N/A N/A connection cursor N/A N/A N/A cursor executemany INSERT INTO server_keys_json ( server_name, key_id, from_server, ts_added_ms, ts_valid_until_ms, key_json) VALUES (%s, %s, %s, %s, %s, %s) rows N/A N/A N/A connection commit N/A N/A N/A __name__ __main__ N/A N/A N/A main