Skip to content

Fix detection of api key and secret token#2562

Merged
stevejgordon merged 1 commit into
elastic:mainfrom
monty241:patch-2
Aug 12, 2025
Merged

Fix detection of api key and secret token#2562
stevejgordon merged 1 commit into
elastic:mainfrom
monty241:patch-2

Conversation

@monty241
Copy link
Copy Markdown
Contributor

@monty241 monty241 commented Mar 4, 2025

When the ApiKey == string.Empty, a header will be added. This seems unlikely to be intended. Dito for SecretToken.

We have had some problems due to this handling in Summer of 2024.

Now we are making improvement, inline with other code in this file such as:

if (!string.IsNullOrEmpty(service.Name))

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 4, 2025

👋 @monty241 Thanks a lot for your contribution!

It may take some time before we review a PR, so even if you don’t see activity for some time, it does not mean that we have forgotten about it.

Every once in a while we go through a process of prioritization, after which we are focussing on the tasks that were planned for the upcoming milestone. The prioritization status is typically reflected through the PR labels. It could be pending triage, a candidate for a future milestone, or have a target milestone set to it.

Copy link
Copy Markdown
Contributor

@stevejgordon stevejgordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable. Thanks!

@stevejgordon
Copy link
Copy Markdown
Contributor

run docs-build

When the `ApiKey == string.Empty`, a header will be added. This seems unlikely to be intended. Dito for `SecretToken`.

We have had some problems due to this handling in Summer of 2024.

Now we are making improvement, inline with other code in this file such as:

```
if (!string.IsNullOrEmpty(service.Name))
```
@stevejgordon
Copy link
Copy Markdown
Contributor

run docs-build

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants