Skip to content

Add detected requirements for secrets, vars, and environments - #31

Merged
BotCoder254 merged 1 commit into
mainfrom
feat/log-chunk-sections
Jul 16, 2026
Merged

Add detected requirements for secrets, vars, and environments#31
BotCoder254 merged 1 commit into
mainfrom
feat/log-chunk-sections

Conversation

@BotCoder254

@BotCoder254 BotCoder254 commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Implement sync-time workflow reference discovery and dispatch-time missing-configuration detection. Workflows now record which secrets, variables, and environments they reference via YAML metadata. Two new read endpoints compute "referenced but not configured" sets at query time, and UI cards offer one-click create flows to satisfy them. Names only—never values. Adds database queries, handlers, enhanced workflow parsing, frontend components, and types for the full feature flow including preset dialogs and bound-workflow listings.

Summary by CodeRabbit

  • New Features

    • Detects workflow-referenced secrets and environments that are not yet configured.
    • Adds one-click Add and Create actions for detected requirements.
    • Displays workflows bound to each environment.
    • Shows referenced variables for visibility.
    • Adds workflow parsing support for secret, variable, and environment references.
  • Improvements

    • Simplified the artifacts summary to focus on key storage metrics.
    • Validates and limits detected requirement results for safer, clearer displays.

Implement sync-time workflow reference discovery and dispatch-time missing-configuration detection. Workflows now record which secrets, variables, and environments they reference via YAML metadata. Two new read endpoints compute "referenced but not configured" sets at query time, and UI cards offer one-click create flows to satisfy them. Names only—never values. Adds database queries, handlers, enhanced workflow parsing, frontend components, and types for the full feature flow including preset dialogs and bound-workflow listings.
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
overup Ready Ready Preview, Comment Jul 16, 2026 12:49pm

@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for overup-app ready!

Name Link
🔨 Latest commit 9f296fd
🔍 Latest deploy log https://app.netlify.com/projects/overup-app/deploys/6a58d35891338f0008057c5d
😎 Deploy Preview https://deploy-preview-31--overup-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: aff01994-b1cb-4c03-a326-56185af1708d

📥 Commits

Reviewing files that changed from the base of the PR and between a5e3383 and 9f296fd.

📒 Files selected for processing (21)
  • CLAUDE.md
  • backend/src/db/workflows.rs
  • backend/src/handlers/environments.rs
  • backend/src/handlers/secrets.rs
  • backend/src/routes/mod.rs
  • backend/src/services/workflow_parse.rs
  • src/features/artifacts/components/ArtifactsSummaryStrip.tsx
  • src/features/environments/api/environmentsApi.ts
  • src/features/environments/components/DetectedEnvironmentsCard.tsx
  • src/features/environments/components/EnvironmentFormDialog.tsx
  • src/features/environments/hooks/useEnvironments.ts
  • src/features/environments/pages/EnvironmentDetailPage.tsx
  • src/features/environments/pages/EnvironmentsPage.tsx
  • src/features/secrets/api/secretsApi.ts
  • src/features/secrets/components/DetectedRequirementsCard.tsx
  • src/features/secrets/components/SecretFormDialog.tsx
  • src/features/secrets/hooks/useSecrets.ts
  • src/features/secrets/pages/SecretsPage.tsx
  • src/types/environment.ts
  • src/types/requirements.ts
  • src/types/secret.ts

📝 Walkthrough

Walkthrough

Workflow synchronization now records normalized secret, variable, and environment references. Authorized backend endpoints expose missing requirements and environment bindings, while secrets and environments pages offer seeded creation flows. The artifact summary strip is reduced to four KPI cells.

Changes

Detected workflow requirements

Layer / File(s) Summary
Reference discovery and contracts
src/types/requirements.ts, src/types/environment.ts, src/types/secret.ts, backend/src/services/workflow_parse.rs, CLAUDE.md
Workflow parsing detects normalized secret, variable, and environment references, stores them in metadata, and defines shared requirement response types and documentation.
Requirement queries and API endpoints
backend/src/db/workflows.rs, backend/src/handlers/secrets.rs, backend/src/handlers/environments.rs, backend/src/routes/mod.rs
Workspace queries identify missing configured resources and bound workflows; authorized routes return filtered, capped requirement data.
Detected secrets and variables flow
src/features/secrets/api/secretsApi.ts, src/features/secrets/hooks/useSecrets.ts, src/features/secrets/components/DetectedRequirementsCard.tsx, src/features/secrets/components/SecretFormDialog.tsx, src/features/secrets/pages/SecretsPage.tsx
The secrets page loads detected references, displays missing secrets and informational variables, and opens a prefilled, optionally repository-scoped creation dialog.
Detected environments and bindings flow
src/features/environments/api/environmentsApi.ts, src/features/environments/hooks/useEnvironments.ts, src/features/environments/components/DetectedEnvironmentsCard.tsx, src/features/environments/components/EnvironmentFormDialog.tsx, src/features/environments/pages/EnvironmentsPage.tsx, src/features/environments/pages/EnvironmentDetailPage.tsx
The environments page displays missing names and opens a prefilled creation dialog; environment details list bound workflows.

Artifact summary layout

Layer / File(s) Summary
Artifact KPI strip
src/features/artifacts/components/ArtifactsSummaryStrip.tsx
The summary strip now shows Artifacts, Available, Expiring in 7 days, and Total size in a four-column layout.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant WorkflowSync
  participant WorkflowParser
  participant WorkflowsMetadata
  participant RequirementsAPI
  participant RequirementsPage
  WorkflowSync->>WorkflowParser: parse workflow YAML
  WorkflowParser->>WorkflowsMetadata: store normalized references
  RequirementsPage->>RequirementsAPI: request workspace requirements
  RequirementsAPI->>WorkflowsMetadata: query stored references
  WorkflowsMetadata-->>RequirementsAPI: missing requirements and bindings
  RequirementsAPI-->>RequirementsPage: filtered requirement names and references
Loading

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Comment @coderabbitai help to get the list of available commands.

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This PR successfully implements workflow requirement detection for secrets, variables, and environments. The implementation demonstrates strong engineering practices with comprehensive validation, proper security measures, and good test coverage.

Key Strengths:

  • Robust workflow YAML parsing with security protections (node budget limits, depth caps)
  • SQL injection prevention through parameterized queries
  • Comprehensive input validation throughout
  • Proper authorization checks on all endpoints
  • Extensive test coverage for parsing logic
  • Secure secret handling with zeroizing buffers

The code is ready for merge.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@BotCoder254
BotCoder254 merged commit 80a5598 into main Jul 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant