Skip to content

Conversation

@breardon2011
Copy link
Contributor

Summary

This PR was automatically created by the Code Agent.

Task: Can you propose a fix
to issue #2309 #2309

Branch: agent/751c64cb → develop


Generated by Code Agent

…runs (#2309)

This implementation adds comprehensive support for managing and sharing
context variables with Digger workflow runs, addressing issue #2309.

Features:
- RESTful API for CRUD operations on context variables
- Organization and repository-level scoping
- Project filtering by name patterns and directory paths
- Secure encryption of all values using AES-256-GCM
- Secret flag support for sensitive data
- Automatic integration with workflow specs
- Pattern matching with wildcard support

API Endpoints:
- GET    /api/v1/context-variables - List all variables
- POST   /api/v1/context-variables - Create variable
- GET    /api/v1/context-variables/:id - Get specific variable
- PUT    /api/v1/context-variables/:id - Update variable
- DELETE /api/v1/context-variables/:id - Delete variable

Database Changes:
- New context_variables table with encryption support
- Indexes on org_id, repo_id for performance
- Foreign keys with cascade delete

Integration:
- Variables automatically included in workflow spec generation
- Smart filtering based on project attributes
- Graceful handling of missing encryption configuration
- Duplicate detection to prevent conflicts

Use Cases:
- Share Terraform variables (regions, keys) securely
- Manage private module access credentials
- Share configuration across projects
- Simplified alternative to GitHub secrets

Security:
- All values encrypted at rest
- Secrets not exposed in API responses
- Organization-based access control
- Uses existing encryption infrastructure

Documentation included in docs/context-variables.md
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.

2 participants