kibana authentication

add kibana authentication to load script

Issue-ID: CLAMP-419

Change-Id: I02851f26a3916110a5e3544746db04aed274c5ab
Signed-off-by: osgn422w <gervais-martial.ngueko@intl.att.com>
diff --git a/src/main/docker/kibana/backup.py b/src/main/docker/kibana/backup.py
index a2dab22..b1e4518 100755
--- a/src/main/docker/kibana/backup.py
+++ b/src/main/docker/kibana/backup.py
@@ -48,7 +48,7 @@
                               ' matching a configuration item that should be written.'
                               ' Files already in the folder that do not match are'
                               ' left as-is.'))
-    parser.add_argument('-H', '--kibana-host', default='http://localhost:5601',
+    parser.add_argument('-H', '--kibana-host', default='https://localhost:5601',
                         help='Kibana endpoint.')
 
     return parser.parse_args(args)
@@ -68,7 +68,7 @@
 
     # get list of the set of objects we update
     url = "%s/api/saved_objects/_find" % (args.kibana_host.rstrip("/"),)
-    saved_objects_req = requests.get(url,
+    saved_objects_req = requests.get(url, auth=('admin', 'admin'), verify=False,
                                      params={'per_page': PER_PAGE,'type':['config','search','dashboard','visualization','index-pattern']})
 
     saved_objects = saved_objects_req.json()['saved_objects']