Repository navigation
fix(policy): add missing binaries to telegram policy entries - #388
imperator-clawdius wants to merge 2 commits into
Conversation
The telegram entries in openclaw-sandbox.yaml and the telegram preset lacked a binaries field. The OPA engine treats absent binaries as deny-all, so the Node.js gateway (openclaw-gateway) was blocked from reaching api.telegram.org despite the policy listing the endpoint. Also fixes a secondary OPA 'duplicated definition of local variable ep' error that broke L7 enforcement when the preset's telegram_bot entry was merged with the baseline telegram entry — both now declare /usr/local/bin/node as the allowed binary. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
📝 WalkthroughWalkthroughNetwork policy entries for Telegram (host Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip CodeRabbit can use oxc to improve the quality of JavaScript and TypeScript code reviews.Add a configuration file to your project to customize how CodeRabbit runs oxc. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
nemoclaw-blueprint/policies/openclaw-sandbox.yaml (1)
168-169: Minor style inconsistency with otherbinariesentries in this file.The change is functionally correct and resolves the OPA blocking issue. However, other
binariesentries in this file use the inline YAML format (e.g.,- { path: /usr/local/bin/claude }), while this uses the multi-line format. Consider aligning for consistency.🔧 Optional: align with existing style
binaries: - - path: /usr/local/bin/node + - { path: /usr/local/bin/node }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@nemoclaw-blueprint/policies/openclaw-sandbox.yaml` around lines 168 - 169, The binaries entry uses multi-line YAML while other entries use the inline style; change the list item for the "binaries" entry that currently contains path: /usr/local/bin/node to the inline form (e.g., - { path: /usr/local/bin/node }) so it matches the existing style conventions in this file and keeps the "binaries" list consistent.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@nemoclaw-blueprint/policies/openclaw-sandbox.yaml`:
- Around line 168-169: The binaries entry uses multi-line YAML while other
entries use the inline style; change the list item for the "binaries" entry that
currently contains path: /usr/local/bin/node to the inline form (e.g., - { path:
/usr/local/bin/node }) so it matches the existing style conventions in this file
and keeps the "binaries" list consistent.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 7107ee74-33db-4dad-a133-bb6c3239c453
📒 Files selected for processing (2)
nemoclaw-blueprint/policies/openclaw-sandbox.yamlnemoclaw-blueprint/policies/presets/telegram.yaml
|
Sweet code, bro |
tls: terminate + protocol: rest caused the L7 relay to strip query strings before forwarding to api.telegram.org, resulting in 403 responses with no body from Telegram. Switching to access: full passes the CONNECT tunnel through without TLS MITM or HTTP inspection, so query parameters (e.g. timeout, offset) are forwarded intact. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
There was a problem hiding this comment.
🧹 Nitpick comments (1)
nemoclaw-blueprint/policies/openclaw-sandbox.yaml (1)
162-164: Add an inline note explaining whyaccess: fullis required.Please add a short comment near this block capturing the query-string loss issue with
tls: terminate+protocol: rest, so future hardening changes don’t reintroduce the regression.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@nemoclaw-blueprint/policies/openclaw-sandbox.yaml` around lines 162 - 164, Add an inline YAML comment immediately above or beside the access: full line explaining that full access is required to avoid a known regression where using tls: terminate together with protocol: rest causes query-string parameters to be dropped (loss of query-string) during request termination; reference the condition (tls: terminate + protocol: rest) and mention the specific affected binary/path (binaries: path: /usr/local/bin/node) so future hardening changes know why access: full is necessary.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@nemoclaw-blueprint/policies/openclaw-sandbox.yaml`:
- Around line 162-164: Add an inline YAML comment immediately above or beside
the access: full line explaining that full access is required to avoid a known
regression where using tls: terminate together with protocol: rest causes
query-string parameters to be dropped (loss of query-string) during request
termination; reference the condition (tls: terminate + protocol: rest) and
mention the specific affected binary/path (binaries: path: /usr/local/bin/node)
so future hardening changes know why access: full is necessary.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: a6018c5a-0c02-4d86-a3a9-397807bc7226
📒 Files selected for processing (2)
nemoclaw-blueprint/policies/openclaw-sandbox.yamlnemoclaw-blueprint/policies/presets/telegram.yaml
|
Hey
Powered by Cricket Wireless
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: imperator-clawdius ***@***.***>
Sent: Thursday, March 19, 2026 12:46:55 AM
To: NVIDIA/NemoClaw ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [NVIDIA/NemoClaw] fix(policy): add missing binaries to telegram policy entries (PR #388)
Reopened #388<#388>.
—
Reply to this email directly, view it on GitHub<#388 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/B7JTKXNSVYISBG55TBQCVUD4ROCU5AVCNFSM6AAAAACWXOQXHCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMRTG4YDMNBSGQ3DMNA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
|
I need help please I dont no watxto do |
|
How do I get tokens and qat is this git hub about |
|
Thanks for working on this. The same gap was closed by #645 ( |
1 similar comment
|
Thanks for working on this. The same gap was closed by #645 ( |
Problem
Issue 1: Missing
binariesfield (403 on CONNECT)The
telegramentries inopenclaw-sandbox.yamlandpresets/telegram.yamllacked abinaries:field. The OPA engine treats absentbinariesas deny-all, so the Node.js gateway (openclaw-gateway) was blocked from reachingapi.telegram.orgwith 403 Forbidden on the CONNECT tunnel, despite the endpoint being listed in the policy.A secondary issue: applying the
telegrampreset to a sandbox that already has the baselinetelegramentry creates duplicateapi.telegram.org:443definitions across two policy keys (telegram+telegram_bot), triggering an OPAduplicated definition of local variable eperror that breaks L7 enforcement entirely.Issue 2: Query strings stripped by L7 relay (403 no body)
tls: terminate+protocol: restcauses the L7 relay to strip query strings before forwarding requests toapi.telegram.org. Telegram receives calls likegetUpdateswithout parameters (e.g.?timeout=30&offset=123) and returns 403 with no response body.Fix
tls: terminate+ path rules toaccess: full(passthrough tunnel) — preserves query strings and avoids TLS MITMbinaries: [{path: /usr/local/bin/node}]to both entries so the Node.js gateway is permittedTesting
Verified on a live NemoClaw sandbox — proxy logs confirm connections switched from
CONNECT_L7to plainCONNECT, and the Telegram bot API (getUpdates,getMe,getWebhookInfo,sendMessage) is fully operational.Summary by CodeRabbit