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

Add Azure credentials type in configuration #1555

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

moukoublen
Copy link
Member

@moukoublen moukoublen commented Nov 14, 2023

Summary of your changes

Based on the discussion in this comment, this PR adds the Azure credentials type in the config and uses it to identify which Azure TokenCredential to use.

Enumerator values are on par with this PR.

Screenshot/Data

Related Issues

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary README/documentation (if appropriate)

Introducing a new rule?

@moukoublen moukoublen self-assigned this Nov 14, 2023
@moukoublen moukoublen changed the title Add azure credentials type in configuration Add azure credentials type in configuration Nov 14, 2023
@moukoublen moukoublen changed the title Add azure credentials type in configuration Add Azure credentials type in configuration Nov 14, 2023
@moukoublen moukoublen marked this pull request as ready for review November 14, 2023 21:31
@moukoublen moukoublen requested a review from a team as a code owner November 14, 2023 21:31
Copy link

github-actions bot commented Nov 14, 2023

📊 Allure Report - 💚 No failures were reported.

Result Count
🟥 Failed 0
🟩 Passed 39
⬜ Skipped 1

@moukoublen moukoublen requested review from a team and orestisfl November 15, 2023 09:26
@moukoublen moukoublen force-pushed the azure_credentials_type_switch branch from 476b412 to 436e75b Compare November 15, 2023 10:26
},
},
authProviderInitFn: initDefaultCredentialsMock(nil),
want: &AzureFactoryConfig{
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry for being nitpicky but this should probably return an error, it signifies a mismatch between integration and cloubeat

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I added an error in that case. Not in an empty string, though. Empty string fallbacks to default.

@moukoublen moukoublen force-pushed the azure_credentials_type_switch branch from 436e75b to cfa0040 Compare November 15, 2023 10:50
@moukoublen moukoublen requested a review from orestisfl November 15, 2023 11:14
Copy link
Contributor

@orestisfl orestisfl left a comment

Choose a reason for hiding this comment

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

👍

@moukoublen moukoublen force-pushed the azure_credentials_type_switch branch from 4e23a54 to f4ccfcd Compare November 15, 2023 11:27
@moukoublen moukoublen enabled auto-merge (squash) November 15, 2023 11:38
@moukoublen moukoublen merged commit fd06af9 into elastic:main Nov 15, 2023
25 checks passed
@moukoublen moukoublen deleted the azure_credentials_type_switch branch November 15, 2023 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants