Granular Access Control: Group or Repository-Level Tokens

Hello Sourcegraph community,

I’m looking for a way to implement more granular access control in our Sourcegraph instance. Specifically, I need to create access tokens that are limited to either specific groups or repositories.

  • Use case: Using Cody CLI to run some AI workloads in a containerized environment. Using someone’s personal token for use with Cody CLI has significant drawback (what if the individual providing the token leaves the company? etc.)

Questions:

  1. Is it possible to create repository-specific or group-based access tokens? as opposed to the personal token?
  2. If not, what’s the best alternative for implementing granular access control?
  3. Are there any upcoming features that might address this need?

Any guidance or best practices would be greatly appreciated.

Thank you!

Hello @VinAI

This is a good question. The best channel for such questions is to mail support@sourcegraph.com.

This seems to be more relevant to the enterprise support.

Thank you.

Sounds good. Thanks for pointing me in the right direction.

1 Like