Loading
Honor Shell JWT claims for routed SSH requests
What does this MR do and why?
Contributes to gitlab-com/gl-infra/production#22944
Problem
Cells-routed SSH-over-HTTP requests are re-authorized as the user and from gitlab-shell's egress IP. Deploy-key pulls fail, and IP restrictions check the wrong address.
Solution
- Apply verified client IP claims to IP restrictions and request context.
- Authorize deploy-key claims as the key and send its key GL_ID.
- Reject malformed or mismatched claims behind a feature flag.
References
gitlab-com/gl-infra/production#22944
Screenshots or screen recordings
Not applicable; this change has no visible UI impact.
How to set up and validate locally
No manual setup or validation steps; this change affects SSH-over-HTTP request authorization.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.