Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nemoclaw-blueprint/policies/presets/outlook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ network_policies:
rules:
- allow: { method: GET, path: "/**" }
- allow: { method: POST, path: "/**" }
- allow: { method: PATCH, path: "/**" }
- host: login.microsoftonline.com
port: 443
protocol: rest
Expand Down
8 changes: 8 additions & 0 deletions test/policies.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,14 @@ describe("policies", () => {
}
});

it("outlook preset allows PATCH on graph.microsoft.com", () => {
// Microsoft Graph API uses PATCH for common email and calendar operations:
// marking messages as read, updating drafts, modifying calendar events.
const content = policies.loadPreset("outlook");
const graphSection = content.split("host: graph.microsoft.com")[1]?.split("- host:")[0] ?? "";
expect(graphSection).toContain("method: PATCH");
});

it("package-manager presets include binaries section", () => {
// Without binaries, the proxy can't match pip/npm traffic to the policy
// and returns 403.
Expand Down