Remove certificates and private keys from code 01/13101/8
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 28 Mar 2023 16:19:36 +0000 (18:19 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 25 Sep 2024 09:29:10 +0000 (11:29 +0200)
A file empty_file.txt has been added to allow stage3 to
build NBI docker image. It will be removed in subsequent
changes.

Change-Id: Ib82d30ecc6db88edc77a9c351d238141a249eaae
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_nbi/http/cert.pem [deleted file]
osm_nbi/http/empty_file.txt [new file with mode: 0644]
osm_nbi/http/privkey.pem [deleted file]
osm_nbi/nbi.cfg
osm_nbi/nbi.py

diff --git a/osm_nbi/http/cert.pem b/osm_nbi/http/cert.pem
deleted file mode 100644 (file)
index f9d63a8..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#    http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
------BEGIN CERTIFICATE-----
-MIID6zCCAtOgAwIBAgIJAP5stGSyLGztMA0GCSqGSIb3DQEBCwUAMIGLMQswCQYD
-VQQGEwJlczEPMA0GA1UECAwGTWFkcmlkMQ8wDQYDVQQHDAZNYWRyaWQxFzAVBgNV
-BAoMDm9wZW5zb3VyY2VtYW5vMQwwCgYDVQQLDANvc20xDDAKBgNVBAMMA25iaTEl
-MCMGCSqGSIb3DQEJARYWb3NtX3RlY2hAbGlzdC5ldHNpLm9yZzAeFw0yMDA2MDMy
-MTUyNDlaFw0yMzAyMjgyMTUyNDlaMIGLMQswCQYDVQQGEwJlczEPMA0GA1UECAwG
-TWFkcmlkMQ8wDQYDVQQHDAZNYWRya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empty_file.txt
new file mode 100644 (file)
index 0000000..04f7d49
--- /dev/null
@@ -0,0 +1,16 @@
+#######################################################################################
+# Copyright ETSI Contributors and Others.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#######################################################################################
diff --git a/osm_nbi/http/privkey.pem b/osm_nbi/http/privkey.pem
deleted file mode 100644 (file)
index a6510e2..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#    http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-# implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
------BEGIN RSA PRIVATE KEY-----
-MIIEogIBAAKCAQEA15Qu6L8mhTGYM+RnDLevBhPgj0m7amHTQu6fv8529X6viPzG
-RiYH4eHyAER4HbqC3mu8ADLyrohwQjG2LZrbv3ZnDwTzOPs6dfqkUkBSOdlQlW6P
-iEz4anmGngyj4AUgg32uhxwAZsAoezn1xKqbmPP5tk8/g96CMJKGYHu/NPrwd39z
-9dM305QMnpT2eugn7DB+MmuBeIxqJXvQh03lJOMvFVrQ4D99rxG63EcC63nLwPWg
-virn9I5q6WHB4TxKMfu8QD/CRUEzssmlHWHZX6QP21whBl6GcfeXyriSyDIBPzV0
-4jyx0cTCzrbdWoRR/1XcvHr1JbIMQXbv6vFClwIDAQABAoIBAHX/hi2fc1Y0bzr4
-Ke+sGwEYoDHOCeeQ5DIeqxIx0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KFDdlmxQUsTf97/Ra
-PhLpBYEkf4G7yrL0pzzB5xs9PHvGHotoNTLRfnc41W34byx9mgJqcfkHsa+6vWAt
-RczfIbQ9NSDJq7Edgc8wNz1LdojCKDYbaaQ9DSWVZZPFrUae3Fk=
------END RSA PRIVATE KEY-----
index 7035cae..977c610 100644 (file)
@@ -34,11 +34,6 @@ tools.staticdir.dir: "/app/NBI/osm_nbi/html_public"
 [global]
 server.socket_host: "0.0.0.0"
 server.socket_port: 9999
-
-server.ssl_module: "builtin"
-server.ssl_certificate: "./http/cert.pem"
-server.ssl_private_key: "./http/privkey.pem"
-server.ssl_pass_phrase: "osm4u"
 server.thread_pool: 10
 
 # Uncomment for allow basic authentication apart from bearer
index c37e24e..d169cdd 100644 (file)
@@ -2533,23 +2533,6 @@ def _stop_service():
 
 def nbi(config_file):
     global nbi_server
-    # conf = {
-    #     '/': {
-    #         #'request.dispatch': cherrypy.dispatch.MethodDispatcher(),
-    #         'tools.sessions.on': True,
-    #         'tools.response_headers.on': True,
-    #         # 'tools.response_headers.headers': [('Content-Type', 'text/plain')],
-    #     }
-    # }
-    # cherrypy.Server.ssl_module = 'builtin'
-    # cherrypy.Server.ssl_certificate = "http/cert.pem"
-    # cherrypy.Server.ssl_private_key = "http/privkey.pem"
-    # cherrypy.Server.thread_pool = 10
-    # cherrypy.config.update({'Server.socket_port': config["port"], 'Server.socket_host': config["host"]})
-
-    # cherrypy.config.update({'tools.auth_basic.on': True,
-    #    'tools.auth_basic.realm': 'localhost',
-    #    'tools.auth_basic.checkpassword': validate_password})
     nbi_server = Server()
     cherrypy.engine.subscribe("start", _start_service)
     cherrypy.engine.subscribe("stop", _stop_service)