Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add error log when trial licenses are being used #3053

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/license/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ func (s *Service) readAndValidateLicense() (RedpandaLicense, error) {
if license, err = s.validateLicense(licenseBytes); err != nil {
return RedpandaLicense{}, fmt.Errorf("failed to validate license: %w", err)
}
if license.Type == 0 {
// If the license is a trial then we reject it because connect does
// not support trials.
return RedpandaLicense{}, errors.New("trial license detected, Redpanda Connect does not support enterprise license trials")
}
} else {
// An open source license is the final fall back.
year := time.Hour * 24 * 365
Expand Down
Loading