From 4b7823bd2d267977da1d68d557a6e968c82da5ce Mon Sep 17 00:00:00 2001 From: Pier-Hugues Pellerin Date: Thu, 4 Apr 2019 15:23:20 -0400 Subject: [PATCH] Fixes license check issue with invalid license UUID and check on 32 bits system. (#11649) - Relax validation of the X-Pack license UID value. - Fix a parsing error with the X-Pack license check on 32-bit system. Fixes: #11640 Fixes: #11650 --- CHANGELOG.next.asciidoc | 2 + Vagrantfile | 30 +++++++++---- x-pack/libbeat/licenser/elastic_fetcher.go | 6 +-- .../libbeat/licenser/elastic_fetcher_test.go | 4 +- x-pack/libbeat/licenser/license.go | 6 +-- x-pack/libbeat/licenser/manager.go | 2 +- x-pack/libbeat/licenser/manager_test.go | 10 ++--- .../licenser/testdata/xpack-6.4.0.json | 3 +- ...rial-6.4.0.json => xpack-trial-6.4.0.json} | 2 +- .../xpack-with-relax-license-uuid.json | 43 +++++++++++++++++++ 10 files changed, 79 insertions(+), 29 deletions(-) rename x-pack/libbeat/licenser/testdata/{x-pack-trial-6.4.0.json => xpack-trial-6.4.0.json} (94%) create mode 100644 x-pack/libbeat/licenser/testdata/xpack-with-relax-license-uuid.json diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 79287144d006..9158760ab506 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -45,6 +45,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Report faulting file when config reload fails. {pull}[11304]11304 - Fix a typo in libbeat/outputs/transport/client.go by updating `c.conn.LocalAddr()` to `c.conn.RemoteAddr()`. {pull}11242[11242] - Management configuration backup file will now have a timestamps in their name. {pull}11034[11034] +- Relax validation of the X-Pack license UID value. {issue}11640[11640] +- Fix a parsing error with the X-Pack license check on 32-bit system. {issue}11650[11650] *Auditbeat* diff --git a/Vagrantfile b/Vagrantfile index b795898812db..a851be38692f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -69,17 +69,19 @@ if [ -d "/vagrant" ] && [ ! -e "beats" ]; then ln -s /vagrant beats; fi SCRIPT # Linux GVM -$linuxGvmProvision = <