[azure-eventhub] Add support for managed identity#48655
Conversation
🤖 GitHub commentsJust comment with:
|
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
🔍 Preview links for changed docs |
theletterf
left a comment
There was a problem hiding this comment.
Made some suggestions!
Vale Linting ResultsSummary: 1 suggestion found 💡 Suggestions (1)
The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
Co-authored-by: Fabrizio Ferri-Benedetti <algernon@fastmail.com>
|
@Mergifyio backport 8.19 9.2 9.3 |
✅ Backports have been createdDetails
Cherry-pick of 4f42aad has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
|
Add support for [managed identity](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview) authentication to the `azure-eventhub` input. The input support both system and user-assigned identities. **System-assigned managed identity:** If you want to use system-assigned identity, set `auth_type: managed_identity` and the usual event hub and storage account related settings. Not need to specify authentication settings other than `auth_type`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` **User-assigned managed identity:** If you wan to use a user-assigned identity, you need to set `managed_identity_client_id`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" managed_identity_client_id: "your-user-assigned-identity-client-id" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` Managed identity allows users to deploy the Elastic Agent with including credentials. (cherry picked from commit 4f42aad) # Conflicts: # docs/reference/filebeat/filebeat-input-azure-eventhub.md
Add support for [managed identity](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview) authentication to the `azure-eventhub` input. The input support both system and user-assigned identities. **System-assigned managed identity:** If you want to use system-assigned identity, set `auth_type: managed_identity` and the usual event hub and storage account related settings. Not need to specify authentication settings other than `auth_type`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` **User-assigned managed identity:** If you wan to use a user-assigned identity, you need to set `managed_identity_client_id`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" managed_identity_client_id: "your-user-assigned-identity-client-id" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` Managed identity allows users to deploy the Elastic Agent with including credentials. (cherry picked from commit 4f42aad)
Add support for [managed identity](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview) authentication to the `azure-eventhub` input. The input support both system and user-assigned identities. **System-assigned managed identity:** If you want to use system-assigned identity, set `auth_type: managed_identity` and the usual event hub and storage account related settings. Not need to specify authentication settings other than `auth_type`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` **User-assigned managed identity:** If you wan to use a user-assigned identity, you need to set `managed_identity_client_id`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" managed_identity_client_id: "your-user-assigned-identity-client-id" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` Managed identity allows users to deploy the Elastic Agent with including credentials. (cherry picked from commit 4f42aad)
Add support for [managed identity](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview) authentication to the `azure-eventhub` input. The input support both system and user-assigned identities. **System-assigned managed identity:** If you want to use system-assigned identity, set `auth_type: managed_identity` and the usual event hub and storage account related settings. Not need to specify authentication settings other than `auth_type`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` **User-assigned managed identity:** If you wan to use a user-assigned identity, you need to set `managed_identity_client_id`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" managed_identity_client_id: "your-user-assigned-identity-client-id" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` Managed identity allows users to deploy the Elastic Agent with including credentials. (cherry picked from commit 4f42aad) Co-authored-by: Maurizio Branca <maurizio.branca@elastic.co>
Add support for [managed identity](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview) authentication to the `azure-eventhub` input. The input support both system and user-assigned identities. **System-assigned managed identity:** If you want to use system-assigned identity, set `auth_type: managed_identity` and the usual event hub and storage account related settings. Not need to specify authentication settings other than `auth_type`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` **User-assigned managed identity:** If you wan to use a user-assigned identity, you need to set `managed_identity_client_id`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" managed_identity_client_id: "your-user-assigned-identity-client-id" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` Managed identity allows users to deploy the Elastic Agent with including credentials. (cherry picked from commit 4f42aad) Co-authored-by: Maurizio Branca <maurizio.branca@elastic.co>
Add support for [managed identity](https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview) authentication to the `azure-eventhub` input. The input support both system and user-assigned identities. **System-assigned managed identity:** If you want to use system-assigned identity, set `auth_type: managed_identity` and the usual event hub and storage account related settings. Not need to specify authentication settings other than `auth_type`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` **User-assigned managed identity:** If you wan to use a user-assigned identity, you need to set `managed_identity_client_id`. ```yaml filebeat.inputs: - type: azure-eventhub auth_type: "managed_identity" managed_identity_client_id: "your-user-assigned-identity-client-id" eventhub: "insights-operational-logs" eventhub_namespace: "your-namespace.servicebus.windows.net" consumer_group: "$Default" storage_account: "your-storage-account" ``` Managed identity allows users to deploy the Elastic Agent with including credentials. (cherry picked from commit 4f42aad) # Conflicts: # docs/reference/filebeat/filebeat-input-azure-eventhub.md Co-authored-by: Maurizio Branca <maurizio.branca@elastic.co>
Proposed commit message
Add support for managed identity authentication to the
azure-eventhubinput.The input support both system and user-assigned identities.
System-assigned managed identity:
If you want to use system-assigned identity, set
auth_type: managed_identityand the usual event hub and storage account related settings. Not need to specify authentication settings other thanauth_type.User-assigned managed identity:
If you wan to use a user-assigned identity, you need to set
managed_identity_client_id.Managed identity allows users to deploy the Elastic Agent with including credentials.
Checklist
Where relevant, I have used thestresstest.shscript to run them under stress conditions and race detector to verify their stability../changelog/fragmentsusing the changelog tool.How to test this PR locally
You can follow the detailed step-by-step guide at zmoog/public-notes#118
Related issues