-
Notifications
You must be signed in to change notification settings - Fork 1.6k
remove enterprise license completely from dgraph #9367
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
A PR to completely remove enterprise license functionality from Dgraph by eliminating all related validations, endpoints, and supporting code.
- Removed enterprise license checks and state fields from admin and membership endpoints.
- Deleted files and code blocks related to enterprise license application, PGP verification, and trial licenses.
- Updated ancillary components (audit, raft, encryption) to no longer conditionally depend on enterprise licensing.
Reviewed Changes
Copilot reviewed 32 out of 32 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| graphql/e2e/common/admin.go | Removed license validations from admin state tests. |
| graphql/admin/state.go | Removed the License field from membership state. |
| graphql/admin/enterpriseLicense.go | Entire file removed to eliminate enterprise license operations. |
| graphql/admin/backup.go | Removed enterprise license check from backup mutation handling. |
| graphql/admin/admin.go | Removed the resolver for enterpriseLicense. |
| ee/audit/audit_ee.go & audit.go | Updated auditor functions to remove dependency on enterprise license. |
| edgraph/access_ee.go | Removed enterprise check from the Login function. |
| dgraphapi/cluster.go | Removed both HTTP and GraphQL endpoints for license application. |
| dgraph/cmd/zero/* | Removed multiple enterprise license features (including PGP tests, trial licenses, and related raft proposals). |
| dgraph/cmd/bulk/run.go | Removed enterprise license check prior to enabling encryption feature. |
| dgraph/cmd/alpha/run.go | Updated audit initialization to the new signature without enterprise check. |
| .trunk/trunk.yaml | Updated lint tool versions. |
Comments suppressed due to low confidence (1)
dgraph/cmd/bulk/run.go:195
- With the removal of the enterprise license check, this log message may mislead users; please update it to reflect that encryption is now available without any enterprise licensing requirements.
log.Printf("Encryption feature enabled.")
8c2e556 to
e2a4143
Compare
e2a4143 to
b81211f
Compare
b81211f to
0d4105d
Compare
ad30cd7 to
c29d171
Compare
c29d171 to
1aff8df
Compare
5e5620d to
b65dfb1
Compare
This PR removes the graphql schema that allows making changes to the license of the dgraph cluster. It also removes the /enterpriseLicense endpoint of Zero.
b65dfb1 to
0878676
Compare
|
Hello, Best regards |
Zero currently has several issues related to shutdown: - #9367 removed a call to `updateEnterpriseState()` without decreasing the wait group counter. This makes zero wait indefinitely, or exit with a return code other than zero after it has been forced to terminate. - Pools never get shutdown, which keeps the pool's health check alive, resulting in logs with connection failures. - The pool health check uses `time.Sleep`, so even if pools would get shutdown, the shutdown would be delayed by the remaining sleep duration. This PR sets the appropriate wait group counter, implements a function which removes pools on shutdown and switches from `time.Sleep` to `time.Tick` in the health check. --------- Co-authored-by: Matthew McNeely <[email protected]>
This PR removes the graphql schema that allows making changes to the license of the dgraph cluster. It also removes the /enterpriseLicense endpoint of Zero.