email token duplication check
This commit is contained in:
parent
9470d74d81
commit
5ed52afcd8
|
@ -62,21 +62,103 @@ INSERT INTO public.probe (authorize_date,cidr,"name", description,encryption_key
|
|||
INSERT INTO public.probe (authorize_date,cidr,"name", description,encryption_key,probe_key,authorize_member_id,domain_id,meta_probe_status_id, target_count) VALUES (
|
||||
'2017-08-21 15:00:09.691','192.168.2.0/24','insanity probe','test probe 22222','f1f72c8d2a814580bb7c4615ec43a6a8','95d8bcdc739741dca74c4a0e489e0774',1,1,1,0);
|
||||
|
||||
INSERT INTO public.probe (authorize_date,cidr,connect_address,connect_date,description,encryption_key,"name",probe_key,target_count,authorize_member_id,domain_id,meta_probe_status_id) VALUES (
|
||||
'2018-06-21 11:14:50.707','192.168.1.0/24','192.168.1.101:58324','2018-06-21 11:14:51.256',NULL,'$2a$10$itfWaATv4ZDV/mpKNzpPkOc9rlR5WrxdKGqVC0om4WMGKsJxlzFk6','crusader-ubuntu probe','e100fd7174f811e89b79367a389c8dcd',0,1,1,1
|
||||
);
|
||||
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (1, 1, 1);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (2, 2, 1);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 1);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (1, 1, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (2, 2, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (2, 2, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (2, 2, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (2, 2, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (2, 2, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (2, 2, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
INSERT INTO public.infra (infra_type, meta_infra_type_id, probe_id) VALUES (3, 3, 3);
|
||||
|
||||
INSERT INTO public.infra_zone (id, meta_target_zone_type_id, network, iface, meta_ip_type_id, "address", mac) VALUES (1, 1, '192.168.1.0/24', 'enp3s0', 1, '192.168.1.101', '44:8a:5b:f1:f1:f3');
|
||||
INSERT INTO public.infra_zone (id, meta_target_zone_type_id, network, iface, meta_ip_type_id, "address", mac) VALUES (4, NULL, '192.168.1.0/24', 'enp3s0',1,'192.168.1.101/24', '44:8a:5b:f1:f1:f3');
|
||||
|
||||
|
||||
INSERT INTO public.infra_host_machine (meta) VALUES ('{"vendor": "Micro-Star International Co., Ltd.", "product": "GP60 2QF (To be filled by O.E.M.)", "version": "REV:1.0", "serial": "9S716GH21875ZF1000339"}');
|
||||
INSERT INTO public.infra_host_machine (meta) VALUES ('{}');
|
||||
|
||||
INSERT INTO public.infra_host_os ("name", os, platform, platform_family, platform_version, kernel_version, host_id) VALUES ('geek-ubuntu', 'linux', 'ubuntu', 'debian', '', '4.4.0-93-generic', '03000200-0400-0500-0006-000700080009');
|
||||
INSERT INTO public.infra_host_os ("name", os, platform, platform_family, platform_version, kernel_version, host_id) VALUES (
|
||||
'geek-ubuntu', 'linux', 'ubuntu', 'debian', '', '4.4.0-93-generic', '03000200-0400-0500-0006-000700080009');
|
||||
INSERT INTO public.infra_host_os ("name", os, platform, platform_family, platform_version, kernel_version, host_id) VALUES (
|
||||
'crusader-ubuntu', 'linux', 'ubuntu', 'debian', NULL, '4.4.0-128-generic', '5c9e1778-f25f-4df3-8712-83973684e369');
|
||||
|
||||
INSERT INTO public.infra_host (id, infra_zone_id, meta_target_host_type_id, infra_host_machine_id, infra_host_os_id) VALUES (2, 1, 127, 1, 1);
|
||||
INSERT INTO public.infra_host (id, infra_zone_id, meta_target_host_type_id, infra_host_machine_id, infra_host_os_id) VALUES (5, 4, 100, 2, 2);
|
||||
INSERT INTO public.infra_host (id, infra_zone_id, meta_target_host_type_id, infra_host_machine_id, infra_host_os_id) VALUES (6, 4, 100, NULL, NULL);
|
||||
INSERT INTO public.infra_host (id, infra_zone_id, meta_target_host_type_id, infra_host_machine_id, infra_host_os_id) VALUES (7, 4, 100, NULL, NULL);
|
||||
INSERT INTO public.infra_host (id, infra_zone_id, meta_target_host_type_id, infra_host_machine_id, infra_host_os_id) VALUES (8, 4, 100, NULL, NULL);
|
||||
INSERT INTO public.infra_host (id, infra_zone_id, meta_target_host_type_id, infra_host_machine_id, infra_host_os_id) VALUES (9, 4, 100, NULL, NULL);
|
||||
INSERT INTO public.infra_host (id, infra_zone_id, meta_target_host_type_id, infra_host_machine_id, infra_host_os_id) VALUES (10, 4, 100, NULL, NULL);
|
||||
|
||||
INSERT INTO public.infra_host_ip (infra_host_id, meta_ip_type_id, "address", mac) VALUES (2, 1, '192.168.1.101', '44:8a:5b:f1:f1:f3');
|
||||
INSERT INTO public.infra_host_port (infra_host_ip_id, meta_port_type_id, port) VALUES (1, 1, 5432);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('192.168.1.101',NULL,NULL,'44:8a:5b:f1:f1:f3',2,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('192.168.1.101/24','192.168.1.254','enp3s0','44:8a:5b:f1:f1:f3',5,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('fe80::36c0:6c3e:6006:dd23/64','192.168.1.254','enp3s0','44:8a:5b:f1:f1:f3',5,2);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('172.23.0.1/16',NULL,'br-6c078941d24b','02:42:98:1e:b0:58',5,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('172.20.0.1/16',NULL,'br-7b643c9b5284','02:42:aa:2a:dc:fb',5,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('fe80::42:aaff:fe2a:dcfb/64',NULL,'br-7b643c9b5284','02:42:aa:2a:dc:fb',5,2);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('172.19.0.1/16',NULL,'br-a73e4d7bd0ac','02:42:e3:25:b7:44',5,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('172.21.0.1/16',NULL,'br-a87d468914e9','02:42:b4:75:bc:9c',5,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('172.18.0.1/16',NULL,'br-bc97baaa807f','02:42:2b:c8:e5:dd',5,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('172.17.0.1/16',NULL,'docker0','02:42:ff:84:de:ab',5,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('172.22.0.1/16',NULL,'br-30ea20f4fdbe','02:42:13:0a:eb:69',5,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('172.24.0.1/16',NULL,'br-629e1bf40111','02:42:8f:8f:5c:72',5,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('fe80::347a:38ff:fe9c:8dcd/64',NULL,'veth9163936','36:7a:38:9c:8d:cd',5,2);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('192.168.1.254',NULL,NULL,'64:e5:99:63:e7:80',6,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('192.168.1.10',NULL,NULL,'d0:50:99:97:5d:99',7,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('192.168.1.204',NULL,NULL,'a8:e5:39:5b:c9:62',8,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('192.168.1.102',NULL,NULL,'44:8a:5b:f1:f2:d3',9,1);
|
||||
INSERT INTO public.infra_host_ip ("address",gateway,iface,mac,infra_host_id,meta_ip_type_id) VALUES
|
||||
('192.168.1.50',NULL,NULL,'6c:f0:49:7a:60:68',10,1);
|
||||
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (5432,1,1);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (53,14,2);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (22,15,1);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (161,16,2);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (161,14,2);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (22,18,1);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (80,15,1);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (139,17,1);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (88,16,1);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (445,17,1);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (443,15,1);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (135,17,1);
|
||||
INSERT INTO public.infra_host_port (port,infra_host_ip_id,meta_port_type_id) VALUES (80,14,1);
|
||||
|
||||
INSERT INTO public.infra_host_application (infra_host_id, "name") VALUES (2, 'Apache Httpd');
|
||||
|
||||
|
@ -90,7 +172,19 @@ INSERT INTO public.infra_host_daemon (infra_host_id, "name") VALUES (2, 'Postgre
|
|||
INSERT INTO public.infra_host_daemon (infra_host_id, "name") VALUES (2, 'MySQL');
|
||||
|
||||
|
||||
INSERT INTO public.infra_service (id, meta_target_service_type_id, infra_host_port_id, meta_crypto_type_id) VALUES (3, 1035, 1, 1);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (3,1,1,1035);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (11,2,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (12,3,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (13,4,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (14,5,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (15,6,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (16,7,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (17,8,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (18,9,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (19,10,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (20,11,2,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (21,12,1,NULL);
|
||||
INSERT INTO public.infra_service (id, infra_host_port_id, meta_crypto_type_id, meta_target_service_type_id) VALUES (22,13,1,NULL);
|
||||
|
||||
|
||||
INSERT INTO public.target (infra_id, "name", description, sensor_count, meta_target_type_id) VALUES (1, 'Zone', 'Zone Target', 1, 2);
|
||||
|
@ -381,4 +475,4 @@ INSERT INTO public.notification (create_date,confirm_date,message,title,member_i
|
|||
INSERT INTO public.auth_crawler (auth_json,meta_crawler_id,target_id) VALUES (
|
||||
'{"DB Name":"test","ID":"docker","PassWord":"qwer5795QWER"}',31,3);
|
||||
-- INSERT INTO public.auth_crawler (auth_json,meta_crawler_id,target_id) VALUES (
|
||||
-- '{"ID":"jmxxuser","PassWord":"tomcat"}',17,4);
|
||||
-- '{"ID":"jmxxuser","PassWord":"tomcat"}',17,4);
|
||||
|
|
Loading…
Reference in New Issue
Block a user