Skip to content
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

infra: adds SdkKeyDecoder class #17

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

infra: adds SdkKeyDecoder class #17

wants to merge 2 commits into from

Conversation

leoromanovsky
Copy link
Member

Motivation

  • Support off-boarding clients - all requests today go to fscdn.eppo.cloud/edge. After server support for encoding the ch (configuration host) parameter into the SDK key (optionally along-side the eh, event logging host), clients with those SDK keys will make a request to $unique-host$.fscdn.eppo.cloud/edge which will enable DNS-level off-boarding

Changes

Adds a SdkKeyDecoder class - implementation modeled on https://github.com/Eppo-exp/js-sdk-common/blob/main/src/events/sdk-key-decoder.ts

Testing

Unit testing covering:

  • legacy SDK keys with no host encoding
  • SDK keys with eh
  • SDK keys coming in the future with both eh and ch
  • Requiring https

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant