Skip to content

feat(stream-microsoft-sentinel-intel): add native azure auth (#7063)#7064

Open
Renizmy wants to merge 3 commits into
OpenCTI-Platform:masterfrom
Renizmy:feat/stream-sentinel-add-default-azure-auth
Open

feat(stream-microsoft-sentinel-intel): add native azure auth (#7063)#7064
Renizmy wants to merge 3 commits into
OpenCTI-Platform:masterfrom
Renizmy:feat/stream-sentinel-add-default-azure-auth

Conversation

@Renizmy

@Renizmy Renizmy commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Proposed changes

  • Add DefaultAzureCredentials() fallback

Related issues

Checklist

  • I consider the submitted work as finished
  • I have signed my commits using GPG key.
  • I tested the code for its functionality using different use cases
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Copilot AI review requested due to automatic review settings July 20, 2026 18:58
@Renizmy Renizmy changed the title type(stream-microsoft-sentinel-intel): add native azure auth (#7063) feat(stream-microsoft-sentinel-intel): add native azure auth (#7063) Jul 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Microsoft Sentinel Intel stream connector to support “native” Azure authentication by falling back to DefaultAzureCredential when explicit app-registration credentials aren’t provided, aligning the connector with Managed Identity / Workload Identity use cases from #7063.

Changes:

  • Make tenant_id, client_id, and client_secret optional and validate they are provided consistently (all-or-none).
  • Add runtime fallback to DefaultAzureCredential when app-registration credentials are not set.
  • Update documentation and generated metadata to reflect the new authentication options.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
stream/microsoft-sentinel-intel/src/microsoft_sentinel_intel/settings.py Makes Azure app-registration fields optional and adds a config-level consistency validator.
stream/microsoft-sentinel-intel/src/microsoft_sentinel_intel/client.py Chooses between ClientSecretCredential and DefaultAzureCredential for ARM auth.
stream/microsoft-sentinel-intel/README.md Documents the two auth modes and updates setup guidance/snippets.
stream/microsoft-sentinel-intel/docker-compose.yml Adds guidance comments for optional auth env vars in the example compose file.
stream/microsoft-sentinel-intel/metadata/connector_config_schema.json Updates schema defaults/required fields to reflect optional auth variables.
stream/microsoft-sentinel-intel/metadata/CONNECTOR_CONFIG_DOC.md Updates generated config documentation to mark auth vars as optional with null default.

Comment thread stream/microsoft-sentinel-intel/docker-compose.yml Outdated
Comment thread stream/microsoft-sentinel-intel/README.md Outdated
…enCTI-Platform#7064

Use explicit is-not-None checks for the auth credential selection and
reject blank/whitespace-only tenant_id/client_id/client_secret at
config validation instead of letting them silently fall through to
DefaultAzureCredential. Also comment out the app-registration example
vars in docker-compose.yml/README.md so copying the example verbatim
uses DefaultAzureCredential by default, apply black formatting, and
add settings test coverage for the auth fallback.
@Renizmy Renizmy changed the title feat(stream-microsoft-sentinel-intel): add native azure auth (#7063) feat(stream-microsoft-sentinel-intel): add native azure auth (#7063) Jul 20, 2026
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.

feat(stream-microsoft-sentinel-intel): Add native azure auth

3 participants