Skip to content

feat: circle ci secret sync#5255

Merged
varonix0 merged 15 commits intomainfrom
luiz/eng-2937-create-circle-ci-secret-sync-app-connection
Jan 28, 2026
Merged

feat: circle ci secret sync#5255
varonix0 merged 15 commits intomainfrom
luiz/eng-2937-create-circle-ci-secret-sync-app-connection

Conversation

@luizbafilho
Copy link
Contributor

Context

Screenshots

Steps to verify the change

Type

  • Fix
  • Feature
  • Improvement
  • Breaking
  • Docs
  • Chore

Checklist

  • Title follows the conventional commit format: type(scope): short description (scope is optional, e.g., fix: prevent crash on sync or fix(api): handle null response).
  • Tested locally
  • Updated docs (if needed)
  • Read the contributing guide

This commit adds comprehensive support for CircleCI as an app connection type, including backend services, routes, frontend forms, and type definitions. CircleCI connections use Personal Access Token authentication method.
Implement full support for CircleCI as a secret sync destination, including:
- CircleCI project listing via API connection
- Secret syncing to CircleCI environment variables
- Backend router endpoints and service layer
- Frontend forms, types, and UI components
- Integration with existing secret sync framework
@maidul98
Copy link
Collaborator

maidul98 commented Jan 23, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 23, 2026

Greptile Overview

Greptile Summary

This PR adds CircleCI secret sync functionality to Infisical, allowing users to sync secrets from Infisical to CircleCI project environment variables.

Key Changes:

  • Implemented CircleCI app connection support with API token authentication
  • Added secret sync functionality supporting create, update, and delete operations
  • Created comprehensive documentation for both app connections and secret syncs
  • Added UI components for configuring CircleCI connections and syncs
  • Properly handles pagination when listing CircleCI environment variables

Issues Found:

  • Documentation contains field name inconsistencies in API examples (apiKey vs apiToken, api-key vs api-token)
  • The unused existingEnvVarNames variable issue mentioned in previous reviews has been fixed in this version

The implementation follows the existing patterns for other secret sync integrations in the codebase, maintaining consistency across the system.

Confidence Score: 4/5

  • This PR is safe to merge with minor documentation fixes needed
  • The implementation is solid and follows established patterns. The code quality is good with proper error handling and validation. However, the documentation has syntax errors in API examples that need correction before merge to avoid customer confusion.
  • docs/integrations/app-connections/circleci.mdx requires corrections to API example field names

Important Files Changed

Filename Overview
backend/src/services/secret-sync/circleci/circleci-sync-fns.ts Implements CircleCI secret sync logic with proper error handling and pagination. Fixed unused existingEnvVarNames variable issue from previous review.
backend/src/services/app-connection/circleci/circleci-connection-fns.ts Handles CircleCI connection validation and organization listing. Properly validates API tokens against CircleCI's API.
docs/integrations/app-connections/circleci.mdx Documentation for CircleCI app connection. Contains inconsistencies in API examples (uses apiKey instead of apiToken, and api-key instead of api-token).
backend/src/services/secret-sync/circleci/circleci-sync-schemas.ts Defines Zod schemas for CircleCI sync configuration. Properly validates required fields for organization, project name, and project ID.
backend/src/services/app-connection/circleci/circleci-connection-schemas.ts Defines Zod schemas for CircleCI connection credentials. Uses apiToken field for API token authentication.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

2 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

@varonix0 varonix0 changed the title Add CircleCI app connection support feat: circle ci secret sync Jan 24, 2026
@varonix0
Copy link
Member

@greptile re-review this

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

4 files reviewed, 4 comments

Edit Code Review Agent Settings | Greptile

@varonix0
Copy link
Member

@greptile re-review this with the context of my comments to your comments in mind and update your summary

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

2 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

@varonix0 varonix0 merged commit 0783520 into main Jan 28, 2026
12 of 13 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.

4 participants