Carry certificate namespaces in Cells Shell JWTs

What does this MR do and why?

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

Problem

Cells return 403 for group SSH-certificate users because the Shell JWT omits the namespace sent to /allowed.

Solution

  • Add an optional namespace_path claim to the Shell JWT actor.
  • Populate it from the server-side SSH certificate match and test group and instance certificates.

References

gitlab-com/gl-infra/production#22944 (comment 4127026247)

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.

Edited by Vasilii Iakliushin

Merge request reports

Loading
Loading