Skip to content
Open
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
219 changes: 219 additions & 0 deletions app/controlplane/api/controlplane/v1/operation_authorization.pb.go

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

41 changes: 41 additions & 0 deletions app/controlplane/api/controlplane/v1/operation_authorization.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// Copyright 2026 The Chainloop Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package controlplane.v1;

option go_package = "github.com/chainloop-dev/chainloop/app/controlplane/api/controlplane/v1;v1";

// OperationAuthorizationService is implemented by an external service
// to authorize specific control plane operations.
service OperationAuthorizationService {
rpc Check(OperationAuthorizationServiceCheckRequest) returns (OperationAuthorizationServiceCheckResponse);
}

message OperationAuthorizationServiceCheckRequest {
// The gRPC operation being authorized, e.g. "/controlplane.v1.OrganizationService/Create"
string operation = 1;
// The user ID requesting the operation
string user_id = 2;
// The organization ID in context, if any
string organization_id = 3;
}

message OperationAuthorizationServiceCheckResponse {
bool allowed = 1;
// Human-readable reason when denied
string reason = 2;
}

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

Loading
Loading