diff --git a/trifid-api/trifiddata/tfks.toml b/trifid-api/trifiddata/tfks.toml new file mode 100644 index 0000000..05aaf7a --- /dev/null +++ b/trifid-api/trifiddata/tfks.toml @@ -0,0 +1,98 @@ +[[hosts]] +id = "host-CAJDSM36900G2MFGFNIODZUG2G" +current_signing_key = 0 +current_client_key = 1 +current_config = 1 +current_cert = 1 + +[[hosts.certs]] +id = 1 + +[hosts.certs.cert] +signature = [254, 145, 36, 202, 32, 234, 248, 2, 147, 188, 207, 151, 147, 246, 100, 22, 114, 174, 221, 91, 62, 0, 48, 23, 106, 196, 75, 27, 116, 203, 68, 41, 110, 118, 85, 76, 230, 19, 128, 163, 134, 96, 121, 9, 227, 100, 174, 173, 144, 145, 149, 79, 189, 252, 126, 4, 113, 231, 141, 69, 77, 108, 48, 4] + +[hosts.certs.cert.details] +name = "Test Host" +ips = ["10.16.1.1/15"] +subnets = [] +groups = ["role:role-IRN57I1D5L3EOI3CDDU2TNBS5W"] +public_key = [43, 106, 145, 119, 55, 49, 4, 83, 171, 182, 60, 167, 213, 135, 126, 129, 148, 82, 15, 219, 155, 146, 132, 112, 141, 147, 46, 131, 207, 175, 199, 15] +is_ca = false +issuer = "90e0d7de2b241f3cdd7005e392f5c9e45277e2735edf90602424cbec786b6f32" + +[hosts.certs.cert.details.not_before] +secs_since_epoch = 1687446533 +nanos_since_epoch = 957200472 + +[hosts.certs.cert.details.not_after] +secs_since_epoch = 1719587333 +nanos_since_epoch = 957200502 + +[[hosts.config]] +id = 1 + +[hosts.config.config.pki] +ca = """ +-----BEGIN NEBULA CERTIFICATE-----\r +Cl0KK2NvcmVAY29yZWRvZXMuZGV2J3MgT3JnYW5pemF0aW9uIFNpZ25pbmcgQ0Eo\r +sN2upAYwsJK90QY6IHetWlUyvE9ka3Q4OFRaJGeOLH98I5uqEwO0temq88RJQAES\r +QG7FI2jb0M83FUYpqX70a4DlQA4EvsyjuOiDp2gm0jn5lgaPe3rZbuYuJ114zSO4\r +9QZKdFiTpeGoZkaikJJz0ws=\r +-----END NEBULA CERTIFICATE-----\r +""" +cert = """ +-----BEGIN NEBULA CERTIFICATE-----\r +CowBCglUZXN0IEhvc3QSCYGCwFCAgPj/DyIkcm9sZTpyb2xlLUlSTjU3STFENUwz\r +RU9JM0NERFUyVE5CUzVXKIXI0aQGMIWk+7MGOiArapF3NzEEU6u2PKfVh36BlFIP\r +25uShHCNky6Dz6/HD0ogkODX3iskHzzdcAXjkvXJ5FJ34nNe35BgJCTL7HhrbzIS\r +QP6RJMog6vgCk7zPl5P2ZBZyrt1bPgAwF2rESxt0y0QpbnZVTOYTgKOGYHkJ42Su\r +rZCRlU+9/H4EceeNRU1sMAQ=\r +-----END NEBULA CERTIFICATE-----\r +""" +disconnect_invalid = true + +[hosts.config.config.lighthouse] +interval = 60 + +[hosts.config.config.listen] +host = "[::]" +read_buffer = 10485760 +write_buffer = 10485760 + +[hosts.config.config.punchy] +punch = true +respond = true + +[hosts.config.config.relay] + +[hosts.config.config.tun] +dev = "trifid1" +drop_local_broadcast = true +drop_multicast = true + +[[hosts.config.config.firewall.inbound]] +port = "any" +proto = "icmp" +host = "any" + +[[hosts.config.config.firewall.outbound]] +port = "any" +proto = "any" +host = "any" + +[hosts.config.config.stats] +type = "prometheus" +listen = "0.0.0.0:8788" +path = "/metrics" +interval = "10s" +message_metrics = true +lighthouse_metrics = true + +[[hosts.signing_keys]] +id = 0 +key = [23, 88, 206, 16, 216, 58, 12, 80, 3, 178, 254, 16, 93, 137, 109, 69, 27, 111, 30, 32, 27, 194, 171, 200, 109, 69, 29, 45, 199, 174, 119, 46] + +[[hosts.client_keys]] +id = 1 +dh_pub = [43, 106, 145, 119, 55, 49, 4, 83, 171, 182, 60, 167, 213, 135, 126, 129, 148, 82, 15, 219, 155, 146, 132, 112, 141, 147, 46, 131, 207, 175, 199, 15] +ed_pub = [62, 181, 68, 68, 230, 78, 207, 233, 92, 252, 148, 118, 38, 84, 233, 54, 98, 220, 174, 146, 240, 37, 197, 19, 254, 137, 181, 241, 240, 83, 14, 74]