Skip to content
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

Use libtheia for get_license GMP command #1692

Merged
merged 6 commits into from
Nov 1, 2021

Conversation

timopollmeier
Copy link
Member

@timopollmeier timopollmeier commented Sep 24, 2021

What:
This replaces the dummy license with actual data fetched using the
optional licensing client library libtheia.
If the library is not available, license commands will always return
"Service not available" responses.

Why:
This is part of integrating the licensing service into gvmd.

How did you test it:
By building gvmd with and without libtheia and requesting license info via gvm-cli in the following situations:

  • licensing service running with license file available
  • licensing service running without a license file
  • licensing service not running

Checklist:

@timopollmeier timopollmeier force-pushed the use-libtheia branch 2 times, most recently from 343866c to a42bc70 Compare September 24, 2021 14:59
@timopollmeier timopollmeier marked this pull request as ready for review September 30, 2021 08:25
@timopollmeier timopollmeier requested a review from a team as a code owner September 30, 2021 08:25
@timopollmeier timopollmeier marked this pull request as draft September 30, 2021 08:28
jhelmold
jhelmold previously approved these changes Oct 13, 2021
This replaces the dummy license with actual data fetched using the
optional licensing client library libtheia.
If the library is not available, license commands will always return
"Service not available" responses.
The new option sets the address of the publish-subscribe broker used for
communication with the licensing service.
The licensing now has to be enabled explicitly with the new option
in which case the theia library will be required.
@timopollmeier timopollmeier marked this pull request as ready for review October 26, 2021 14:30
The new setting (bb051ce6-de58-4bcf-bacd-7743797b22fa) is set
automatically if gvmd is built with licensing functions and cannot be
modified via GMP or the --modify-setting command line option.
If gvmd is built without licensing, the setting is removed.
If gvmd is build without libtheia, the commands `get_license` and
`modify_license` will be disabled as if they were disabled with in the
`--disable-cmds` option.
@timopollmeier timopollmeier merged commit 7b4f256 into greenbone:main Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants