feat(controlplane): filter referrer discovery by project name and version#3158
feat(controlplane): filter referrer discovery by project name and version#3158migmartri wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
1 issue found across 15 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
36d60ab to
92f57b3
Compare
AI Session Analysis
|
| Status | Attribution | File | Lines |
|---|---|---|---|
| modified | ai | app/controlplane/pkg/biz/referrer_integration_test.go |
+91 / -0 |
| modified | ai | app/controlplane/pkg/data/referrer.go |
+84 / -3 |
| modified | ai | app/controlplane/pkg/biz/referrer.go |
+22 / -8 |
| modified | human | app/controlplane/api/controlplane/v1/referrer.proto |
+20 / -0 |
| modified | human | app/controlplane/api/gen/openapi/openapi.yaml |
+19 / -0 |
| modified | human | app/controlplane/internal/service/referrer.go |
+12 / -2 |
| modified | human | app/cli/pkg/action/referrer_discover.go |
+3 / -0 |
Policies (4)
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-593298 |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-593298 |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-593298 |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-593298 |
- |
Powered by Chainloop and Chainloop Trace
…sion Add optional project_name and project_version filters to the private referrer discovery endpoint (DiscoverPrivate). When both are provided, the discovered referrer and its references are confined to the matching project version, resolved by entering from the project version's workflow runs so the lookup stays bounded regardless of how widely a material is shared. Mark the deprecated public shared discovery endpoint as deprecated in the proto. Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: 593298f0-05bd-408b-9767-5472afe1caec
92f57b3 to
1641767
Compare
Closes #3155
Adds optional
project_nameandproject_versionfilters to the private referrer discovery endpoint (DiscoverPrivate). When both are supplied, the discovered referrer and its references are confined to the matching project version:Version membership is resolved by entering from the project version's workflow runs, so the lookup stays bounded regardless of how widely a material is shared. The two fields must be provided together (a version name is unique only within a project), enforced via proto validation.
The deprecated public shared discovery endpoint is marked as deprecated in the proto.
This change was developed with AI assistance (Claude Code).