Repository navigation
shvma - offline policy lint (#4035) #5038
Replies: 1 comment
|
Update: shiju-nv picked up #4035 in #5358, so I'm switching to #4514. What do you want to work on? #4514: the Go SDK never uses the stored refresh token, so an expired login always goes back to the browser. I reproduced it and posted the details here: #4514 (comment). rhuss agreed to split the fix: the first part of the SDK fix is in ai-openshell/sdk-go#48, and the CLI part goes in this repo. Here, I want to make store_oidc_token write oidc_token.json atomically: write to a temp file in the same directory, then rename over the target, with a short retry on Windows, since the rename can transiently fail with a sharing violation if another process still has the file open. Why this change? The CLI currently writes the token file in place, so an SDK reading it at the same time can see an empty file and ask for a new login. About me I'm a security engineer: I build testbeds that check which controls hold up against misbehaving MCP servers and coding agents, including a side-by-side of Anthropic's sandbox-runtime and NVIDIA OpenShell. My background is infrastructure security (DLP, NGFW, PKI, SIEM). While reading OpenAPPA's shipped Google Drive contract I found a gap: writes to a file or folder shared outside the organization needed no review, so internal data could end up there. I reported it in archestra-ai/OpenAPPA#747, the maintainers fixed it in #750, and I wrote a linter that flags operations like it. |
Uh oh!
There was an error while loading. Please reload this page.
What do you want to work on?
I'd like to implement #4035,
openshell policy lint <file>. I'll use the bounded parser and policy types inopenshell-policy-schema, then run the semantic checks inopenshell-policyand the existing middleware validators, as shiju-nv suggested. The command will work without a gateway and report errors in the file. I'll move any checks it needs from the gateway into shared code so both paths use the same validationWhy this change?
I keep OpenShell policies alongside my project and want to check changes in CI before they're merged. An offline lint command would catch invalid policy files without needing gateway credentials or a running gateway. I could also run the same check locally before opening a PR.
Checklist
All reactions