quaint-barista-82836
01/18/2023, 8:28 PMorg.apache.logging.log4j:log4j-core version 2.14.0 was detected in Maven library manager located at /var/lib/neo4j/lib/neo4j-logging-4.2.4.jar and is vulnerable to CVE-2021-45105, which exists in versions >= 2.13.0, < 2.17.0.
The vulnerability was found in the Github Security Advisory with vendor severity: High (NVD severity: Medium).
This vulnerability has a known exploit available. Source: Github.
The vulnerability can be remediated by updating the library to any of the following versions 2.3.1, 2.12.3, 2.17.0 or higher, using mvn versions:use-latest-releases -Dincludes=org.apache.logging.log4j:log4j-core.
The library is associated with the technology Apache Log4j.
Is there a fix as part of deployment ?brainy-tent-14503
01/18/2023, 10:01 PMquaint-barista-82836
01/18/2023, 10:15 PMbrainy-tent-14503
01/19/2023, 2:14 PMbrainy-tent-14503
01/19/2023, 2:15 PMquaint-barista-82836
01/19/2023, 3:24 PMbrainy-tent-14503
01/19/2023, 4:30 PMelasticsearch here for the graph implementation. This configuration is documented here.quaint-barista-82836
01/19/2023, 8:29 PMquaint-barista-82836
01/20/2023, 5:58 PMbrainy-tent-14503
01/20/2023, 6:27 PMbland-artist-80619
01/20/2023, 7:27 PMenabled property to false in this values.yaml. (screenshot-1)
2. Then, set graph_service_impl to elasticsearch in the values.yaml of datahub. (screenshot-2)
3. re run helm commands
a. helm upgrade prerequisites datahub/datahub-prerequisites -n datahub (screenshot-3)
b. helm upgrade datahub datahub/datahub -n datahub (screenshot-3)
4. Finally, follow the restore-indices helm guide to re-build your graph index.
a. kubectl get cronjobs -n datahub (screenshot-4)
b. Also tried to create new job to test the restoration, which did not help though.
All the steps are performed and then after deleting prerequisites-neo4j-community datahub is downbrainy-tent-14503
01/20/2023, 11:35 PMbland-artist-80619
01/21/2023, 12:33 AMbland-artist-80619
01/21/2023, 12:33 AMbrainy-tent-14503
01/21/2023, 12:55 AMbrainy-tent-14503
01/21/2023, 1:03 AMbrainy-tent-14503
01/21/2023, 1:05 AMdatahub is down ? Is the UI not responding or missing datasets?bland-artist-80619
01/23/2023, 6:23 PMbland-artist-80619
01/23/2023, 6:24 PMbland-artist-80619
01/23/2023, 6:26 PMDatahub is down - I mean the UI is fine, but the datasets and pipelines are giving error, when the neo4j job is deleted.
If I redeploy them using helm, I get those back.brainy-tent-14503
01/23/2023, 7:28 PMbland-artist-80619
01/23/2023, 7:36 PMHXA5QOE@PX7KG2QXL9MBP devops % kubectl describe pod datahub-datahub-restore-indices-job-template-manual-kqz5k-94qlz -n datahub
W0123 15:35:12.225390 10351 gcp.go:119] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.26+; use gcloud instead.
To learn more, consult <https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke>
Name: datahub-datahub-restore-indices-job-template-manual-kqz5k-94qlz
Namespace: datahub
Priority: 0
Service Account: default
Node: gke-gke-ml-dev-default-gke-pool-26c067d2-emye/10.1.0.64
Start Time: Fri, 20 Jan 2023 20:31:52 -0400
Labels: controller-uid=a4594fa5-49f6-477b-b60c-328cf627cb16
job-name=datahub-datahub-restore-indices-job-template-manual-kqz5k
Annotations: <http://cni.projectcalico.org/containerID|cni.projectcalico.org/containerID>: e5e8365d1e894bf97e1065f01c67afbd644065363a855fdb8de0d396d3b51976
<http://cni.projectcalico.org/podIP|cni.projectcalico.org/podIP>:
<http://cni.projectcalico.org/podIPs|cni.projectcalico.org/podIPs>:
Status: Succeeded
IP: 10.1.41.59
IPs:
IP: 10.1.41.59
Controlled By: Job/datahub-datahub-restore-indices-job-template-manual-kqz5k
Containers:
datahub-upgrade-job:
Container ID: <containerd://6a2bd485a7ecf54d241ac3e39e3c0c261b6b46732e93c08d99ffaa436fb4504>c
Image: acryldata/datahub-upgrade:v0.9.6.1
Image ID: <http://docker.io/acryldata/datahub-upgrade@sha256:7d3f1d8b91d9a61b132894221395903403c42b907c9ebcde826eb3b9188373fb|docker.io/acryldata/datahub-upgrade@sha256:7d3f1d8b91d9a61b132894221395903403c42b907c9ebcde826eb3b9188373fb>
Port: <none>
Host Port: <none>
Args:
-u
RestoreIndices
-a
batchSize=1000
-a
batchDelayMs=100
State: Terminated
Reason: Completed
Exit Code: 0
Started: Fri, 20 Jan 2023 20:31:53 -0400
Finished: Fri, 20 Jan 2023 20:33:47 -0400
Ready: False
Restart Count: 0
Limits:
cpu: 500m
memory: 512Mi
Requests:
cpu: 300m
memory: 256Mi
Environment:
ENTITY_REGISTRY_CONFIG_PATH: /datahub/datahub-gms/resources/entity-registry.yml
DATAHUB_GMS_HOST: datahub-datahub-gms
DATAHUB_GMS_PORT: 8080
DATAHUB_MAE_CONSUMER_HOST: datahub-datahub-mae-consumer
DATAHUB_MAE_CONSUMER_PORT: 9091
EBEAN_DATASOURCE_USERNAME: root
EBEAN_DATASOURCE_PASSWORD: <set to the key 'mysql-root-password' in secret 'mysql-secrets'> Optional: false
EBEAN_DATASOURCE_HOST: prerequisites-mysql:3306
EBEAN_DATASOURCE_URL: jdbc:<mysql://prerequisites-mysql:3306/datahub?verifyServerCertificate=false&useSSL=true&useUnicode=yes&characterEncoding=UTF-8&enabledTLSProtocols=TLSv1.2>
EBEAN_DATASOURCE_DRIVER: com.mysql.cj.jdbc.Driver
KAFKA_BOOTSTRAP_SERVER: prerequisites-kafka:9092
KAFKA_SCHEMAREGISTRY_URL: <http://prerequisites-cp-schema-registry:8081>
ELASTICSEARCH_HOST: elasticsearch-master
ELASTICSEARCH_PORT: 9200
SKIP_ELASTICSEARCH_CHECK: false
ELASTICSEARCH_INSECURE: false
ELASTICSEARCH_USE_SSL: false
GRAPH_SERVICE_IMPL: neo4j
NEO4J_HOST: prerequisites-neo4j-community:7474
NEO4J_URI: <bolt://prerequisites-neo4j-community>
NEO4J_USERNAME: neo4j
NEO4J_PASSWORD: <set to the key 'neo4j-password' in secret 'neo4j-secrets'> Optional: false
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-84dd9 (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
kube-api-access-84dd9:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: Burstable
Node-Selectors: <none>
Tolerations: <http://node.kubernetes.io/not-ready:NoExecute|node.kubernetes.io/not-ready:NoExecute> op=Exists for 300s
<http://node.kubernetes.io/unreachable:NoExecute|node.kubernetes.io/unreachable:NoExecute> op=Exists for 300s
Events: <none>
HXA5QOE@PX7KG2QXL9MBP devops %bland-artist-80619
01/23/2023, 7:37 PMbrainy-tent-14503
01/23/2023, 10:44 PMbland-artist-80619
02/03/2023, 2:25 PMbrainy-tent-14503
02/03/2023, 2:42 PMglobal: , no need to edit #2. Also please share your helm command or check to make sure you are using the -f flag on the file with your changes. -f myvals.yaml or -f values.yaml if you just copied the default file and edited it.brainy-tent-14503
02/03/2023, 2:43 PMbland-artist-80619
02/03/2023, 2:47 PMbland-artist-80619
02/03/2023, 2:48 PMbland-artist-80619
02/03/2023, 3:01 PMbrainy-tent-14503
02/03/2023, 5:00 PM-f/--values myvalues.yaml flag, per the helm docs here. The name of the yaml file doesn’t matter, however if you are not specifying your overrides, then it will use the default values.yaml that is published with the chart.bland-artist-80619
02/03/2023, 5:01 PMhelm upgrade -n datahub prerequisites datahub/datahub-prerequisites -f /Users/HXA5QOE/Downloads/datahub-helm/charts/datahub/values.yaml
helm upgrade -n datahub datahub datahub/datahub -f /Users/HXA5QOE/Downloads/datahub-helm/charts/datahub/values.yamlbrainy-tent-14503
02/03/2023, 5:09 PMhelm list -n datahub ?brainy-tent-14503
02/03/2023, 5:10 PMhelm repo updatebland-artist-80619
02/03/2023, 5:11 PMbrainy-tent-14503
02/03/2023, 10:12 PMhelm template with the values flag, will print the raw manifests. If you’re seeing defaults then note which manifest(s), but the mce template is pulling from the global parameter now.bland-artist-80619
02/03/2023, 10:50 PM