Problem/Motivation
Currently the token can only be provided via query string (?token=xxx). Query string tokens:
- Appear in server access logs
- May be cached by proxies
- Visible in browser history
Supporting an HTTP header (e.g., Authorization: Bearer xxx or X-Prometheus-Token: xxx) would be more secure for production use.
Steps to reproduce
Proposed resolution
Modify TokenAccessCheck to accept the token from either:
- Query string: `?token=xxx` (existing behavior)
- HTTP header: `Authorization: Bearer xxx` or custom header
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork prometheus_exporter-3587918
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kim.pepperComment #5
kim.pepperCommitted to 2.x