Skip to content

Commit

Permalink
Merge pull request #3053 from redpanda-data/licensing-updates
Browse files Browse the repository at this point in the history
Add error log when trial licenses are being used
  • Loading branch information
Jeffail authored Dec 2, 2024
2 parents da19e42 + be63e91 commit 4f00b42
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 4f00b42

Please sign in to comment.