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

[Heartbeat] Add support for bearer_token_file for HTTP monitors #36414

Open
paulb-elastic opened this issue Aug 25, 2023 · 3 comments
Open

[Heartbeat] Add support for bearer_token_file for HTTP monitors #36414

paulb-elastic opened this issue Aug 25, 2023 · 3 comments
Labels
Stalled Team:obs-ds-hosted-services Label for the Observability Hosted Services team

Comments

@paulb-elastic
Copy link
Contributor

paulb-elastic commented Aug 25, 2023

Metricbeat has the bearer_token_file option that will read the contents of the file once at initialization and then use the value in an HTTP Authorization header, that will also be useful in Heartbeat for lightweight monitors.

The use case defined is initially requested (internally, via slack and Jira) to be able to configure this via the Elastic Agent YML configuration (not project monitors or via the UI). Reminder that with this type of use case it's intended for Uptime to be used.

ACs:

  • Add support for the bearer_token_file configuration for HTTP monitor types
    • This will require an update to the Synthetics integration package
  • If defined, include the authorization header Authorization: Bearer [file contents] in all HTTP lightweight requests
  • This must not impact any other headers that are also configured for the monitor
@paulb-elastic paulb-elastic added the Team:obs-ds-hosted-services Label for the Observability Hosted Services team label Aug 25, 2023
@elasticmachine
Copy link
Collaborator

Pinging @elastic/uptime (Team:Uptime)

@paulb-elastic
Copy link
Contributor Author

Pushing this to the backlog for the time being as we're not able to prioritise this infrastructure monitoring (Heartbeat) use case right now.

@botelastic
Copy link

botelastic bot commented Sep 3, 2024

Hi!
We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1.
Thank you for your contribution!

@botelastic botelastic bot added the Stalled label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stalled Team:obs-ds-hosted-services Label for the Observability Hosted Services team
Projects
None yet
Development

No branches or pull requests

2 participants