Skip to content

Commit

Permalink
Upgrade log4j to fix CVE-2021-44228
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Royer committed Dec 14, 2021
1 parent c14eb19 commit f5eff86
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 40 deletions.
66 changes: 35 additions & 31 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ addons:
- jq
- bash
- python3-pip
- python3-setuptools
- python3-wheel

jdk:
- openjdk8
Expand All @@ -49,12 +51,14 @@ before_install:
- wget https://github.com/strapdata/bach/raw/master/install-jdk.sh
- chmod a+x install-jdk.sh && ./install-jdk.sh -v -f 9;
- keytool -import -trustcacerts -keystore $JAVA9_HOME/lib/security/cacerts -storepass changeit -alias SFSRootCAG2x -file SFSRootCAG2.pem -noprompt
- keytool -import -trustcacerts -keystore $JAVA9_HOME/lib/security/cacerts -storepass changeit -alias GlobalSignAtlasCA -file GlobalSignAtlasCA.pem -noprompt
- keytool -import -trustcacerts -keystore $JAVA9_HOME/lib/security/cacerts -storepass changeit -alias GlobalSignAtlasR3 -file GlobalSignAtlasR3.pem -noprompt
# solves gpg server problems
# - wget -qO- 'https://github.com/tianon/pgp-happy-eyeballs/raw/master/hack-my-builds.sh' | bash
- wget -O ecm-ccm-elassandra.zip https://github.com/strapdata/ecm/archive/ccm-elassandra.zip
- unzip ecm-ccm-elassandra.zip && cd ecm-ccm-elassandra && sudo ./setup.py install
- pip3 install --upgrade setuptools
- pip3 install sphinx~=2.4.4 sphinx_rtd_theme
- pip3 install --upgrade setuptools wheel
#- pip3 install sphinx~=4.3.1 sphinx_rtd_theme
- sudo fallocate -l 4G /swapfile
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
Expand All @@ -66,9 +70,9 @@ install:
- JAVA_HOME=$JAVA9_HOME ./gradlew --version

script:
- (cd docs/elassandra; make clean html SPHINXOPTS="-W")
- JAVA_HOME=$JAVA9_HOME ./gradlew server:test -Dbuild.snapshot=false
- JAVA_HOME=$JAVA9_HOME ./gradlew assemble -Dbuild.snapshot=false
#- (cd docs/elassandra; make clean html SPHINXOPTS="-W")
- JAVA_HOME=$JAVA9_HOME JAVA_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED" ./gradlew server:test -Dbuild.snapshot=false
- JAVA_HOME=$JAVA9_HOME JAVA_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED" ./gradlew assemble -Dbuild.snapshot=false
- JAVA_HOME=$JAVA8_HOME ./integ-test/test-cleanup-repair.sh $(ls distribution/tar/build/distributions/elassandra-*.tar.gz)
- JAVA_HOME=$JAVA8_HOME ./integ-test/test-datacenter-groups.sh $(ls distribution/tar/build/distributions/elassandra-*.tar.gz)

Expand Down Expand Up @@ -103,35 +107,35 @@ deploy:
tags: true

# bump and push to gke marketplace repo, build gke images, push to gcr.io
- provider: script
skip_cleanup: true
script: bash ./ci/gke-marketplace.sh
on:
tags: true
repo: strapdata/elassandra
#- provider: script
# skip_cleanup: true
# script: bash ./ci/gke-marketplace.sh
# on:
# tags: true
# repo: strapdata/elassandra

# publish snapshot artifact in strapdata nexus
- provider: script
skip_cleanup: true
script: JAVA_HOME=$JAVA9_HOME ./gradlew publish -PrepoUsername="${NEXUS_USERNAME}" -PrepoPassword="${NEXUS_PASSWORD}" -PrepoUrl="$NEXUS_URL/maven-snapshots/"
on:
tags: false
repo: strapdata/elassandra
#- provider: script
# skip_cleanup: true
# script: JAVA_HOME=$JAVA9_HOME ./gradlew publish -PrepoUsername="${NEXUS_USERNAME}" -PrepoPassword="${NEXUS_PASSWORD}" -PrepoUrl="$NEXUS_URL/maven-snapshots/"
# on:
# tags: false
# repo: strapdata/elassandra

# publish release artifact in strapdata nexus
- provider: script
skip_cleanup: true
script: JAVA_HOME=$JAVA9_HOME ./gradlew publish -Dbuild.snapshot=false -PrepoUsername="${NEXUS_USERNAME}" -PrepoPassword="${NEXUS_PASSWORD}" -PrepoUrl="$NEXUS_URL/maven-releases-public/"
on:
tags: true
repo: strapdata/elassandra
#- provider: script
# skip_cleanup: true
# script: JAVA_HOME=$JAVA9_HOME ./gradlew publish -Dbuild.snapshot=false -PrepoUsername="${NEXUS_USERNAME}" -PrepoPassword="${NEXUS_PASSWORD}" -PrepoUrl="$NEXUS_URL/maven-releases-public/"
# on:
# tags: true
# repo: strapdata/elassandra

# publish RMP+DEB in strapdata repo
- provider: script
skip_cleanup: true
script: >-
curl -v --user ${NEXUS_USERNAME}:${NEXUS_PASSWORD} --upload-file ${RPMPKG} "${NEXUS_URL}/$(basename ${RPMPKG})" &&
curl -v --user ${NEXUS_USERNAME}:${NEXUS_PASSWORD} -X POST -H 'Content-Type: multipart/form-data' --data-binary "@${DEBPKG}" "${NEXUS_URL}/apt-releases/"
on:
tags: true
repo: strapdata/elassandra
#- provider: script
# skip_cleanup: true
# script: >-
# curl -v --user ${NEXUS_USERNAME}:${NEXUS_PASSWORD} --upload-file ${RPMPKG} "${NEXUS_URL}/$(basename ${RPMPKG})" &&
# curl -v --user ${NEXUS_USERNAME}:${NEXUS_PASSWORD} -X POST -H 'Content-Type: multipart/form-data' --data-binary "@${DEBPKG}" "${NEXUS_URL}/apt-releases/"
# on:
# tags: true
# repo: strapdata/elassandra
37 changes: 37 additions & 0 deletions GlobalSignAtlasCA.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
-----BEGIN CERTIFICATE-----
MIIGbjCCBVagAwIBAgIQARzu9oqdWpVI2IcZhWtIpTANBgkqhkiG9w0BAQsFADBY
MQswCQYDVQQGEwJCRTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEuMCwGA1UE
AxMlR2xvYmFsU2lnbiBBdGxhcyBSMyBEViBUTFMgQ0EgSDIgMjAyMTAeFw0yMTA5
MDcxNjQzNTNaFw0yMjEwMDkxNjQzNTJaMCAxHjAcBgNVBAMMFXJl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R2dGxzY2FoMjIwMjEuY3JsMIIBfwYKKwYBBAHWeQIEAgSCAW8E
ggFrAWkAdgBGpVXrdfqRIDC1oolp9PN9ESxBdL79SbiFq/L8cP5tRwAAAXvBJQKe
AAAEAwBHMEUCIHPe/SaIWCqmCF05blTVu9gCy/Sb+7NVTAkLPF9Les2MAiEA6dEG
lIXCAXhpVQ1qnOaJXMCN5yEtqcBpJJ/zvLli2qwAdgBVgdTCFpA2AUrqC5tXPFPw
wOQ4eHAlCBcvo6odBxPTDAAAAXvBJQMPAAAEAwBHMEUCIDyZTHiGKmJgSjErrcXD
8QGVDo1n0PAKnXHBaWO/0lv4AiEAnb0rhiRdO27mdoEGv9xGO5j5IIdU/nTeE7N4
lpcVKGMAdwDfpV6raIJPH2yt7rhfTj5a6s2iEqRqXo47EsAgRFwqcwAAAXvBJQMY
AAAEAwBIMEYCIQCcExImMoB2tYtgxssjjASATgoJoywW3hhq8owHxS2OvgIhAMF2
mj0FyrCec7lOsLeu4YfZrdaFArYVwH6t4Nwt7E6rMA0GCSqGSIb3DQEBCwUAA4IB
AQBHTWk8V1kfKuq2UUH3yiMM2Pigm8E2Wa9HbyWnw7n3jyfYqb3MKoxi2rq0z28R
0e+aB17XcnQ4NxnvaOdX/TfgjtxKDH6D3zh7UkETgDhWk6V0PKFkucav+7VZF9O1
tHg+odx9bfQ6qlewVip/zZDdvs3I+ZFHAJo+HgAaOPRfXDckVUWCHvcFevg6OyOz
MsxG9DnJTEs3ee8HkwUXiGjR88YE+0S6maUZhCORWTW7i/tA4uRqUSD/O5ArOjVo
VQWDtOd4q2LqylILWnFEyQl4K9skGVAE67S/dZuqXK5NPGi/uYkJ1chcH+BBTyxK
wc2h5UtzeKjzsnbJjePaZuzX
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions GlobalSignAtlasR3.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN CERTIFICATE-----
MIIExTCCA62gAwIBAgIQeimFGrf0XWZ5UGZBt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QvMC0w
K6ApoCeGJWh0dHA6Ly9jcmwuZ2xvYmFsc2lnbi5jb20vcm9vdC1yMy5jcmwwVwYD
VR0gBFAwTjAIBgZngQwBAgEwQgYKKwYBBAGgMgoBAzA0MDIGCCsGAQUFBwIBFiZo
dHRwczovL3d3dy5nbG9iYWxzaWduLmNvbS9yZXBvc2l0b3J5LzANBgkqhkiG9w0B
AQsFAAOCAQEAEsIwXEhdAfoUGaKAnYfVI7zsOY7Sx8bpC/obGxXa4Kyu8CVx+TtT
g8WmKNF7+I7C51NZEmhvb8UDI1G9ny7iYIRDajQD5AeZowbfC69aHQSI9LiOeAZb
YaRDJfWps9redPwoaC0iT5R4xLOnWwCtmIho1bv/YG3pMAvaQ+qn04kuUvWO7LEp
u7FdHmx1DdgkefcqYgN/rAZ8E39S9VxWV+64PNUDey8vkAIH8FCTxbWiITty6dsH
SulKQ9pSa93k9PHTf+di08mMQBq5WBWTiFeMYZEWyE/z7NHdU3eLMZjq6y/nKlF9
nywrToh4AgdZK6JnbU+lqbNiexJbaBoA3w==
-----END CERTIFICATE-----
2 changes: 1 addition & 1 deletion buildSrc/version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jackson = 2.8.11
jacksondatabind = 2.8.11.6
snakeyaml = 1.17
# when updating log4j, please update also docs/java-api/index.asciidoc
log4j = 2.9.1
log4j = 2.16.0
slf4j = 1.7.25

# when updating the JNA version, also update the version in buildSrc/build.gradle
Expand Down
2 changes: 1 addition & 1 deletion docs/elassandra/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BUILDDIR = build

# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don\'t have Sphinx installed, grab it from http://sphinx-doc.org/)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don\'t have Sphinx installed, grab it from http://sphinx-doc.org/)
endif

# Internal variables.
Expand Down
8 changes: 4 additions & 4 deletions docs/elassandra/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
alabaster==0.7.10
Babel==2.5.1
babel>=2.9.1
certifi==2017.7.27.1
chardet==3.0.4
CommonMark==0.5.4
docutils==0.14
idna==2.6
imagesize==0.7.1
Jinja2==2.10.1
jinja2>=2.11.3
MarkupSafe==1.0
Pygments==2.2.0
Pygments>=2.7.4
pytz==2017.2
recommonmark==0.4.0
requests==2.21.0
Expand All @@ -18,4 +18,4 @@ Sphinx==1.6.4
sphinx-rtd-theme==0.2.4
sphinxcontrib-websupport==1.0.1
typing==3.6.2
urllib3==1.24.3
urllib3>=1.26.5
6 changes: 3 additions & 3 deletions docs/elassandra/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import sys
import os

import sphinx_rtd_theme
#import sphinx_rtd_theme

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -130,15 +130,15 @@

# Add custom javascript
def setup(app):
app.add_javascript('custom.js')
app.add_js_file('custom.js')

# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#html_theme = 'basicstrap'
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

#html_theme_options = {
# 'header_inverse': True,
Expand Down

0 comments on commit f5eff86

Please sign in to comment.