Skip to content

[RFC-0010] Add azure auth library#909

Merged
matheuscscp merged 1 commit intomainfrom
auth-azure
May 2, 2025
Merged

[RFC-0010] Add azure auth library#909
matheuscscp merged 1 commit intomainfrom
auth-azure

Conversation

@matheuscscp
Copy link
Copy Markdown
Member

@matheuscscp matheuscscp commented Apr 15, 2025

This PR introduces the azure library from RFC-0010.

Part of: fluxcd/flux2#5022

PR Stack:

@matheuscscp matheuscscp requested a review from a team as a code owner April 15, 2025 03:40
@matheuscscp matheuscscp force-pushed the auth-azure branch 3 times, most recently from 4790c7f to d30ee7b Compare April 16, 2025 17:40
@matheuscscp matheuscscp changed the base branch from auth-core to auth-gcp April 16, 2025 17:41
@matheuscscp matheuscscp force-pushed the auth-gcp branch 2 times, most recently from a41f5ed to c8d661e Compare April 17, 2025 00:48
@matheuscscp matheuscscp force-pushed the auth-azure branch 2 times, most recently from 8685bc4 to 4d32efc Compare April 17, 2025 17:00
@dipti-pai
Copy link
Copy Markdown
Member

dipti-pai commented Apr 29, 2025

Wanted to register that I tried the azure library to enable single and multi-tenant workload identity with Azure Event Hub in this PR and it works great! :) Also validated the proxy usage and caching of tokens. Thanks @matheuscscp!

Comment thread auth/azure/client.go Outdated
Copy link
Copy Markdown
Member

@dipti-pai dipti-pai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to have some tests (where possible) for the new functionality.

Base automatically changed from auth-gcp to main April 30, 2025 18:13
Comment thread auth/azure/new_default_azure_credential.go Outdated
Comment thread auth/azure/options.go
Comment thread auth/azure/options.go
Comment thread auth/azure/options.go
@matheuscscp matheuscscp force-pushed the auth-azure branch 3 times, most recently from cd86f6e to 849f54a Compare April 30, 2025 19:38
@matheuscscp
Copy link
Copy Markdown
Member Author

Would be nice to have some tests (where possible) for the new functionality.

IMO testing only errors does not add much value. Integration tests would be valuable, but we don't have credits for Azure, only AWS and GCP

Comment thread git/go.mod
@matheuscscp matheuscscp force-pushed the auth-azure branch 2 times, most recently from eb537f2 to 21e0113 Compare May 1, 2025 21:06
@matheuscscp matheuscscp requested a review from stefanprodan May 1, 2025 21:13
Comment thread git/gogit/client.go
Comment thread auth/azure/token_credential.go
@matheuscscp matheuscscp requested a review from stefanprodan May 2, 2025 10:19
@matheuscscp matheuscscp force-pushed the auth-azure branch 2 times, most recently from d3aa23e to 2a25d16 Compare May 2, 2025 11:16
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
Copy link
Copy Markdown
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@matheuscscp matheuscscp merged commit aa3cde9 into main May 2, 2025
12 checks passed
@matheuscscp matheuscscp deleted the auth-azure branch May 2, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants