Skip to content

Add internal API endpoint for workspace authorize user access

Issue: Add endpoint to check if user has access to a g... (#556367 - closed) • Chad Woolley • 18.4

What does this MR do and why?

Add internal API endpoint for workspace authorize user access

See Add endpoint to check if user has access to a g... (#556367 - closed) • Chad Woolley • 18.4 for details

References

Screenshots or screen recordings

N/A - api endpoint

How to set up and validate locally

Full integration test

  1. Test using integration branch with the commits from this MR copied in: Draft: Agentw Rails Integration MR for vtak - D... (!197262 - closed)
  2. Docs for additional manual setup are in Add workspace tunnelling grpc service (gitlab-org/cluster-integration/gitlab-agent!2699 - merged) (work is in progress to get all of this configured automatically in the GDK).

Easier testing (skip KAS authentication)

If you just want to test the behavior in this MR without having to invoke it via KAS with the JWT authentication, you can do the following:

  1. Comment out the line authenticate_gitlab_kas_request! in ee/lib/api/remote_development/internal/agent/agentw/authorize_user_access.rb
  2. gdk restart rails-web
  3. curl -v http://gdk.test:3000/api/v4/internal/agents/agentw/authorize_user_access

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 Chad Woolley

Merge request reports

Loading