feat(policies): add option to ignore CLI compatibility when resolving policies#3242
Conversation
AI Session Analysis
|
| Status | Attribution | File | Lines |
|---|---|---|---|
| modified | ai | app/controlplane/pkg/policies/policyprovider.go |
+51 / -10 |
| modified | ai | app/controlplane/pkg/policies/policyprovider_http_test.go |
+52 / -0 |
| modified | ai | app/controlplane/pkg/biz/workflowcontract.go |
+14 / -7 |
Policies (4)
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-dbb001 |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-dbb001 |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-dbb001 |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-dbb001 |
- |
Powered by Chainloop and Chainloop Trace
There was a problem hiding this comment.
1 issue found across 3 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
0f7edbe to
57f2d12
Compare
… policies Add a WithIgnoreCLICompatibility resolve option that forwards the include_all_versions query parameter to the policy provider, making it skip CLI-version compatibility resolution and return the true latest revision instead of the latest revision compatible with the requesting CLI version. The control-plane contract-save validation path uses the option because it is a non-CLI caller; the attestation RPC path (a CLI caller) keeps the default behavior. Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
57f2d12 to
b576973
Compare
Adds a
WithIgnoreCLICompatibilityresolve option to the policy provider client. When set, it forwards theinclude_all_versionsquery parameter to the policy provider, which makes the provider skip CLI-version compatibility resolution and return the true latest revision of a policy or policy group instead of the latest revision compatible with the requesting CLI version.The control-plane contract-save validation path now uses this option because it is a non-CLI caller and should resolve the true latest revision. The attestation RPC path (a CLI caller) keeps the default CLI-compatibility behavior.
This contribution was developed with the assistance of Claude Code.
🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri