feat(dagger): Allow to use enterprise CLI from Dagger OSS module#3147
Conversation
Add --enterprise and --cli-version optional parameters to the Dagger module constructor. When enterprise mode is enabled, the module uses ghcr.io/chainloop-dev/platform/cli instead of the OSS image. The bump script now fetches the platform version from the infoz endpoint. Assisted-by: Claude Code Signed-off-by: Javier Rodriguez <javier@chainloop.dev> Chainloop-Trace-Sessions: 8a5a6956-cc02-47f6-9366-bb732b59ecf7
Signed-off-by: Javier Rodriguez <javier@chainloop.dev> Chainloop-Trace-Sessions: 8a5a6956-cc02-47f6-9366-bb732b59ecf7
AI Session Analysis
|
| Status | Attribution | File | Lines |
|---|---|---|---|
| modified | ai | extras/dagger/main.go |
+65 / -24 |
| modified | ai | .github/workflows/utils/bump-chart-and-dagger-version.sh |
+6 / -0 |
Policies (4)
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-8a5a69 |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-8a5a69 |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-8a5a69 |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-8a5a69 |
- |
Powered by Chainloop and Chainloop Trace
migmartri
left a comment
There was a problem hiding this comment.
Thanks
- I don't think we need to support configuring the version of the underlying image, we can't guarantee compatibility of the wrapping module and the underlying image if you can choose it. It's not how the current oss works either.
Signed-off-by: Javier Rodriguez <javier@chainloop.dev> Chainloop-Trace-Sessions: 8a5a6956-cc02-47f6-9366-bb732b59ecf7
Signed-off-by: Javier Rodriguez <javier@chainloop.dev> Chainloop-Trace-Sessions: 8a5a6956-cc02-47f6-9366-bb732b59ecf7
|
Updated the PR to allow the customization of Platform's CAs and endpoint address. |
This pull request introduces support for using the enterprise version of the Chainloop CLI in the Dagger integration, along with enhanced configuration for the platform API and improved flexibility in CLI container setup. The main changes add the ability to select between the open-source and enterprise CLI images, configure the platform API endpoint and custom CA, and ensure these options are properly propagated throughout the codebase.
Enterprise CLI Support
Added a new
Enterprisefield and constructor argument to theChainloopstruct, allowing users to specify whether to use the enterprise CLI image (ghcr.io/chainloop-dev/platform/cli) or the open-source CLI image (ghcr.io/chainloop-dev/chainloop/cli). The correct image and version are now selected based on this flag. [1] [2] [3] [4] [5]Updated the automation script
.github/workflows/utils/bump-chart-and-dagger-version.shto automatically fetch and update the enterprise CLI version from the platform info endpoint.Platform API Configuration
InstanceInfostruct and related methods to support specifying a custom platform API endpoint and custom CA file, which are now passed as environment variables and files to the CLI container. [1] [2] [3] [4]These changes provide more flexibility for users with enterprise requirements and improve the configuration options for connecting to different Chainloop platform environments.