Authenticate agent requests using Gitlab-Agentk-Api-Request header
What does this MR do and why?
Authenticate agent requests using Gitlab-Agentk-Api-Request header
Currently requests from agentk use an Authorization
header, which
contains the agent token. In some contexts this header is assumed to
contain an OAuth token, not an agent token, which can lead to errors
being misreported. To solve this we will migrate to a new header,
Gitlab-Agentk-Api-Request
, that will be specific to agent tokens.
See #406582 (closed).
Changelog: fixed
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Related to #406582 (closed)