Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support azure authentication with managed identity #3124

Open
MathiasGruber opened this issue Sep 26, 2024 · 2 comments · May be fixed by #3911
Open

Support azure authentication with managed identity #3124

MathiasGruber opened this issue Sep 26, 2024 · 2 comments · May be fixed by #3911
Labels
ai/provider enhancement New feature or request

Comments

@MathiasGruber
Copy link

Feature Description

Currently azure provider works with API keys, however, in our organization it is encouraged and enforced that we only use managed identity for auth against azure services (https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#authentication).

Implementing this type of auth would be a requirement for us to be able to use this library, would it be possible to add it?

Use Case

Corporate environments with strict guidelines on security protocols to be followed.

Additional context

i.e. currently we do something like this with the openai library:

export const client = new OpenAIClient(
  env.OPENAI_API_BASE_URL,
  new DefaultAzureCredential(),
);
@lgrammel lgrammel added enhancement New feature or request ai/provider labels Sep 27, 2024
@ShervK
Copy link

ShervK commented Oct 31, 2024

Mind if I take a crack at this, @lgrammel? We use Azure OpenAI and have managed identity already set up so I can use our existing infrastructure for testing.

@ShervK
Copy link

ShervK commented Nov 4, 2024

@lgrammel submitted a PR for this and waiting for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai/provider enhancement New feature or request
Projects
None yet
4 participants
@lgrammel @MathiasGruber @ShervK and others