Enable influxdb auth and fix helm chart dep issue 71/8171/1
authormabelgaumkar1 <mabelgaumkar@parallelwireless.com>
Fri, 6 May 2022 04:53:04 +0000 (04:53 +0000)
committermabelgaumkar1 <mabelgaumkar@parallelwireless.com>
Fri, 6 May 2022 04:54:21 +0000 (04:54 +0000)
1) Enabled authentication and default admin user for InfluxDB by
default. This will prevent any unauthorized access to InfluxDB

2) Fixed the issue in the helm charts. It was resulting in default
user to be not enabled and influxdb helm chart was failing

Issue-ID: RIC-903

Signed-off-by: mabelgaumkar1 <mabelgaumkar@parallelwireless.com>
Change-Id: I7e3fbc9a7995d6e2452351d5aa6abfa64e4ca49e

helm/3rdparty/influxdb/templates/post-install-set-auth.yaml
helm/3rdparty/influxdb/templates/secret.yaml
helm/3rdparty/influxdb/values.yaml

index 7963412..b14d1cf 100644 (file)
@@ -13,7 +13,7 @@
 #   See the License for the specific language governing permissions and        #
 #   limitations under the License.                                             #
 ################################################################################
-{{- if .Values.setDefaultUser.enabled -}}
+{{ if .Values.setDefaultUser.enabled -}}
 apiVersion: batch/v1
 kind: Job
 metadata:
index c777849..7503dab 100644 (file)
@@ -13,8 +13,8 @@
 #   See the License for the specific language governing permissions and        #
 #   limitations under the License.                                             #
 ################################################################################
-{{- if .Values.setDefaultUser.enabled -}}
-{{- if not (.Values.setDefaultUser.user.existingSecret) -}}
+{{ if .Values.setDefaultUser.enabled -}}
+{{ if not (.Values.setDefaultUser.user.existingSecret) -}}
 apiVersion: v1
 kind: Secret
 metadata:
index 2b494a4..ef7f8f1 100644 (file)
@@ -102,7 +102,7 @@ enterprise:
 ## Defaults indicated below
 ##
 setDefaultUser:
-  enabled: false
+  enabled: true
 
   ## Image of the container used for job
   ## Default: appropriate/curl:latest
@@ -239,8 +239,10 @@ config:
   retention: {}
   shard_precreation: {}
   monitor: {}
-  http: {}
-  logging: {}
+  http:
+    auth-enabled: true
+  logging:
+    level: "debug"
   subscriber: {}
   graphite: {}
   collectd: {}