-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes license check issue with invalid license UUID and check on 32 bits system. #11649
Conversation
There are some case where the license UUID is a valid license but not a valid UUID. Fixes: elastic#11640
Note: Need backport to 6.7 7.0 and 7.x |
As a follow up we should add some (fake) license ID's which are not UUID to the testing. |
078f97f
to
cdab676
Compare
@ruflin it also include a test case for the relax uuid. |
@@ -141,7 +143,17 @@ Vagrant.configure(2) do |config| | |||
c.vm.network :forwarded_port, guest: 22, host: 2226, id: "ssh", auto_correct: true | |||
|
|||
c.vm.provision "shell", inline: $unixProvision, privileged: false | |||
c.vm.provision "shell", inline: $linuxGvmProvision, privileged: false | |||
c.vm.provision "shell", inline: linuxGvmProvision, privileged: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be linuxGvmProvision()
? (Not my area of expertise.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I've added a new optional parameter to define the architecture, GVM doesn't current use i386
and I didn't want to add conditionals when we provision the machine on the bash scripts to correctly map the artifact to machine instead I just use the paremeters to correctly set the downloadable artifact.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to clarify the above, ()
are not mandatory in ruby, it frequent to not use them if the method does not accept an arguments or if in this case we just want to use the default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great. That's what I was wondering about. It looks like a function handle to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually the
c.vm.provision "shell", inline: linuxGvmProvision, privileged: false
Is also a function call.
c.vm.provision("shell", inline: linuxGvmProvision, privileged: false)
The following is also valid,
c.vm.provision("shell", { inline: linuxGvmProvision, privileged: false })
Co-Authored-By: ph <[email protected]>
…its system. (elastic#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: elastic#11640 Fixes: elastic#11650 (cherry picked from commit 4b7823b)
…its system. (elastic#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: elastic#11640 Fixes: elastic#11650 (cherry picked from commit 4b7823b)
…ense UUID and check on 32 bits system. (#11657) * 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 (cherry picked from commit 4b7823b)
* Fix index template always being overwritten - elastic/beats#11671 * Perform Basic license check on Elasticsearch connect - elastic/beats#11296 + elastic/beats#11649
Fixes: #11640
Fixes: #11650