Skip to content

Conversation

@mangalaman93
Copy link
Contributor

@mangalaman93 mangalaman93 commented Apr 2, 2025

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.

@mangalaman93 mangalaman93 requested review from a team and Copilot April 2, 2025 11:27
@github-actions github-actions bot added area/testing Testing related issues area/enterprise Related to proprietary features area/graphql Issues related to GraphQL support on Dgraph. area/bulk-loader Issues related to bulk loading. area/core internal mechanisms go Pull requests that update Go code labels Apr 2, 2025
Copy link

Copilot AI left a 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.")

@github-actions github-actions bot added area/integrations Related to integrations with other projects. area/acl Related to Access Control Lists labels Apr 2, 2025
@trunk-io
Copy link

trunk-io bot commented Apr 2, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@mangalaman93 mangalaman93 force-pushed the aman/license branch 3 times, most recently from ad30cd7 to c29d171 Compare April 3, 2025 07:50
@mangalaman93 mangalaman93 enabled auto-merge (squash) April 3, 2025 07:59
ghost
ghost previously approved these changes Apr 3, 2025
ghost
ghost previously approved these changes Apr 3, 2025
@mangalaman93 mangalaman93 force-pushed the aman/license branch 2 times, most recently from 5e5620d to b65dfb1 Compare April 4, 2025 02:44
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.
@mangalaman93 mangalaman93 disabled auto-merge April 4, 2025 03:43
@mangalaman93 mangalaman93 enabled auto-merge (squash) April 4, 2025 03:44
@mangalaman93 mangalaman93 merged commit 71222c1 into main Apr 4, 2025
14 checks passed
@mangalaman93 mangalaman93 deleted the aman/license branch April 4, 2025 04:31
@mbledkowski
Copy link
Contributor

Hello,
Do I understand correctly that you are moving completely from dual-licensing to fully open-source?

Best regards

matthewmcneely added a commit that referenced this pull request Dec 30, 2025
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/acl Related to Access Control Lists area/bulk-loader Issues related to bulk loading. area/core internal mechanisms area/enterprise Related to proprietary features area/graphql Issues related to GraphQL support on Dgraph. area/integrations Related to integrations with other projects. area/testing Testing related issues go Pull requests that update Go code

Development

Successfully merging this pull request may close these issues.

3 participants