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

add configs to accept license and verify it #386

Merged
merged 9 commits into from
Nov 19, 2024

Conversation

rodesai
Copy link
Contributor

@rodesai rodesai commented Nov 15, 2024

This patch makes the following changes to integrate license verification:

  1. Adds responsive.license and responsive.license.file configs to allow the user to configure their license.
  2. ResponsiveKafkaStreams validates the license if the user has not configured a cloud API key. The user could technically get around the license verification by configuring a bogus key. We assume that we won't have malicious users for now, and defer a more rigorous check to a future PR. We should do the check in the background and not block starting the app so that we don't depend on our cloud for the user's application to run.
  3. Moves around some of the test license files so that we can use them from different tests.

This patch makes the following changes to integrate license verification:
1. Adds responsive.license and responsive.license.file configs to allow
   the user to configure their license.
2. ResponsiveKafkaStreams validates the license if the user has not
   configured a cloud API key. The user could technically get around the
   license verification by configuring a bogus key. We assume that we
   won't have malicious users for now, and defer a more rigorous check
   to a future PR. We should do the check in the background and not block
   starting the app so that we don't depend on our cloud for the user's
   application to run.
3. Moves around some of the test license files so that we can use them
   from different tests.
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like now that we have this all of our integration tests will fail, we probably need to add something to ResponsiveExtension so that it will use a test licensek ey

@@ -0,0 +1 @@
{"keys": []}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess when we create the keys well update it here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, that's right!

@rodesai rodesai merged commit 9ea53c1 into main Nov 19, 2024
1 check passed
@rodesai rodesai deleted the verify-license-from-responsivekafkastreams branch November 19, 2024 22:01
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