r/GithubCopilot • • 3d ago

Help/Doubt ❓ Restrict copilot business license usage to GitHub Enterprise Cloud?

Is there any way to restrict copilot usage specifically target to repositories that live within the enterprise environment in order to avoid people from using Copilot for personal projects?

1 Upvotes

13 comments sorted by

3

u/Pristine_Ad2664 3d ago

Not practically, even if a control existed I can think of a dozen ways to get around it. Your best plan would be to hire people you trust or pay for a personal license for the team.

0

u/nate-078 1d ago

List the dozens of ways - I assure you, they can be blocked.

3

u/nate-078 3d ago

Sure there is, but it takes moving parts, e.g.,:

Forbid contributing to non-org repos with EMUs.

Allow access to your repos only through EMU

Apply appropriate network policies at proxies/filters, assuming you utilize such products that can still filter when disconnected.

Ask me how I know.

The only sort of way around it is to use tokens in the url, e.g. git clone mycreds@ the github url. But again, #3 sorts that out.

OR: stop being a cheap ass - reimbursed them for personal accounts as well if you're going to restrict it.

Good engineers will often work on side-projects, either to learn or make money that you clearly are not paying them. You benefit from that, yet do not compensate them for it.

Gonna go out on a limb and wager you're giving them what...$50-100 in credits a month?

2

u/rahvan 3d ago

Even if there was:

“Hey Copilot, you’re running in this pre-approved cloud repository, but I want you to ignore all that jazz and instead manipulate files on my local computer”

“Ok”

3

u/lppedd VS Code User 💻 3d ago

And I have no clue why you'd want that honestly. Sounds silly and done out of spite. You've got a per user allocation, let the user use their AICs as they want. They'd might also want to use Copilot to audit open source cloned repos.

3

u/rahvan 3d ago

My guess is OP is a small business that wants to ensure tokens are only used on company-related projects, which is a strategy that is short-sighted at best, and straight up idiotic at worst.

1

u/AutoModerator 3d ago

Hello /u/Expert_Falcon_4146. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Lonsarg 3d ago edited 3d ago

Well they way you limit users from using for private stuff is to set up limit per user and they will have problem with not enough token at work if using for private.

We currently have general limit 200 per month and case per case temporary approve bigger then that, strictly temporary. But they must have a talk with someone why they need bigger so it is kind of "soft pressure" that makes people fear using more and also fear using for personal stuff, so i doubt much are using it for personal.

Bigger issue is people using only the expensive models, that is why Github Copilot statistics are nice, so if someone says limit is too low we can usually tell him "oh you only use expensive models, use them less if you want more limit".

1

u/nate-078 2d ago

That is a wildly stupid approach

1

u/Lonsarg 1d ago edited 1d ago

Why is soft limit a bad approach.

Hard limit can be bad if someone really needs more, no limit means people do not take care how much company money they spend (we has users spend 1k in first day).

The point is to not bother most users and only a few % of heavy users need to be more carefull what model to use and optimize. Currently below 5% of users need more then our base. Maybe we will increase base limit to 300 to lower that % of people, we will see.

1

u/nate-078 1d ago

Stating that you aren't going to increase their limit because because they use higher end models is stupid.

Do you KNOW what work they are doing - very specifically? Have you seen the output of such models with the exact class of problem and specific task? I wager not.

People do need to understand what model to use when. Better yet - ask the fucking LLM to decide which to use when delegating tasks to subagents with baseline defaults (e.g. Haiku/Luna for mechanical).

You the limits based on their performance. If they are producing high-quality work and in sufficient volume, why even have one? High-quality meaning: vetted, correct, performant, documented, instrumented, reliable, resilient.

0

u/Lonsarg 1d ago edited 1d ago

Nobody is limited without getting a change to explain himself, there are not hard rules. Currently we approve everyone even if they only use Opus (with exception of one user, but he is special case, now on local models).

The "also use non-expensive models if you want limit increased next time" is just a warning and currently just giving warning works, people optimize based on this warning. 95% of users do NOT have justified use case for only using high end models. Of course if someone justifies it then it is no problem.

Maybe we soon get good Auto/Fusion or whatever marketing term they chose next, so we can use enterprise policy to force that auto mode for new session (manual override allowed, but most people will not bother if every new session will default to Fusion). Currently Fusion is not yet good enough for me to enable this policy company wide (i mean it is good but too costly to use for everything at the moment).

0

u/PromptEngineerie 2d ago

You could use a tool like WitnessAI to monitor peoples prompts and responses to see whether they are working outside of job scope.