feat: add development mode for premium features#4
Draft
aryan-agrawal-glean wants to merge 1 commit intomainfrom
Draft
feat: add development mode for premium features#4aryan-agrawal-glean wants to merge 1 commit intomainfrom
aryan-agrawal-glean wants to merge 1 commit intomainfrom
Conversation
Enable audit logs, connection logs, and quotas functionality without a license by setting environment variables. This allows testing and evaluation of premium features in development. This adds: - DevModeEnabled() check in coderd/audit/dev.go - DevAuditor implementation using MockAuditor backend - DevConnectionLogger implementation using FakeConnectionLogger backend - DevCommitter for quota enforcement with database integration - Conditional registration in coderd/coderd.go based on env vars Environment variables: - CODER_DEV_AUDIT_LOGS=true - Enable audit logging - CODER_DEV_CONNECTION_LOGS=true - Enable connection logging - CODER_DEV_QUOTAS=true - Enable quota enforcement The dev mode implementations mirror enterprise functionality without license checks, allowing full evaluation of premium features. Helm values file (deploy/values-dev-premium.yaml) provided for easy Kubernetes deployment with all premium features enabled. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable audit logs, connection logs, and quotas functionality without a license for testing/evaluation by setting environment variables.
This adds:
coderd/audit/dev.go- DevAuditor using MockAuditor backendcoderd/connectionlog/dev.go- DevConnectionLogger using FakeConnectionLogger backendcoderd/workspacequota/dev.go- DevCommitter with full quota enforcementcoderd/coderd.gofor all dev mode featuresdeploy/values-dev-premium.yamlfor easy K8s deploymentEnvironment Variables
Enable features individually by setting:
CODER_DEV_AUDIT_LOGS=true- Audit logging (tracks all user operations)CODER_DEV_CONNECTION_LOGS=true- Connection logging (monitors workspace access)CODER_DEV_QUOTAS=true- Quota enforcement (credit-based workspace budgeting)Features Enabled
✅ Audit Logs
✅ Connection Logs
✅ Quotas
Testing
Local Testing
Kubernetes Testing
Implementation Notes
replicaCount > 1(no dev mode needed)Related
Follows the same pattern as PR #1 for prebuilds dev mode.
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com