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

feat: Add a way to specify the team key for config fetches (experimental) #1410

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

kentquirk
Copy link
Contributor

Which problem is this PR solving?

To fetch a configuration from Honeycomb, we're going to need a way to specify a header for the team key. This allows the key to be specified in an environment variable called HONEYCOMB_CONFIG_KEY. This is deliberately different from the telemetry key because the key will have to have special permissions.

If the key is not blank, then the header x-honeycomb-team will be set and used for the config requests. The header will not be used if the key is blank.

We are deliberately not adding this to public documentation because this feature is still experimental and we may well change it.

Short description of the changes

  • Fetch HONEYCOMB_CONFIG_KEY from the environment
  • Set x-honeycomb-team header if the key is non-blank.

@kentquirk kentquirk requested a review from a team as a code owner November 4, 2024 23:11
@kentquirk kentquirk added this to the v2.9 milestone Nov 4, 2024
@kentquirk kentquirk merged commit 4ffe107 into main Nov 5, 2024
6 checks passed
@kentquirk kentquirk deleted the kent.cfg_request_header branch November 5, 2024 14:15
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.

2 participants