Skip to content

[comp] Production Deploy#3069

Merged
tofikwest merged 8 commits into
releasefrom
main
Jun 9, 2026
Merged

[comp] Production Deploy#3069
tofikwest merged 8 commits into
releasefrom
main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Runs task evidence checks across all connected accounts and updates the task UI to show per‑account results. Also respects the “Send portal invite email” opt‑out so members can be added silently.

  • Bug Fixes
    • Cloud security checks: manual run executes for every active account of the provider; task status aggregates across accounts; /runs is tenant‑scoped and returns the latest per (connection, check) with connectionId and a connection label; clamps ?limit= and rejects inactive referenced connections.
    • People invites: send portal invite only when sendPortalEmail is true; do not surface emailSent on intentional skips to avoid false warnings.

Written for commit 5046926. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 5 commits June 9, 2026 16:19
…ccounts

A task's evidence check (e.g. AWS S3 — default encryption) only ran against
the customer's FIRST connected account: the run-check endpoint ran the single
referenced connectionId, and the task card showed only the latest single run.
Customers with multiple AWS accounts saw results for just one of them.

Manual Run now runs the check against EVERY active account of the provider
(one IntegrationCheckRun per account, preserving reconciliation's per-connection
findingKey diffing) and aggregates task status across all of them. The
scheduler already ran every account per-connection, so it needs no run-level
change — the same display fix surfaces all accounts for scheduled runs too.

Display: /runs now guarantees the latest run per (connection, check) via a
groupBy + completeness query (a flat row limit could bury an account behind a
busier one's re-runs) and returns connectionId + a connection label. The task
card groups runs per account and aggregates the header across accounts;
single-account layout is unchanged. Covers all AWS check services (s3,
cloudtrail, ec2, iam, kms, rds) since the change is account-level, not
per-service.

Extracted CheckRunItem/GroupedCheckRuns into check-run-history.tsx (the source
file was 1610 lines) and added pure grouping helpers. DS migration of the moved
legacy imports is intentionally out of scope (verbatim move; parent tree still
uses them).

Tests: per-account run loop + aggregate status + bad-account resilience
(controller), latest-per-account completeness under a re-run burst (repository),
account label branches (util), and run grouping/summary (app).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…sers

When adding a user via "+ Add User" on the People page, unchecking
"Send portal invite email" did not suppress the email. The frontend and
DTO correctly passed sendPortalEmail through, but addEmployeeWithoutInvite
(taken for strictly-employee roles) still emailed the user in its else
branch — sending an InviteEmail with a portal link instead of nothing.

Now the portal invite email is sent only when requested. When opted out,
the member is added silently. The caller also stops surfacing emailSent on
an intentional skip, so the UI's "invite email could not be sent" warning
no longer fires when the admin deliberately suppressed the email.

Updates two existing specs that asserted the old always-send behavior and
adds a regression test for the employee opt-out path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…onnections

Addresses two cubic review findings on PR #3067:

- check-run.repository.ts: clamp historyPerGroup (which flows from the
  user-supplied ?limit= query param via parseInt → possibly NaN/negative/huge)
  to [1, 50], defaulting to 5, so it can never produce an invalid Prisma take
  (500) or an unbounded, expensive read.
- task-integrations.controller.ts: restore the active-status guard on the
  referenced connection (dropped during the run-all-accounts refactor) so a
  manual run rejects an inactive connection up front; the empty-active fallback
  can now only ever contain a verified-active connection.

Tests: historyPerGroup clamp (oversized → cap, NaN/negative → default) and
inactive-connection rejection.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fix(people): respect "Send portal invite email" opt-out when adding users
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app (staging) Ready Ready Preview, Comment Jun 9, 2026 9:07pm
comp-framework-editor (staging) Ready Ready Preview, Comment Jun 9, 2026 9:07pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
portal (staging) Skipped Skipped Jun 9, 2026 9:07pm

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

tofikwest and others added 3 commits June 9, 2026 16:52
Addresses a cubic finding on PR #3067 (pre-existing on main): GET
:taskId/runs read check runs by taskId with no organization check, so an
arbitrary taskId from another org would leak cross-tenant run data (account
ids, connection labels, logs).

Add @organizationId and validate the task belongs to the caller's org (404
otherwise) before returning runs — mirroring runCheckForTask / getChecksForTask.

Test: rejects a task outside the caller's org and never queries runs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…unts

fix(cloud-security): run task evidence checks against all connected accounts
@vercel vercel Bot temporarily deployed to staging – portal June 9, 2026 21:04 Inactive
@tofikwest tofikwest merged commit cc250bd into release Jun 9, 2026
12 of 13 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.74.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants