Pass SSH certificate namespaces to Cells SSH requests

What does this MR do and why?

Contributes to gitlab-com/gl-infra/production#22944

Problem

Cells SSH-over-HTTP requests omit the certificate namespace, causing certificate-authenticated users to be denied by groups enforcing SSH certificates.

Solution

  • Validate the optional namespace_path Shell JWT claim.
  • Pass the verified claim to GitAccess for Shell-authenticated SSH requests when the existing feature flag is enabled.
  • Cover claim validation, SSH endpoint access, flag behavior, and authentication isolation.

References

How to set up and validate locally

The following focused specs pass, and RuboCop is clean:

bundle exec rspec spec/lib/gitlab/shell/api_request_claims_spec.rb spec/requests/repositories/git_http_controller_spec.rb ee/spec/requests/repositories/git_http_controller_spec.rb

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vasilii Iakliushin

Merge request reports

Loading
Loading