Skip to content

Handle blank API keys as disabled clients#140

Draft
marandaneto wants to merge 1 commit intomainfrom
fix/noop-empty-api-key
Draft

Handle blank API keys as disabled clients#140
marandaneto wants to merge 1 commit intomainfrom
fix/noop-empty-api-key

Conversation

@marandaneto
Copy link
Copy Markdown
Member

Summary

  • Treat missing, nil, empty, and whitespace-only API keys as disabled/no-op clients
  • Avoid starting send workers, sync transports, or feature flag polling for disabled clients
  • Add focused tests for disabled initialization and dropped events

Tests

  • bundle exec rspec spec/posthog/client_spec.rb
  • bundle exec rspec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant