Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterControlPlaneServiceServer(s grpc.ServiceRegistrar, srv ControlPlaneServiceServer)
- type Certificate
- func (*Certificate) Descriptor() ([]byte, []int)deprecated
- func (x *Certificate) GetCertificates() [][]byte
- func (x *Certificate) GetNotAfter() *timestamppb.Timestamp
- func (*Certificate) ProtoMessage()
- func (x *Certificate) ProtoReflect() protoreflect.Message
- func (x *Certificate) Reset()
- func (x *Certificate) String() string
- type ClusterMode
- func (ClusterMode) Descriptor() protoreflect.EnumDescriptor
- func (x ClusterMode) Enum() *ClusterMode
- func (ClusterMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClusterMode) Number() protoreflect.EnumNumber
- func (x ClusterMode) String() string
- func (ClusterMode) Type() protoreflect.EnumType
- type ClusterState
- func (*ClusterState) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterState) GetBundleContentHash() []byte
- func (x *ClusterState) GetBundleVersion() uint64
- func (x *ClusterState) GetEngines() []*Engine
- func (x *ClusterState) GetIntegrations() []*Integration
- func (x *ClusterState) GetObjects() []*Object
- func (x *ClusterState) GetTime() *timestamppb.Timestamp
- func (*ClusterState) ProtoMessage()
- func (x *ClusterState) ProtoReflect() protoreflect.Message
- func (x *ClusterState) Reset()
- func (x *ClusterState) String() string
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (x *Condition) GetLastTransitionTime() *timestamppb.Timestamp
- func (x *Condition) GetMessage() string
- func (x *Condition) GetObservedGeneration() int64
- func (x *Condition) GetReason() string
- func (x *Condition) GetStatus() string
- func (x *Condition) GetType() string
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) String() string
- type ConnectRequest
- func (*ConnectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectRequest) GetClusterState() *ClusterState
- func (x *ConnectRequest) GetEvents() *EventUpload
- func (x *ConnectRequest) GetHeartbeat() *Heartbeat
- func (x *ConnectRequest) GetHello() *Hello
- func (x *ConnectRequest) GetMsg() isConnectRequest_Msg
- func (x *ConnectRequest) GetPolicyAck() *PolicyAck
- func (x *ConnectRequest) GetPolicyNack() *PolicyNack
- func (x *ConnectRequest) GetRenewCertificate() *RenewCertificate
- func (x *ConnectRequest) GetRequestStats() *RequestStatsUpload
- func (*ConnectRequest) ProtoMessage()
- func (x *ConnectRequest) ProtoReflect() protoreflect.Message
- func (x *ConnectRequest) Reset()
- func (x *ConnectRequest) String() string
- type ConnectRequest_ClusterState
- type ConnectRequest_Events
- type ConnectRequest_Heartbeat
- type ConnectRequest_Hello
- type ConnectRequest_PolicyAck
- type ConnectRequest_PolicyNack
- type ConnectRequest_RenewCertificate
- type ConnectRequest_RequestStats
- type ConnectResponse
- func (*ConnectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectResponse) GetCertificate() *Certificate
- func (x *ConnectResponse) GetDirective() *Directive
- func (x *ConnectResponse) GetEventsAck() *EventsAck
- func (x *ConnectResponse) GetMsg() isConnectResponse_Msg
- func (x *ConnectResponse) GetPolicySnapshot() *PolicySnapshot
- func (x *ConnectResponse) GetWelcome() *Welcome
- func (*ConnectResponse) ProtoMessage()
- func (x *ConnectResponse) ProtoReflect() protoreflect.Message
- func (x *ConnectResponse) Reset()
- func (x *ConnectResponse) String() string
- type ConnectResponse_Certificate
- type ConnectResponse_Directive
- type ConnectResponse_EventsAck
- type ConnectResponse_PolicySnapshot
- type ConnectResponse_Welcome
- type ControlPlaneServiceClient
- type ControlPlaneServiceServer
- type ControlPlaneService_ConnectClient
- type ControlPlaneService_ConnectServer
- type Directive
- func (*Directive) Descriptor() ([]byte, []int)deprecated
- func (x *Directive) GetAction() isDirective_Action
- func (x *Directive) GetResync() *Resync
- func (*Directive) ProtoMessage()
- func (x *Directive) ProtoReflect() protoreflect.Message
- func (x *Directive) Reset()
- func (x *Directive) String() string
- type Directive_Resync
- type Engine
- func (*Engine) Descriptor() ([]byte, []int)deprecated
- func (x *Engine) GetAppliedBundleVersion() uint64
- func (x *Engine) GetConnectedAt() *timestamppb.Timestamp
- func (x *Engine) GetEngineId() string
- func (x *Engine) GetEngineVersion() string
- func (x *Engine) GetNodeName() string
- func (x *Engine) GetPodName() string
- func (x *Engine) GetPodNamespace() string
- func (x *Engine) GetRejectError() string
- func (x *Engine) GetRejectedBundleVersion() uint64
- func (*Engine) ProtoMessage()
- func (x *Engine) ProtoReflect() protoreflect.Message
- func (x *Engine) Reset()
- func (x *Engine) String() string
- type EnrollRequest
- func (*EnrollRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnrollRequest) GetClusterUid() string
- func (x *EnrollRequest) GetCsr() []byte
- func (x *EnrollRequest) GetOperatorVersion() string
- func (x *EnrollRequest) GetToken() string
- func (*EnrollRequest) ProtoMessage()
- func (x *EnrollRequest) ProtoReflect() protoreflect.Message
- func (x *EnrollRequest) Reset()
- func (x *EnrollRequest) String() string
- type EnrollResponse
- func (*EnrollResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnrollResponse) GetCertificates() [][]byte
- func (x *EnrollResponse) GetClusterId() string
- func (x *EnrollResponse) GetNotAfter() *timestamppb.Timestamp
- func (*EnrollResponse) ProtoMessage()
- func (x *EnrollResponse) ProtoReflect() protoreflect.Message
- func (x *EnrollResponse) Reset()
- func (x *EnrollResponse) String() string
- type EventUpload
- func (*EventUpload) Descriptor() ([]byte, []int)deprecated
- func (x *EventUpload) GetBatch() *v1.EventBatch
- func (x *EventUpload) GetBufferId() string
- func (x *EventUpload) GetSequence() uint64
- func (*EventUpload) ProtoMessage()
- func (x *EventUpload) ProtoReflect() protoreflect.Message
- func (x *EventUpload) Reset()
- func (x *EventUpload) String() string
- type EventsAck
- type Heartbeat
- func (*Heartbeat) Descriptor() ([]byte, []int)deprecated
- func (x *Heartbeat) GetBufferedEvents() uint64
- func (x *Heartbeat) GetTime() *timestamppb.Timestamp
- func (*Heartbeat) ProtoMessage()
- func (x *Heartbeat) ProtoReflect() protoreflect.Message
- func (x *Heartbeat) Reset()
- func (x *Heartbeat) String() string
- type Hello
- func (*Hello) Descriptor() ([]byte, []int)deprecated
- func (x *Hello) GetCapabilities() []string
- func (x *Hello) GetClusterUid() string
- func (x *Hello) GetKubernetesVersion() string
- func (x *Hello) GetMode() ClusterMode
- func (x *Hello) GetOperatorVersion() string
- func (x *Hello) GetPolicyVersion() uint64
- func (x *Hello) GetReplica() string
- func (x *Hello) GetRole() StreamRole
- func (*Hello) ProtoMessage()
- func (x *Hello) ProtoReflect() protoreflect.Message
- func (x *Hello) Reset()
- func (x *Hello) String() string
- type Integration
- func (*Integration) Descriptor() ([]byte, []int)deprecated
- func (x *Integration) GetController() string
- func (x *Integration) GetName() string
- func (x *Integration) GetPods() uint32
- func (x *Integration) GetPodsWithEngine() uint32
- func (*Integration) ProtoMessage()
- func (x *Integration) ProtoReflect() protoreflect.Message
- func (x *Integration) Reset()
- func (x *Integration) String() string
- type Object
- func (*Object) Descriptor() ([]byte, []int)deprecated
- func (x *Object) GetApiVersion() string
- func (x *Object) GetConditions() []*Condition
- func (x *Object) GetGeneration() int64
- func (x *Object) GetKind() string
- func (x *Object) GetLabels() map[string]string
- func (x *Object) GetName() string
- func (x *Object) GetNamespace() string
- func (x *Object) GetSpec() []byte
- func (*Object) ProtoMessage()
- func (x *Object) ProtoReflect() protoreflect.Message
- func (x *Object) Reset()
- func (x *Object) String() string
- type ObjectError
- func (*ObjectError) Descriptor() ([]byte, []int)deprecated
- func (x *ObjectError) GetError() string
- func (x *ObjectError) GetKind() string
- func (x *ObjectError) GetName() string
- func (x *ObjectError) GetNamespace() string
- func (*ObjectError) ProtoMessage()
- func (x *ObjectError) ProtoReflect() protoreflect.Message
- func (x *ObjectError) Reset()
- func (x *ObjectError) String() string
- type PolicyAck
- type PolicyNack
- func (*PolicyNack) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyNack) GetError() string
- func (x *PolicyNack) GetObjects() []*ObjectError
- func (x *PolicyNack) GetVersion() uint64
- func (*PolicyNack) ProtoMessage()
- func (x *PolicyNack) ProtoReflect() protoreflect.Message
- func (x *PolicyNack) Reset()
- func (x *PolicyNack) String() string
- type PolicySnapshot
- func (*PolicySnapshot) Descriptor() ([]byte, []int)deprecated
- func (x *PolicySnapshot) GetObjects() []*Object
- func (x *PolicySnapshot) GetVersion() uint64
- func (*PolicySnapshot) ProtoMessage()
- func (x *PolicySnapshot) ProtoReflect() protoreflect.Message
- func (x *PolicySnapshot) Reset()
- func (x *PolicySnapshot) String() string
- type RenewCertificate
- type RequestStatsUpload
- func (*RequestStatsUpload) Descriptor() ([]byte, []int)deprecated
- func (x *RequestStatsUpload) GetSince() *timestamppb.Timestamp
- func (x *RequestStatsUpload) GetStats() *v1.RequestStats
- func (x *RequestStatsUpload) GetTime() *timestamppb.Timestamp
- func (*RequestStatsUpload) ProtoMessage()
- func (x *RequestStatsUpload) ProtoReflect() protoreflect.Message
- func (x *RequestStatsUpload) Reset()
- func (x *RequestStatsUpload) String() string
- type Resync
- type StreamRole
- type UnimplementedControlPlaneServiceServer
- type UnsafeControlPlaneServiceServer
- type Welcome
- func (*Welcome) Descriptor() ([]byte, []int)deprecated
- func (x *Welcome) GetAcceptEvents() bool
- func (x *Welcome) GetAcceptRequestStats() bool
- func (x *Welcome) GetHeartbeatInterval() *durationpb.Duration
- func (*Welcome) ProtoMessage()
- func (x *Welcome) ProtoReflect() protoreflect.Message
- func (x *Welcome) Reset()
- func (x *Welcome) String() string
Constants ¶
const ( ControlPlaneService_Enroll_FullMethodName = "/inkwall.controlplane.v1.ControlPlaneService/Enroll" ControlPlaneService_Connect_FullMethodName = "/inkwall.controlplane.v1.ControlPlaneService/Connect" )
Variables ¶
var ( ClusterMode_name = map[int32]string{ 0: "CLUSTER_MODE_UNSPECIFIED", 1: "CLUSTER_MODE_STANDALONE", 2: "CLUSTER_MODE_GITOPS", 3: "CLUSTER_MODE_MANAGED", } ClusterMode_value = map[string]int32{ "CLUSTER_MODE_UNSPECIFIED": 0, "CLUSTER_MODE_STANDALONE": 1, "CLUSTER_MODE_GITOPS": 2, "CLUSTER_MODE_MANAGED": 3, } )
Enum value maps for ClusterMode.
var ( StreamRole_name = map[int32]string{ 0: "STREAM_ROLE_UNSPECIFIED", 1: "STREAM_ROLE_PRIMARY", 2: "STREAM_ROLE_EVENTS", } StreamRole_value = map[string]int32{ "STREAM_ROLE_UNSPECIFIED": 0, "STREAM_ROLE_PRIMARY": 1, "STREAM_ROLE_EVENTS": 2, } )
Enum value maps for StreamRole.
var ControlPlaneService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "inkwall.controlplane.v1.ControlPlaneService", HandlerType: (*ControlPlaneServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Enroll", Handler: _ControlPlaneService_Enroll_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Connect", Handler: _ControlPlaneService_Connect_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "controlplane/v1/controlplane.proto", }
ControlPlaneService_ServiceDesc is the grpc.ServiceDesc for ControlPlaneService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_controlplane_v1_controlplane_proto protoreflect.FileDescriptor
Functions ¶
func RegisterControlPlaneServiceServer ¶
func RegisterControlPlaneServiceServer(s grpc.ServiceRegistrar, srv ControlPlaneServiceServer)
Types ¶
type Certificate ¶
type Certificate struct {
// The client certificate, then its intermediates, each DER.
Certificates [][]byte `protobuf:"bytes,1,rep,name=certificates,proto3" json:"certificates,omitempty"`
NotAfter *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=not_after,json=notAfter,proto3" json:"not_after,omitempty"`
// contains filtered or unexported fields
}
Certificate is a renewed client certificate.
func (*Certificate) Descriptor
deprecated
func (*Certificate) Descriptor() ([]byte, []int)
Deprecated: Use Certificate.ProtoReflect.Descriptor instead.
func (*Certificate) GetCertificates ¶
func (x *Certificate) GetCertificates() [][]byte
func (*Certificate) GetNotAfter ¶
func (x *Certificate) GetNotAfter() *timestamppb.Timestamp
func (*Certificate) ProtoMessage ¶
func (*Certificate) ProtoMessage()
func (*Certificate) ProtoReflect ¶
func (x *Certificate) ProtoReflect() protoreflect.Message
func (*Certificate) Reset ¶
func (x *Certificate) Reset()
func (*Certificate) String ¶
func (x *Certificate) String() string
type ClusterMode ¶
type ClusterMode int32
ClusterMode is where a cluster's policy comes from (0002 §4.1).
const ( ClusterMode_CLUSTER_MODE_UNSPECIFIED ClusterMode = 0 // The CRDs; the cluster doesn't connect. ClusterMode_CLUSTER_MODE_STANDALONE ClusterMode = 1 // The CRDs, mirrored read-only to the control plane. ClusterMode_CLUSTER_MODE_GITOPS ClusterMode = 2 // The control plane: the operator writes its policies as CRDs. ClusterMode_CLUSTER_MODE_MANAGED ClusterMode = 3 )
func (ClusterMode) Descriptor ¶
func (ClusterMode) Descriptor() protoreflect.EnumDescriptor
func (ClusterMode) Enum ¶
func (x ClusterMode) Enum() *ClusterMode
func (ClusterMode) EnumDescriptor
deprecated
func (ClusterMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClusterMode.Descriptor instead.
func (ClusterMode) Number ¶
func (x ClusterMode) Number() protoreflect.EnumNumber
func (ClusterMode) String ¶
func (x ClusterMode) String() string
func (ClusterMode) Type ¶
func (ClusterMode) Type() protoreflect.EnumType
type ClusterState ¶
type ClusterState struct {
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// Every Inkwall object in the cluster, with its conditions.
Objects []*Object `protobuf:"bytes,2,rep,name=objects,proto3" json:"objects,omitempty"`
// The proxies the operator found.
Integrations []*Integration `protobuf:"bytes,3,rep,name=integrations,proto3" json:"integrations,omitempty"`
// The engines connected to the operator.
Engines []*Engine `protobuf:"bytes,4,rep,name=engines,proto3" json:"engines,omitempty"`
// The bundle the operator serves.
BundleVersion uint64 `protobuf:"varint,5,opt,name=bundle_version,json=bundleVersion,proto3" json:"bundle_version,omitempty"`
BundleContentHash []byte `protobuf:"bytes,6,opt,name=bundle_content_hash,json=bundleContentHash,proto3" json:"bundle_content_hash,omitempty"`
// contains filtered or unexported fields
}
ClusterState is a full snapshot of the cluster, sent after Hello, when something changes, and periodically. Full, not deltas: idempotent.
func (*ClusterState) Descriptor
deprecated
func (*ClusterState) Descriptor() ([]byte, []int)
Deprecated: Use ClusterState.ProtoReflect.Descriptor instead.
func (*ClusterState) GetBundleContentHash ¶
func (x *ClusterState) GetBundleContentHash() []byte
func (*ClusterState) GetBundleVersion ¶
func (x *ClusterState) GetBundleVersion() uint64
func (*ClusterState) GetEngines ¶
func (x *ClusterState) GetEngines() []*Engine
func (*ClusterState) GetIntegrations ¶
func (x *ClusterState) GetIntegrations() []*Integration
func (*ClusterState) GetObjects ¶
func (x *ClusterState) GetObjects() []*Object
func (*ClusterState) GetTime ¶
func (x *ClusterState) GetTime() *timestamppb.Timestamp
func (*ClusterState) ProtoMessage ¶
func (*ClusterState) ProtoMessage()
func (*ClusterState) ProtoReflect ¶
func (x *ClusterState) ProtoReflect() protoreflect.Message
func (*ClusterState) Reset ¶
func (x *ClusterState) Reset()
func (*ClusterState) String ¶
func (x *ClusterState) String() string
type Condition ¶
type Condition struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
// "True", "False" or "Unknown".
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
ObservedGeneration int64 `protobuf:"varint,5,opt,name=observed_generation,json=observedGeneration,proto3" json:"observed_generation,omitempty"`
LastTransitionTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_transition_time,json=lastTransitionTime,proto3" json:"last_transition_time,omitempty"`
// contains filtered or unexported fields
}
Condition is a status condition (metav1.Condition), e.g. Ready: the condition types and reasons are strings, so new ones need no change here.
func (*Condition) Descriptor
deprecated
func (*Condition) GetLastTransitionTime ¶
func (x *Condition) GetLastTransitionTime() *timestamppb.Timestamp
func (*Condition) GetMessage ¶
func (*Condition) GetObservedGeneration ¶
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
type ConnectRequest ¶
type ConnectRequest struct {
// Types that are valid to be assigned to Msg:
//
// *ConnectRequest_Hello
// *ConnectRequest_ClusterState
// *ConnectRequest_Events
// *ConnectRequest_Heartbeat
// *ConnectRequest_PolicyAck
// *ConnectRequest_PolicyNack
// *ConnectRequest_RenewCertificate
// *ConnectRequest_RequestStats
Msg isConnectRequest_Msg `protobuf_oneof:"msg"`
// contains filtered or unexported fields
}
ConnectRequest is a message from the operator.
func (*ConnectRequest) Descriptor
deprecated
func (*ConnectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.
func (*ConnectRequest) GetClusterState ¶
func (x *ConnectRequest) GetClusterState() *ClusterState
func (*ConnectRequest) GetEvents ¶
func (x *ConnectRequest) GetEvents() *EventUpload
func (*ConnectRequest) GetHeartbeat ¶
func (x *ConnectRequest) GetHeartbeat() *Heartbeat
func (*ConnectRequest) GetHello ¶
func (x *ConnectRequest) GetHello() *Hello
func (*ConnectRequest) GetMsg ¶
func (x *ConnectRequest) GetMsg() isConnectRequest_Msg
func (*ConnectRequest) GetPolicyAck ¶
func (x *ConnectRequest) GetPolicyAck() *PolicyAck
func (*ConnectRequest) GetPolicyNack ¶
func (x *ConnectRequest) GetPolicyNack() *PolicyNack
func (*ConnectRequest) GetRenewCertificate ¶
func (x *ConnectRequest) GetRenewCertificate() *RenewCertificate
func (*ConnectRequest) GetRequestStats ¶ added in v0.3.0
func (x *ConnectRequest) GetRequestStats() *RequestStatsUpload
func (*ConnectRequest) ProtoMessage ¶
func (*ConnectRequest) ProtoMessage()
func (*ConnectRequest) ProtoReflect ¶
func (x *ConnectRequest) ProtoReflect() protoreflect.Message
func (*ConnectRequest) Reset ¶
func (x *ConnectRequest) Reset()
func (*ConnectRequest) String ¶
func (x *ConnectRequest) String() string
type ConnectRequest_ClusterState ¶
type ConnectRequest_ClusterState struct {
ClusterState *ClusterState `protobuf:"bytes,2,opt,name=cluster_state,json=clusterState,proto3,oneof"`
}
type ConnectRequest_Events ¶
type ConnectRequest_Events struct {
Events *EventUpload `protobuf:"bytes,3,opt,name=events,proto3,oneof"`
}
type ConnectRequest_Heartbeat ¶
type ConnectRequest_Heartbeat struct {
Heartbeat *Heartbeat `protobuf:"bytes,4,opt,name=heartbeat,proto3,oneof"`
}
type ConnectRequest_Hello ¶
type ConnectRequest_Hello struct {
Hello *Hello `protobuf:"bytes,1,opt,name=hello,proto3,oneof"`
}
type ConnectRequest_PolicyAck ¶
type ConnectRequest_PolicyAck struct {
PolicyAck *PolicyAck `protobuf:"bytes,5,opt,name=policy_ack,json=policyAck,proto3,oneof"`
}
type ConnectRequest_PolicyNack ¶
type ConnectRequest_PolicyNack struct {
PolicyNack *PolicyNack `protobuf:"bytes,6,opt,name=policy_nack,json=policyNack,proto3,oneof"`
}
type ConnectRequest_RenewCertificate ¶
type ConnectRequest_RenewCertificate struct {
RenewCertificate *RenewCertificate `protobuf:"bytes,7,opt,name=renew_certificate,json=renewCertificate,proto3,oneof"`
}
type ConnectRequest_RequestStats ¶ added in v0.3.0
type ConnectRequest_RequestStats struct {
RequestStats *RequestStatsUpload `protobuf:"bytes,8,opt,name=request_stats,json=requestStats,proto3,oneof"`
}
type ConnectResponse ¶
type ConnectResponse struct {
// Types that are valid to be assigned to Msg:
//
// *ConnectResponse_Welcome
// *ConnectResponse_PolicySnapshot
// *ConnectResponse_Certificate
// *ConnectResponse_Directive
// *ConnectResponse_EventsAck
Msg isConnectResponse_Msg `protobuf_oneof:"msg"`
// contains filtered or unexported fields
}
ConnectResponse is a message from the control plane.
func (*ConnectResponse) Descriptor
deprecated
func (*ConnectResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.
func (*ConnectResponse) GetCertificate ¶
func (x *ConnectResponse) GetCertificate() *Certificate
func (*ConnectResponse) GetDirective ¶
func (x *ConnectResponse) GetDirective() *Directive
func (*ConnectResponse) GetEventsAck ¶
func (x *ConnectResponse) GetEventsAck() *EventsAck
func (*ConnectResponse) GetMsg ¶
func (x *ConnectResponse) GetMsg() isConnectResponse_Msg
func (*ConnectResponse) GetPolicySnapshot ¶
func (x *ConnectResponse) GetPolicySnapshot() *PolicySnapshot
func (*ConnectResponse) GetWelcome ¶
func (x *ConnectResponse) GetWelcome() *Welcome
func (*ConnectResponse) ProtoMessage ¶
func (*ConnectResponse) ProtoMessage()
func (*ConnectResponse) ProtoReflect ¶
func (x *ConnectResponse) ProtoReflect() protoreflect.Message
func (*ConnectResponse) Reset ¶
func (x *ConnectResponse) Reset()
func (*ConnectResponse) String ¶
func (x *ConnectResponse) String() string
type ConnectResponse_Certificate ¶
type ConnectResponse_Certificate struct {
Certificate *Certificate `protobuf:"bytes,3,opt,name=certificate,proto3,oneof"`
}
type ConnectResponse_Directive ¶
type ConnectResponse_Directive struct {
Directive *Directive `protobuf:"bytes,4,opt,name=directive,proto3,oneof"`
}
type ConnectResponse_EventsAck ¶
type ConnectResponse_EventsAck struct {
EventsAck *EventsAck `protobuf:"bytes,5,opt,name=events_ack,json=eventsAck,proto3,oneof"`
}
type ConnectResponse_PolicySnapshot ¶
type ConnectResponse_PolicySnapshot struct {
PolicySnapshot *PolicySnapshot `protobuf:"bytes,2,opt,name=policy_snapshot,json=policySnapshot,proto3,oneof"`
}
type ConnectResponse_Welcome ¶
type ConnectResponse_Welcome struct {
Welcome *Welcome `protobuf:"bytes,1,opt,name=welcome,proto3,oneof"`
}
type ControlPlaneServiceClient ¶
type ControlPlaneServiceClient interface {
// Enroll exchanges a one-time enrollment token and a certificate signing
// request for the cluster's client certificate (0002 §7.5). It is the
// only call made without a client certificate (server-authenticated TLS).
// The first call burns the token. A retry with the same token and the same
// public key, within the token's TTL, returns the same certificate, so a
// lost response doesn't cost a new token; any other reuse is refused.
Enroll(ctx context.Context, in *EnrollRequest, opts ...grpc.CallOption) (*EnrollResponse, error)
// Connect is a stream from the cluster, over mTLS. The cluster's identity
// is the client certificate, never a field of a message. The operator
// sends Hello first; the control plane answers with Welcome.
//
// A primary stream (the leader's) then carries ClusterState, heartbeats,
// policy snapshots (Managed mode), directives and certificate renewal.
// There is one per cluster: when the leader moves, the newer primary
// stream wins and the control plane closes the older one.
//
// An events stream carries only EventUpload and EventsAck, request
// counts (RequestStatsUpload) and heartbeats; every replica opens one for
// its engines.
//
// Errors (gRPC status codes) and what the operator does:
// - UNAUTHENTICATED: the certificate isn't valid (e.g. expired or
// revoked). Enroll again with a new token. The control plane checks the
// certificate in the RPC and answers with this code; failing the TLS
// handshake instead would look like UNAVAILABLE, and the operator would
// keep retrying.
// - PERMISSION_DENIED: the cluster was removed or disabled. Stop
// reconnecting until the configuration changes.
// - RESOURCE_EXHAUSTED: over a quota (e.g. events). Back off; the
// control plane says when in the status details if it can.
// - FAILED_PRECONDITION: Hello didn't come first, or a message doesn't
// fit the stream's role. A bug: reconnect with backoff.
// - UNAVAILABLE and others: reconnect with exponential backoff and
// jitter.
Connect(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ConnectRequest, ConnectResponse], error)
}
ControlPlaneServiceClient is the client API for ControlPlaneService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
ControlPlaneService is served by the control plane; the operator calls it.
func NewControlPlaneServiceClient ¶
func NewControlPlaneServiceClient(cc grpc.ClientConnInterface) ControlPlaneServiceClient
type ControlPlaneServiceServer ¶
type ControlPlaneServiceServer interface {
// Enroll exchanges a one-time enrollment token and a certificate signing
// request for the cluster's client certificate (0002 §7.5). It is the
// only call made without a client certificate (server-authenticated TLS).
// The first call burns the token. A retry with the same token and the same
// public key, within the token's TTL, returns the same certificate, so a
// lost response doesn't cost a new token; any other reuse is refused.
Enroll(context.Context, *EnrollRequest) (*EnrollResponse, error)
// Connect is a stream from the cluster, over mTLS. The cluster's identity
// is the client certificate, never a field of a message. The operator
// sends Hello first; the control plane answers with Welcome.
//
// A primary stream (the leader's) then carries ClusterState, heartbeats,
// policy snapshots (Managed mode), directives and certificate renewal.
// There is one per cluster: when the leader moves, the newer primary
// stream wins and the control plane closes the older one.
//
// An events stream carries only EventUpload and EventsAck, request
// counts (RequestStatsUpload) and heartbeats; every replica opens one for
// its engines.
//
// Errors (gRPC status codes) and what the operator does:
// - UNAUTHENTICATED: the certificate isn't valid (e.g. expired or
// revoked). Enroll again with a new token. The control plane checks the
// certificate in the RPC and answers with this code; failing the TLS
// handshake instead would look like UNAVAILABLE, and the operator would
// keep retrying.
// - PERMISSION_DENIED: the cluster was removed or disabled. Stop
// reconnecting until the configuration changes.
// - RESOURCE_EXHAUSTED: over a quota (e.g. events). Back off; the
// control plane says when in the status details if it can.
// - FAILED_PRECONDITION: Hello didn't come first, or a message doesn't
// fit the stream's role. A bug: reconnect with backoff.
// - UNAVAILABLE and others: reconnect with exponential backoff and
// jitter.
Connect(grpc.BidiStreamingServer[ConnectRequest, ConnectResponse]) error
// contains filtered or unexported methods
}
ControlPlaneServiceServer is the server API for ControlPlaneService service. All implementations must embed UnimplementedControlPlaneServiceServer for forward compatibility.
ControlPlaneService is served by the control plane; the operator calls it.
type ControlPlaneService_ConnectClient ¶
type ControlPlaneService_ConnectClient = grpc.BidiStreamingClient[ConnectRequest, ConnectResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ControlPlaneService_ConnectServer ¶
type ControlPlaneService_ConnectServer = grpc.BidiStreamingServer[ConnectRequest, ConnectResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type Directive ¶
type Directive struct {
// Types that are valid to be assigned to Action:
//
// *Directive_Resync
Action isDirective_Action `protobuf_oneof:"action"`
// contains filtered or unexported fields
}
Directive asks the operator to do something now.
func (*Directive) Descriptor
deprecated
func (*Directive) ProtoMessage ¶
func (*Directive) ProtoMessage()
func (*Directive) ProtoReflect ¶
func (x *Directive) ProtoReflect() protoreflect.Message
type Directive_Resync ¶
type Directive_Resync struct {
// Send a full ClusterState now.
Resync *Resync `protobuf:"bytes,1,opt,name=resync,proto3,oneof"`
}
type Engine ¶
type Engine struct {
EngineId string `protobuf:"bytes,1,opt,name=engine_id,json=engineId,proto3" json:"engine_id,omitempty"`
PodNamespace string `protobuf:"bytes,2,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"`
PodName string `protobuf:"bytes,3,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"`
NodeName string `protobuf:"bytes,4,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
EngineVersion string `protobuf:"bytes,5,opt,name=engine_version,json=engineVersion,proto3" json:"engine_version,omitempty"`
// The newest bundle it runs, and the newest it rejected, with why.
AppliedBundleVersion uint64 `protobuf:"varint,6,opt,name=applied_bundle_version,json=appliedBundleVersion,proto3" json:"applied_bundle_version,omitempty"`
RejectedBundleVersion uint64 `` /* 127-byte string literal not displayed */
RejectError string `protobuf:"bytes,8,opt,name=reject_error,json=rejectError,proto3" json:"reject_error,omitempty"`
ConnectedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=connected_at,json=connectedAt,proto3" json:"connected_at,omitempty"`
// contains filtered or unexported fields
}
Engine is one engine connected to the operator.
func (*Engine) Descriptor
deprecated
func (*Engine) GetAppliedBundleVersion ¶
func (*Engine) GetConnectedAt ¶
func (x *Engine) GetConnectedAt() *timestamppb.Timestamp
func (*Engine) GetEngineId ¶
func (*Engine) GetEngineVersion ¶
func (*Engine) GetNodeName ¶
func (*Engine) GetPodName ¶
func (*Engine) GetPodNamespace ¶
func (*Engine) GetRejectError ¶
func (*Engine) GetRejectedBundleVersion ¶
func (*Engine) ProtoMessage ¶
func (*Engine) ProtoMessage()
func (*Engine) ProtoReflect ¶
func (x *Engine) ProtoReflect() protoreflect.Message
type EnrollRequest ¶
type EnrollRequest struct {
// The one-time enrollment token (TTL 1 h).
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// A PKCS #10 certificate signing request, DER, for an ECDSA P-256 or
// Ed25519 key the operator generated and keeps. Its subject is ignored:
// the control plane decides the identity.
Csr []byte `protobuf:"bytes,2,opt,name=csr,proto3" json:"csr,omitempty"`
// The kube-system Namespace UID, which also identifies the cluster in
// bundles (bundle.v1 Bundle.cluster_id). Informational.
ClusterUid string `protobuf:"bytes,3,opt,name=cluster_uid,json=clusterUid,proto3" json:"cluster_uid,omitempty"`
// The operator's version.
OperatorVersion string `protobuf:"bytes,4,opt,name=operator_version,json=operatorVersion,proto3" json:"operator_version,omitempty"`
// contains filtered or unexported fields
}
EnrollRequest is sent once, with the token from InkwallConfig.spec.controlPlane.enrollmentSecretRef.
func (*EnrollRequest) Descriptor
deprecated
func (*EnrollRequest) Descriptor() ([]byte, []int)
Deprecated: Use EnrollRequest.ProtoReflect.Descriptor instead.
func (*EnrollRequest) GetClusterUid ¶
func (x *EnrollRequest) GetClusterUid() string
func (*EnrollRequest) GetCsr ¶
func (x *EnrollRequest) GetCsr() []byte
func (*EnrollRequest) GetOperatorVersion ¶
func (x *EnrollRequest) GetOperatorVersion() string
func (*EnrollRequest) GetToken ¶
func (x *EnrollRequest) GetToken() string
func (*EnrollRequest) ProtoMessage ¶
func (*EnrollRequest) ProtoMessage()
func (*EnrollRequest) ProtoReflect ¶
func (x *EnrollRequest) ProtoReflect() protoreflect.Message
func (*EnrollRequest) Reset ¶
func (x *EnrollRequest) Reset()
func (*EnrollRequest) String ¶
func (x *EnrollRequest) String() string
type EnrollResponse ¶
type EnrollResponse struct {
// The control plane's ID for this cluster.
ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
// The client certificate, then its intermediates, each DER.
Certificates [][]byte `protobuf:"bytes,2,rep,name=certificates,proto3" json:"certificates,omitempty"`
NotAfter *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=not_after,json=notAfter,proto3" json:"not_after,omitempty"`
// contains filtered or unexported fields
}
EnrollResponse carries the cluster's identity.
func (*EnrollResponse) Descriptor
deprecated
func (*EnrollResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnrollResponse.ProtoReflect.Descriptor instead.
func (*EnrollResponse) GetCertificates ¶
func (x *EnrollResponse) GetCertificates() [][]byte
func (*EnrollResponse) GetClusterId ¶
func (x *EnrollResponse) GetClusterId() string
func (*EnrollResponse) GetNotAfter ¶
func (x *EnrollResponse) GetNotAfter() *timestamppb.Timestamp
func (*EnrollResponse) ProtoMessage ¶
func (*EnrollResponse) ProtoMessage()
func (*EnrollResponse) ProtoReflect ¶
func (x *EnrollResponse) ProtoReflect() protoreflect.Message
func (*EnrollResponse) Reset ¶
func (x *EnrollResponse) Reset()
func (*EnrollResponse) String ¶
func (x *EnrollResponse) String() string
type EventUpload ¶
type EventUpload struct {
// The buffer the batch comes from: random, chosen when the buffer is
// created, so a replica's new buffer (e.g. after its disk was lost) never
// looks like an old one.
BufferId string `protobuf:"bytes,1,opt,name=buffer_id,json=bufferId,proto3" json:"buffer_id,omitempty"`
// Increases with every batch from this buffer, across reconnects.
Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
Batch *v1.EventBatch `protobuf:"bytes,3,opt,name=batch,proto3" json:"batch,omitempty"`
// contains filtered or unexported fields
}
EventUpload is a batch of security events from a replica's buffer, on an events stream, at most 1,000 events. Delivery is at least once: the replica keeps a batch until it is acknowledged, and sends unacknowledged batches again after reconnecting. The control plane drops duplicates by SecurityEvent.event_id, never by sequence: sequences are per buffer.
func (*EventUpload) Descriptor
deprecated
func (*EventUpload) Descriptor() ([]byte, []int)
Deprecated: Use EventUpload.ProtoReflect.Descriptor instead.
func (*EventUpload) GetBatch ¶
func (x *EventUpload) GetBatch() *v1.EventBatch
func (*EventUpload) GetBufferId ¶
func (x *EventUpload) GetBufferId() string
func (*EventUpload) GetSequence ¶
func (x *EventUpload) GetSequence() uint64
func (*EventUpload) ProtoMessage ¶
func (*EventUpload) ProtoMessage()
func (*EventUpload) ProtoReflect ¶
func (x *EventUpload) ProtoReflect() protoreflect.Message
func (*EventUpload) Reset ¶
func (x *EventUpload) Reset()
func (*EventUpload) String ¶
func (x *EventUpload) String() string
type EventsAck ¶
type EventsAck struct {
BufferId string `protobuf:"bytes,1,opt,name=buffer_id,json=bufferId,proto3" json:"buffer_id,omitempty"`
Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
// contains filtered or unexported fields
}
EventsAck acknowledges every batch of buffer_id up to sequence, once stored: the replica frees them from its buffer. A resent batch carries the same EventBatch.dropped: count it once per buffer_id and sequence.
func (*EventsAck) Descriptor
deprecated
func (*EventsAck) GetBufferId ¶
func (*EventsAck) GetSequence ¶
func (*EventsAck) ProtoMessage ¶
func (*EventsAck) ProtoMessage()
func (*EventsAck) ProtoReflect ¶
func (x *EventsAck) ProtoReflect() protoreflect.Message
type Heartbeat ¶
type Heartbeat struct {
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// Events waiting in the operator's buffer.
BufferedEvents uint64 `protobuf:"varint,2,opt,name=buffered_events,json=bufferedEvents,proto3" json:"buffered_events,omitempty"`
// contains filtered or unexported fields
}
Heartbeat shows the stream is alive between other messages.
func (*Heartbeat) Descriptor
deprecated
func (*Heartbeat) GetBufferedEvents ¶
func (*Heartbeat) GetTime ¶
func (x *Heartbeat) GetTime() *timestamppb.Timestamp
func (*Heartbeat) ProtoMessage ¶
func (*Heartbeat) ProtoMessage()
func (*Heartbeat) ProtoReflect ¶
func (x *Heartbeat) ProtoReflect() protoreflect.Message
type Hello ¶
type Hello struct {
Role StreamRole `protobuf:"varint,1,opt,name=role,proto3,enum=inkwall.controlplane.v1.StreamRole" json:"role,omitempty"`
// The replica that opened the stream (its pod name).
Replica string `protobuf:"bytes,2,opt,name=replica,proto3" json:"replica,omitempty"`
OperatorVersion string `protobuf:"bytes,3,opt,name=operator_version,json=operatorVersion,proto3" json:"operator_version,omitempty"`
Mode ClusterMode `protobuf:"varint,4,opt,name=mode,proto3,enum=inkwall.controlplane.v1.ClusterMode" json:"mode,omitempty"`
// The kube-system Namespace UID (as in EnrollRequest).
ClusterUid string `protobuf:"bytes,5,opt,name=cluster_uid,json=clusterUid,proto3" json:"cluster_uid,omitempty"`
KubernetesVersion string `protobuf:"bytes,6,opt,name=kubernetes_version,json=kubernetesVersion,proto3" json:"kubernetes_version,omitempty"`
// The last PolicySnapshot the operator applied (0: none): the control
// plane skips resending it when it is current.
PolicyVersion uint64 `protobuf:"varint,7,opt,name=policy_version,json=policyVersion,proto3" json:"policy_version,omitempty"`
// Optional features the operator supports, e.g. "request-stats", and the API
// versions it writes, e.g. "waf.inkwall.dev/v1alpha1", so a newer control
// plane can tell what an older operator can do.
Capabilities []string `protobuf:"bytes,8,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
// contains filtered or unexported fields
}
Hello opens the stream.
func (*Hello) Descriptor
deprecated
func (*Hello) GetCapabilities ¶
func (*Hello) GetClusterUid ¶
func (*Hello) GetKubernetesVersion ¶
func (*Hello) GetMode ¶
func (x *Hello) GetMode() ClusterMode
func (*Hello) GetOperatorVersion ¶
func (*Hello) GetPolicyVersion ¶
func (*Hello) GetReplica ¶
func (*Hello) GetRole ¶
func (x *Hello) GetRole() StreamRole
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) ProtoReflect ¶
func (x *Hello) ProtoReflect() protoreflect.Message
type Integration ¶
type Integration struct {
// The integration, e.g. "traefik".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Its IngressClass controller, e.g. "traefik.io/ingress-controller".
Controller string `protobuf:"bytes,2,opt,name=controller,proto3" json:"controller,omitempty"`
// Its running pods, and how many of them have the engine.
Pods uint32 `protobuf:"varint,3,opt,name=pods,proto3" json:"pods,omitempty"`
PodsWithEngine uint32 `protobuf:"varint,4,opt,name=pods_with_engine,json=podsWithEngine,proto3" json:"pods_with_engine,omitempty"`
// contains filtered or unexported fields
}
Integration is a proxy controller the operator wires.
func (*Integration) Descriptor
deprecated
func (*Integration) Descriptor() ([]byte, []int)
Deprecated: Use Integration.ProtoReflect.Descriptor instead.
func (*Integration) GetController ¶
func (x *Integration) GetController() string
func (*Integration) GetName ¶
func (x *Integration) GetName() string
func (*Integration) GetPods ¶
func (x *Integration) GetPods() uint32
func (*Integration) GetPodsWithEngine ¶
func (x *Integration) GetPodsWithEngine() uint32
func (*Integration) ProtoMessage ¶
func (*Integration) ProtoMessage()
func (*Integration) ProtoReflect ¶
func (x *Integration) ProtoReflect() protoreflect.Message
func (*Integration) Reset ¶
func (x *Integration) Reset()
func (*Integration) String ¶
func (x *Integration) String() string
type Object ¶
type Object struct {
// e.g. "waf.inkwall.dev/v1alpha1" and "WAFPolicy".
ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
// Empty for cluster-scoped kinds.
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// The metadata.generation the status refers to (0 in a PolicySnapshot).
Generation int64 `protobuf:"varint,5,opt,name=generation,proto3" json:"generation,omitempty"`
Labels map[string]string `` /* 139-byte string literal not displayed */
// The object's spec, JSON.
Spec []byte `protobuf:"bytes,7,opt,name=spec,proto3" json:"spec,omitempty"`
// Its status conditions, in ClusterState only.
Conditions []*Condition `protobuf:"bytes,8,rep,name=conditions,proto3" json:"conditions,omitempty"`
// contains filtered or unexported fields
}
Object is a Kubernetes object in Inkwall's API (waf.inkwall.dev): WAFPolicy, WAFRuleSet, ClusterWAFRuleSet or InkwallConfig. Carried as the object's JSON, so the contract doesn't repeat the CRD schemas and new fields need no change here; the CRD schema and the validating webhook check it where it is written.
func (*Object) Descriptor
deprecated
func (*Object) GetApiVersion ¶
func (*Object) GetConditions ¶
func (*Object) GetGeneration ¶
func (*Object) GetNamespace ¶
func (*Object) ProtoMessage ¶
func (*Object) ProtoMessage()
func (*Object) ProtoReflect ¶
func (x *Object) ProtoReflect() protoreflect.Message
type ObjectError ¶
type ObjectError struct {
Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"`
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
ObjectError is why one object was refused, e.g. by the CRD schema or the validating webhook.
func (*ObjectError) Descriptor
deprecated
func (*ObjectError) Descriptor() ([]byte, []int)
Deprecated: Use ObjectError.ProtoReflect.Descriptor instead.
func (*ObjectError) GetError ¶
func (x *ObjectError) GetError() string
func (*ObjectError) GetKind ¶
func (x *ObjectError) GetKind() string
func (*ObjectError) GetName ¶
func (x *ObjectError) GetName() string
func (*ObjectError) GetNamespace ¶
func (x *ObjectError) GetNamespace() string
func (*ObjectError) ProtoMessage ¶
func (*ObjectError) ProtoMessage()
func (*ObjectError) ProtoReflect ¶
func (x *ObjectError) ProtoReflect() protoreflect.Message
func (*ObjectError) Reset ¶
func (x *ObjectError) Reset()
func (*ObjectError) String ¶
func (x *ObjectError) String() string
type PolicyAck ¶
type PolicyAck struct {
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
PolicyAck reports a snapshot the operator applied. Whether the engines enforce it shows in the next ClusterState (the Enforced conditions).
func (*PolicyAck) Descriptor
deprecated
func (*PolicyAck) GetVersion ¶
func (*PolicyAck) ProtoMessage ¶
func (*PolicyAck) ProtoMessage()
func (*PolicyAck) ProtoReflect ¶
func (x *PolicyAck) ProtoReflect() protoreflect.Message
type PolicyNack ¶
type PolicyNack struct {
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// The objects that were refused, and why.
Objects []*ObjectError `protobuf:"bytes,3,rep,name=objects,proto3" json:"objects,omitempty"`
// contains filtered or unexported fields
}
PolicyNack reports a snapshot the operator didn't apply, so nothing of it was written: the previous one stays in force.
func (*PolicyNack) Descriptor
deprecated
func (*PolicyNack) Descriptor() ([]byte, []int)
Deprecated: Use PolicyNack.ProtoReflect.Descriptor instead.
func (*PolicyNack) GetError ¶
func (x *PolicyNack) GetError() string
func (*PolicyNack) GetObjects ¶
func (x *PolicyNack) GetObjects() []*ObjectError
func (*PolicyNack) GetVersion ¶
func (x *PolicyNack) GetVersion() uint64
func (*PolicyNack) ProtoMessage ¶
func (*PolicyNack) ProtoMessage()
func (*PolicyNack) ProtoReflect ¶
func (x *PolicyNack) ProtoReflect() protoreflect.Message
func (*PolicyNack) Reset ¶
func (x *PolicyNack) Reset()
func (*PolicyNack) String ¶
func (x *PolicyNack) String() string
type PolicySnapshot ¶
type PolicySnapshot struct {
// Increases with every snapshot for the cluster.
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
// WAFPolicy, WAFRuleSet and ClusterWAFRuleSet objects. Rule sets carry
// their rules inline (source.seclang or source.builtin): the operator
// refuses a configMapRef, which would point at a ConfigMap the control
// plane can't create, with a PolicyNack naming the object.
Objects []*Object `protobuf:"bytes,2,rep,name=objects,proto3" json:"objects,omitempty"`
// contains filtered or unexported fields
}
PolicySnapshot is the full set of policies for a cluster in Managed mode (0004 §4.9): the operator writes them as CRDs labelled inkwall.dev/source: saas, deletes those of that label that are missing, and builds and signs the bundle with the cluster's own key, as for any CRD. Policy objects, not bundles: the engines trust only the cluster's key.
All or nothing: the operator checks every object with a server-side dry run before writing any. If one is refused, it writes none and answers PolicyNack. A failure while writing is retried; the snapshot is acknowledged only once fully written.
The cluster's InkwallConfig decides its mode: a cluster that isn't in Managed mode answers PolicyNack and writes nothing.
Only WAFPolicy, WAFRuleSet and ClusterWAFRuleSet are accepted: any other kind (InkwallConfig included) refuses the snapshot. The operator sets the inkwall.dev/source label itself; a snapshot's labels can't change it.
func (*PolicySnapshot) Descriptor
deprecated
func (*PolicySnapshot) Descriptor() ([]byte, []int)
Deprecated: Use PolicySnapshot.ProtoReflect.Descriptor instead.
func (*PolicySnapshot) GetObjects ¶
func (x *PolicySnapshot) GetObjects() []*Object
func (*PolicySnapshot) GetVersion ¶
func (x *PolicySnapshot) GetVersion() uint64
func (*PolicySnapshot) ProtoMessage ¶
func (*PolicySnapshot) ProtoMessage()
func (*PolicySnapshot) ProtoReflect ¶
func (x *PolicySnapshot) ProtoReflect() protoreflect.Message
func (*PolicySnapshot) Reset ¶
func (x *PolicySnapshot) Reset()
func (*PolicySnapshot) String ¶
func (x *PolicySnapshot) String() string
type RenewCertificate ¶
type RenewCertificate struct {
// A PKCS #10 certificate signing request, DER, for a new key (ECDSA P-256
// or Ed25519).
Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
// contains filtered or unexported fields
}
RenewCertificate asks for a new client certificate before the current one expires (it needs the current one, over mTLS). A cluster whose certificate expired, e.g. while the operator was down longer than its lifetime, enrolls again with a new token.
func (*RenewCertificate) Descriptor
deprecated
func (*RenewCertificate) Descriptor() ([]byte, []int)
Deprecated: Use RenewCertificate.ProtoReflect.Descriptor instead.
func (*RenewCertificate) GetCsr ¶
func (x *RenewCertificate) GetCsr() []byte
func (*RenewCertificate) ProtoMessage ¶
func (*RenewCertificate) ProtoMessage()
func (*RenewCertificate) ProtoReflect ¶
func (x *RenewCertificate) ProtoReflect() protoreflect.Message
func (*RenewCertificate) Reset ¶
func (x *RenewCertificate) Reset()
func (*RenewCertificate) String ¶
func (x *RenewCertificate) String() string
type RequestStatsUpload ¶ added in v0.3.0
type RequestStatsUpload struct {
Since *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=since,proto3" json:"since,omitempty"`
Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
Stats *v1.RequestStats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats,omitempty"`
// contains filtered or unexported fields
}
RequestStatsUpload counts the requests of the engines connected to a replica, per policy, on its events stream: every 10 s, the policies whose counts changed, and every policy first on a new stream. The counts are cumulative since `since` (when the replica started counting), so a lost upload loses nothing; the sum over a cluster's replicas is the cluster's. A replica that restarts counts from zero again, with a new `since`. Within one `since`, a policy's counts can also go down: past a limit, a replica forgets the policies no longer in its bundle, and one that comes back counts from zero again. A consumer must treat any count lower than the previous one (allowed, denied, detected or a latency bucket) as a reset: the new value is all new, counted from zero. The operator applies the same rule to its engines' reports.
func (*RequestStatsUpload) Descriptor
deprecated
added in
v0.3.0
func (*RequestStatsUpload) Descriptor() ([]byte, []int)
Deprecated: Use RequestStatsUpload.ProtoReflect.Descriptor instead.
func (*RequestStatsUpload) GetSince ¶ added in v0.3.0
func (x *RequestStatsUpload) GetSince() *timestamppb.Timestamp
func (*RequestStatsUpload) GetStats ¶ added in v0.3.0
func (x *RequestStatsUpload) GetStats() *v1.RequestStats
func (*RequestStatsUpload) GetTime ¶ added in v0.3.0
func (x *RequestStatsUpload) GetTime() *timestamppb.Timestamp
func (*RequestStatsUpload) ProtoMessage ¶ added in v0.3.0
func (*RequestStatsUpload) ProtoMessage()
func (*RequestStatsUpload) ProtoReflect ¶ added in v0.3.0
func (x *RequestStatsUpload) ProtoReflect() protoreflect.Message
func (*RequestStatsUpload) Reset ¶ added in v0.3.0
func (x *RequestStatsUpload) Reset()
func (*RequestStatsUpload) String ¶ added in v0.3.0
func (x *RequestStatsUpload) String() string
type Resync ¶
type Resync struct {
// contains filtered or unexported fields
}
Resync asks for a full ClusterState.
func (*Resync) Descriptor
deprecated
func (*Resync) ProtoMessage ¶
func (*Resync) ProtoMessage()
func (*Resync) ProtoReflect ¶
func (x *Resync) ProtoReflect() protoreflect.Message
type StreamRole ¶
type StreamRole int32
StreamRole is what a Connect stream carries.
const ( StreamRole_STREAM_ROLE_UNSPECIFIED StreamRole = 0 // The leader's stream: state, policies, directives, certificates. StreamRole_STREAM_ROLE_PRIMARY StreamRole = 1 // A replica's stream for the events of its engines. StreamRole_STREAM_ROLE_EVENTS StreamRole = 2 )
func (StreamRole) Descriptor ¶
func (StreamRole) Descriptor() protoreflect.EnumDescriptor
func (StreamRole) Enum ¶
func (x StreamRole) Enum() *StreamRole
func (StreamRole) EnumDescriptor
deprecated
func (StreamRole) EnumDescriptor() ([]byte, []int)
Deprecated: Use StreamRole.Descriptor instead.
func (StreamRole) Number ¶
func (x StreamRole) Number() protoreflect.EnumNumber
func (StreamRole) String ¶
func (x StreamRole) String() string
func (StreamRole) Type ¶
func (StreamRole) Type() protoreflect.EnumType
type UnimplementedControlPlaneServiceServer ¶
type UnimplementedControlPlaneServiceServer struct{}
UnimplementedControlPlaneServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedControlPlaneServiceServer) Enroll ¶
func (UnimplementedControlPlaneServiceServer) Enroll(context.Context, *EnrollRequest) (*EnrollResponse, error)
type UnsafeControlPlaneServiceServer ¶
type UnsafeControlPlaneServiceServer interface {
// contains filtered or unexported methods
}
UnsafeControlPlaneServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ControlPlaneServiceServer will result in compilation errors.
type Welcome ¶
type Welcome struct {
// How often the operator sends a Heartbeat; unset: 30 s.
HeartbeatInterval *durationpb.Duration `protobuf:"bytes,1,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"`
// Whether the control plane accepts security events from this cluster.
// When false (the default), replicas neither send nor buffer events: they
// log them, as in Standalone mode.
AcceptEvents bool `protobuf:"varint,2,opt,name=accept_events,json=acceptEvents,proto3" json:"accept_events,omitempty"`
// Whether the control plane takes request counts (RequestStatsUpload) on
// events streams. When false (the default), replicas don't send them.
// An events stream stays open while either is accepted.
AcceptRequestStats bool `protobuf:"varint,3,opt,name=accept_request_stats,json=acceptRequestStats,proto3" json:"accept_request_stats,omitempty"`
// contains filtered or unexported fields
}
Welcome answers Hello.
func (*Welcome) Descriptor
deprecated
func (*Welcome) GetAcceptEvents ¶
func (*Welcome) GetAcceptRequestStats ¶ added in v0.3.0
func (*Welcome) GetHeartbeatInterval ¶
func (x *Welcome) GetHeartbeatInterval() *durationpb.Duration
func (*Welcome) ProtoMessage ¶
func (*Welcome) ProtoMessage()
func (*Welcome) ProtoReflect ¶
func (x *Welcome) ProtoReflect() protoreflect.Message