Repository navigation
Add bounded read-only Azure Monitor connector - #79282
Conversation
Declare a fixed last-hour AzureActivity count for approved workspaces, with minimal checked evidence and a staged GitHub handoff example. Add offline Go/Node conformance and compilation coverage. Document external Entra token renewal and defer runtime-managed client credentials. Co-authored-by: Copilot App <[email protected]>
|
✅ Test Quality Sentinel completed test quality analysis. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🔎 PR Code Quality Reviewer is reviewing code quality for this pull request... |
|
✅ Ponytail Reviewer completed successfully! Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
🚀 PR Specification Reviewer has started processing this pull request |
|
Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. Warning The Design Decision Gate: Draft ADR AddedThis PR needs ADR enforcement. Its Draft ADR
Next actionReview the draft. Resolve the two Evidence usedReferences: §44538835643
|
There was a problem hiding this comment.
🟡 Changes recommended
The new provider breaks the CLI test’s expected file count, while incorrect token-audience guidance and rejection assertions that mask request-count failures leave additional issues unresolved.
3 open issues
What changed in this PR
Adds an experimental Azure Monitor connector to gh-aw for reading a bounded, last-hour activity count from an explicitly approved Log Analytics workspace.
Changes:
- Declares a fixed GET query with exact workspace grants, response validation, and count-only projection.
- Adds a source-only consumer that stages one GitHub issue, plus external-token setup and evidence-limit documentation.
- Extends mocked Go/Node conformance, compiler-matrix, and setup-discovery coverage.
| File | Description |
|---|---|
pkg/workflow/connector_scenario_compile_test.go |
Adds Azure Monitor to the connector compiler matrix. |
pkg/workflow/azure_monitor_connector_test.go |
Tests request constraints, response validation, and Go/Node parity. |
pkg/cli/workflows/azure-monitor-golden.md |
Provides a minimal staged-handoff consumer. |
pkg/cli/connector_setup_repository_test.go |
Includes Azure Monitor in canonical setup checks. |
docs/src/content/docs/reference/connectors.md |
Documents selection, authentication, and evidence limits. |
.github/workflows/connectors/azure-monitor.md |
Declares the bounded reader, credential reference, grants, and setup guidance. |
Review effort: Max (adaptive)
| @@ -0,0 +1,210 @@ | |||
| --- | |||
| connectors: | |||
| azure-monitor: | |||
| phase: agent | ||
| header: Authorization | ||
| scheme: bearer | ||
| scopes: [https://api.loganalytics.azure.com/.default] |
| for (const [name,body] of Object.entries(fixture.invalidResponses)) | ||
| await assert.rejects(execute(body),undefined,name); | ||
| for (const status of [302,401,403,429,500]) | ||
| await assert.rejects(execute(fixture.valid,status)); |
|
Warning Threat detection engine error Threat detection could not complete its analysis due to a tooling error. This is not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs to troubleshoot the error. 🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering. Structured data{
"completed_task": 0,
"head": "ac19259983a9fdbdc70de1f87f126e4cf289fd4c",
"kind": "requested",
"schema_version": "1",
"state": "b19631f5d2071cf7914f16d00665a52749346a5d5b3350ecf0c38533b3f2a8a8",
"work": [
"070b5fed6c77e6f99af8aa0864293d562a676d9316dad5428bdc04c242733226",
"34f38971738f6a752a646bd7797a6c8d47fb096e4eb6f91e946a91255433c8c4",
"51e2287c3d1ee41b7e13769862add61dcd292a623cf943abc5968c984e246bcf",
"605999039161dc04ceaf57ff7a10c683e6edf6cd081db10dc8997ebc23881cb4",
"714b5042a915633323ab0023be77492b074da067f64c346ebbc7b049579bc828",
"8b8e96afa57abc9c0b1273828ac899c27c0a396da52d9fa477a1de8b83e81d0b",
"fc45f694e6f9d598c97573dd0b8bac2dfcf3e896a207068a5f0e0b3633abc7f5"
],
"workflow": "pr-sous-chef"
}
|
…r-connector Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>


Summary
Add a minimal Azure Monitor integration for manually inspecting one approved Log Analytics workspace without exposing arbitrary KQL or raw log records.
get-activity-count/get_activity_countusing GET, fixedAzureActivity | summarize EventCount=count()KQL, and a fixedPT1Hwindow.Authentication and scope
Uses an existing Entra service-to-service bearer token supplied through
AZURE_MONITOR_READ_ACCESS_TOKEN. Runtime-managed declarative Entra token acquisition and renewal are explicitly deferred to another PR. Reviewing Foundry IQ and Web IQ confirmed the same external-token limitation; neither connector is migrated here.The count is a workspace activity signal, not proof of agent health, complete telemetry, root cause, or deployment correlation. The API does not echo workspace identity; the approved request path establishes the queried target. No Azure writes, dynamic queries, cross-workspace search, or live execution are included.
Validation
make fmtmake recompile(367 workflows compiled)make compile-cli-workflows(including connector goldens)make check-workflow-driftsubsequently passed independently.All provider calls in tests were mocked. Compilation and mocks do not establish live authorization or API compatibility.
Security review
Adds one declared agent-phase secret reference,
AZURE_MONITOR_READ_ACCESS_TOKEN, used only as bearer authentication to the fixed, explicitly approvedapi.loganalytics.azure.comorigin. No secret values were provisioned or read during validation. No new actions, removed secrets/actions, or redirect-policy changes. The connector has no Azure writer credential; the example GitHub issue output is staged. Actual token validity, Azure RBAC, and live provider access remain unverified.