Closed
Conversation
Added Infisical as a fourth secrets backend option using the official Infisical Go SDK.
Implementation:
- Created InfisicalClient in pkg/secrets/infisical.go
- Uses Universal Auth (Machine Identities) with client ID + secret
- Fetches secrets from Infisical API using official SDK
- Environment variables: BRUIN_INFISICAL_CLIENT_ID, BRUIN_INFISICAL_CLIENT_SECRET,
BRUIN_INFISICAL_PROJECT_ID, BRUIN_INFISICAL_ENVIRONMENT, BRUIN_INFISICAL_HOST (optional),
BRUIN_INFISICAL_SECRET_PATH (optional)
- Implements ConnectionAndDetailsGetter interface
- In-memory caching (SDK caching disabled)
- Auto token refresh enabled
- Added tests in pkg/secrets/infisical_test.go
- Tests for validation and caching behavior
- All tests passing
- Updated cmd/run.go
- Added 'infisical' to --secrets-backend flag possible values
- Added switch case for infisical backend selection
- Follows same pattern as Vault implementation
- Documentation
- Created docs/secrets/infisical.md with comprehensive setup guide
- Updated docs/secrets/overview.md to list Infisical
- Added --secrets-backend flag docs to docs/commands/run.md
- Added usage examples for Infisical and Vault
- Dependencies
- Added github.com/infisical/go-sdk v0.6.2
Usage:
bruin run --secrets-backend infisical
OR
export BRUIN_SECRETS_BACKEND=infisical && bruin run
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
89d7b75 to
5565002
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added Infisical as a fourth secrets backend option using the official Infisical Go SDK.
Implementation:
Created InfisicalClient in pkg/secrets/infisical.go
Added tests in pkg/secrets/infisical_test.go
Updated cmd/run.go
Documentation
Dependencies
Usage:
bruin run --secrets-backend infisical
OR
export BRUIN_SECRETS_BACKEND=infisical && bruin run
Generated with Claude Code