feat(credential-groups): allowlist integrations by workspace - #7885
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
1 issue found across 57 files
Confidence score: 3/5
- In
apps/sim/lib/credentials/application/workspace-account-visibility.ts, stale or cross-scoped enrollment group ownership can cause the policy lookup to rely only oncredential.organizationId, risking incorrect workspace visibility or authorization decisions. Verify the enrollment’s canonicalcredentialGroupowner before queryingrequireResourcePolicy.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/lib/credentials/application/workspace-account-visibility.ts">
<violation number="1" location="apps/sim/lib/credentials/application/workspace-account-visibility.ts:26">
P2: When an enrollment’s group owner is stale or cross-scoped, this query uses only `credential.organizationId` and never verifies the enrollment’s canonical `credentialGroup` owner. `requireResourcePolicy` is then queried with the wrong scope, so a malformed binding raises a policy-not-found error and breaks credential listing/lookup instead of hiding the entry; join `credentialGroup` and reject owner mismatches before loading its policy.
(Based on your team's feedback about Credential Group ownership.)</violation>
</file>
Tip: instead of fixing issues one by one fix them all with cubic
Re-trigger cubic
|
6238f14 to
b26ea1e
Compare
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
b26ea1e to
18d6048
Compare
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
|
@greptile Please re-review against the current staging merge base, The daily-bucket concern also appears inconsistent with the current query and schema: both source |
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
Summary
Type of Change
Testing
Checklist