-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
EE and Streaming licensing #6653
base: master
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
Description
Add licensing mechanism for the EE gateway, and require "streams" claim for the Streams specifically
Similar to Dashboard, license_key, and TYK_GW_LICENSEKEY should be set.
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
LicenseKey
field in the configuration.Changes walkthrough 📝
config.go
Add LicenseKey field to Config struct
config/config.go
LicenseKey
field toConfig
struct.license.go
Implement license handling and validation package
ee/license/license.go
middleware.go
Integrate license feature check in streaming middleware
ee/middleware/streams/middleware.go
license_check.go
Add placeholder license check for non-EE builds
gateway/license_check.go
license_check_ee.go
Implement license validation for EE builds
gateway/license_check_ee.go
server.go
Integrate license check in server startup
gateway/server.go
license_test.go
Add tests for license handling and validation
ee/license/license_test.go
mw_streaming_test.go
Add license feature setup in streaming tests
gateway/mw_streaming_test.go