Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Operators can set up third-party integrations such as [Dependency-Track](https:/

Ops can mix and match with different integrations while **not requiring developers to make any changes on their side**!

You can see the list of available integrations by running `chainloop integration available list` or by browsing [their source code](./app/controlplane/extensions/).
You can see the list of available integrations by running `chainloop integration available list` or by browsing [their source code](./app/controlplane/plugins/).

### Role-tailored experience

Expand Down
2 changes: 1 addition & 1 deletion app/cli/cmd/available_integration_describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"sort"

"github.com/chainloop-dev/chainloop/app/cli/internal/action"
"github.com/chainloop-dev/chainloop/app/controlplane/extensions/sdk/v1"
"github.com/chainloop-dev/chainloop/app/controlplane/plugins/sdk/v1"
"github.com/jedib0t/go-pretty/v6/table"
"github.com/jedib0t/go-pretty/v6/text"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion app/cli/cmd/registered_integration_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strings"

"github.com/chainloop-dev/chainloop/app/cli/internal/action"
"github.com/chainloop-dev/chainloop/app/controlplane/extensions/sdk/v1"
"github.com/chainloop-dev/chainloop/app/controlplane/plugins/sdk/v1"
"github.com/santhosh-tekuri/jsonschema/v5"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion app/cli/internal/action/available_integration_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"

pb "github.com/chainloop-dev/chainloop/app/controlplane/api/controlplane/v1"
"github.com/chainloop-dev/chainloop/app/controlplane/extensions/sdk/v1"
"github.com/chainloop-dev/chainloop/app/controlplane/plugins/sdk/v1"
"github.com/santhosh-tekuri/jsonschema/v5"
)

Expand Down
4 changes: 2 additions & 2 deletions app/cli/internal/action/registered_integration_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewRegisteredIntegrationAdd(cfg *ActionsOpts) *RegisteredIntegrationAdd {
return &RegisteredIntegrationAdd{cfg}
}

func (action *RegisteredIntegrationAdd) Run(extensionID, description string, options map[string]any) (*RegisteredIntegrationItem, error) {
func (action *RegisteredIntegrationAdd) Run(pluginID, description string, options map[string]any) (*RegisteredIntegrationItem, error) {
// Transform to structpb for transport
requestConfig, err := structpb.NewStruct(options)
if err != nil {
Expand All @@ -40,7 +40,7 @@ func (action *RegisteredIntegrationAdd) Run(extensionID, description string, opt

client := pb.NewIntegrationsServiceClient(action.cfg.CPConnection)
i, err := client.Register(context.Background(), &pb.IntegrationsServiceRegisterRequest{
ExtensionId: extensionID,
PluginId: pluginID,
Config: requestConfig,
Description: description,
})
Expand Down
4 changes: 2 additions & 2 deletions app/controlplane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ It's implemented following(ish) [Hexagonal architecture](https://netflixtechblog
- Business layer `./internal/biz`. Implementation of use-cases referenced by the service layer and definition of the data repository abstractions.
- Data layer `./internal/data`. Implementation of data repositories interfaces defined in the business layer.

## Extensions
## Plugins

The source code and documentation for the different supported extensions can be found at `./extensions`.
The source code and documentation for the different supported plugins can be found at `./plugins`.

## System Dependencies

Expand Down
449 changes: 224 additions & 225 deletions app/controlplane/api/controlplane/v1/integrations.pb.go

Large diffs are not rendered by default.

61 changes: 30 additions & 31 deletions app/controlplane/api/controlplane/v1/integrations.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions app/controlplane/api/controlplane/v1/integrations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ service IntegrationsService {

message IntegrationsServiceRegisterRequest {
// Kind of integration to register
// This should match the ID of an existing extension
string extension_id = 1 [(validate.rules).string.min_len = 1];
// This should match the ID of an existing plugin
string plugin_id = 1 [(validate.rules).string.min_len = 1];
// Arbitrary configuration for the integration
google.protobuf.Struct config = 3 [(validate.rules).message.required = true];
// Description of the registration, used for display purposes
Expand Down Expand Up @@ -85,12 +85,12 @@ message IntegrationAvailableItem {
string description = 3;

oneof type {
ExtensionFanout fanout = 4;
PluginFanout fanout = 4;
}
}

// ExtensionFanout describes an extension that can be used to fanout attestation and materials to multiple integrations
message ExtensionFanout {
// PluginFanout describes a plugin that can be used to fanout attestation and materials to multiple integrations
message PluginFanout {
// Registration JSON schema
bytes registration_schema = 4;
// Attachment JSON schema
Expand Down
Loading