mirror of
https://github.com/paralus/paralus.git
synced 2026-08-24 15:47:19 +00:00
* added api keys as headers for all grpc messages Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io> * changes to have multiple api keys for auth in partner swagger docs Signed-off-by: niravparikh05 <nir.parikh05@gmail.com> --------- Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io> Signed-off-by: niravparikh05 <nir.parikh05@gmail.com> Co-authored-by: niravparikh05 <nir.parikh05@gmail.com>
112 lines
2.4 KiB
Protocol Buffer
112 lines
2.4 KiB
Protocol Buffer
syntax = "proto3";
|
|
package rep.framework.event.v1;
|
|
|
|
option go_package = "v1";
|
|
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
import "google/api/annotations.proto";
|
|
import "google/protobuf/struct.proto";
|
|
import "proto/types/commonpb/v3/common.proto";
|
|
|
|
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
|
info : {
|
|
title : "AuditLog Service"
|
|
version : "2.0"
|
|
contact : {name : "Paralus Dev"}
|
|
}
|
|
schemes : HTTPS
|
|
consumes : "application/json"
|
|
consumes : "application/yaml"
|
|
produces : "application/json"
|
|
produces : "application/yaml"
|
|
security_definitions : {
|
|
security : {
|
|
key : "BasicAuth"
|
|
value : {type : TYPE_BASIC}
|
|
}
|
|
|
|
security : {
|
|
key : "ApiKeyAuth"
|
|
value: {
|
|
type : TYPE_API_KEY in : IN_HEADER name : "X-API-KEYID"
|
|
}
|
|
}
|
|
security : {
|
|
key : "ApiTokenAuth"
|
|
value : {
|
|
type : TYPE_API_KEY in : IN_HEADER name : "X-API-TOKEN"
|
|
}
|
|
}
|
|
}
|
|
|
|
security : {
|
|
security_requirement : {
|
|
key : "BasicAuth"
|
|
value : {}
|
|
}
|
|
}
|
|
security : {
|
|
security_requirement : {
|
|
key : "ApiKeyAuth"
|
|
value : {}
|
|
}
|
|
security_requirement : {
|
|
key : "ApiTokenAuth"
|
|
value : {}
|
|
}
|
|
}
|
|
|
|
responses : {
|
|
key : "403"
|
|
value : {
|
|
description : "Returned when the user does not have permission to access "
|
|
"the resource."
|
|
}
|
|
}
|
|
responses : {
|
|
key : "404"
|
|
value : {
|
|
description : "Returned when the resource does not exist."
|
|
schema : {json_schema : {type : STRING}}
|
|
}
|
|
}
|
|
};
|
|
|
|
message AuditLogQueryFilter {
|
|
string type = 1;
|
|
string user = 2;
|
|
string client = 3;
|
|
string timefrom = 4;
|
|
string portal = 5;
|
|
string cluster = 6;
|
|
string namespace = 7;
|
|
string kind = 8;
|
|
string method = 9;
|
|
repeated string projects = 10;
|
|
string queryString = 11;
|
|
bool dashboardData = 12;
|
|
}
|
|
|
|
message GetAuditLogSearchRequest {
|
|
paralus.dev.types.common.v3.Metadata metadata = 1;
|
|
AuditLogQueryFilter filter = 2;
|
|
}
|
|
|
|
message GetAuditLogSearchResponse {
|
|
google.protobuf.Struct result = 1;
|
|
}
|
|
|
|
service AuditLogService {
|
|
rpc GetAuditLog(GetAuditLogSearchRequest) returns (GetAuditLogSearchResponse) {
|
|
option (google.api.http) = {
|
|
get : "/event/v1/{metadata.urlScope=project/*}/auditlog"
|
|
};
|
|
};
|
|
|
|
rpc GetAuditLogByProjects(GetAuditLogSearchRequest)
|
|
returns (GetAuditLogSearchResponse) {
|
|
option (google.api.http) = {
|
|
get : "/event/v1/auditlog"
|
|
};
|
|
};
|
|
} |