Skip to content

feat(rmf): Collect from Azure in evidence tab - #1

Merged
clarked-msft merged 4 commits into
feature/rmf-integrationfrom
feature/rmf-evidence-mcp
Jul 31, 2026
Merged

feat(rmf): Collect from Azure in evidence tab#1
clarked-msft merged 4 commits into
feature/rmf-integrationfrom
feature/rmf-evidence-mcp

Conversation

@clarked-msft

Copy link
Copy Markdown
Owner
  • Add start_rmf_collect / get_rmf_collect_job to functions_rmf.py
  • Add POST /api/rmf/workspace/evidence/collect and GET .../collect/jobs/<job_id> routes to route_backend_rmf.py
  • Add rmf-collect.js: form wiring, job polling, live log, evidence refresh
  • Add Collect from Azure card to evidence tab in rmf_workspace.html (subscription ID, resource group, agentic toggle, status badge + log)

clarked-msft and others added 4 commits July 31, 2026 10:16
- Add start_rmf_collect / get_rmf_collect_job to functions_rmf.py
- Add POST /api/rmf/workspace/evidence/collect and
  GET .../collect/jobs/<job_id> routes to route_backend_rmf.py
- Add rmf-collect.js: form wiring, job polling, live log, evidence refresh
- Add Collect from Azure card to evidence tab in rmf_workspace.html
  (subscription ID, resource group, agentic toggle, status badge + log)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3402ff43-7857-401e-99f5-9a34dd704d0e
The GET /api/rmf/workspace/evidence/collect/jobs/<job_id> handler was
calling _rmf_group_context(user_id) with one argument — the function
requires two (user_id, allowed_roles). This raised a TypeError, which
Flask returned as an HTML 500 page. The JS poll then failed with
'Unexpected token < ... is not valid JSON'.

Fix: pass allowed_roles=RMF_EVIDENCE_MANAGER_ROLES (matching the POST
route). Also harden the JS poll to check r.ok before r.json() so any
future HTTP errors surface a readable status code instead of a parse error.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The evidence tab change accidentally dropped id="rmf-analysis" from the
analysis section. Bootstrap uses that id as the tab target, so the analysis
pane no longer activated even though the backend endpoints were healthy.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3402ff43-7857-401e-99f5-9a34dd704d0e
The static az-CLI path is gone; collect is always agentic. Drop the
toggle from the UI and hardcode agentic:true in the POST body.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 3402ff43-7857-401e-99f5-9a34dd704d0e
@clarked-msft
clarked-msft merged commit 56f9abd into feature/rmf-integration Jul 31, 2026
1 check passed
@clarked-msft
clarked-msft deleted the feature/rmf-evidence-mcp branch July 31, 2026 17:41
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.

1 participant