requestreply

package
v0.47.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2025 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCESQLVerifyCorrelationIdFilter

func RegisterCESQLVerifyCorrelationIdFilter(ctx context.Context) error

RegisterCESQLVerifyCorrelationIdFilter registers a new function with the CESQL runtime to verify correlation ids The function signature is KN_VERIFY_CORRELATION_ID(correlation_id, name, namespace, secret_name, pod_idx, replica_count)

func SetCorrelationId

func SetCorrelationId(ce *cloudevents.Event, correlationIdName string, aesKey []byte, idx int) error

SetCorrelationId sets the correlationid for a cloudevent by encrypting the id and setting the correlationid attribute with the original and encrypted ids

func VerifyReplyId

func VerifyReplyId(replyId string, aesKey []byte) (bool, error)

VerifyReplyId takes the reply id from a cloudevent and checks that it is valid for this RequestReply resource, by checking that the decrypted id matches the unencrypted id

Types

type AESKeyStore added in v0.47.0

type AESKeyStore struct {
	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func (*AESKeyStore) GetAllKeys added in v0.47.0

func (ks *AESKeyStore) GetAllKeys(rrName types.NamespacedName) ([][]byte, bool)

func (*AESKeyStore) GetLatestKey added in v0.47.0

func (ks *AESKeyStore) GetLatestKey(rrName types.NamespacedName) ([]byte, bool)

func (*AESKeyStore) StopWatch added in v0.47.0

func (ks *AESKeyStore) StopWatch()

func (*AESKeyStore) WatchPath added in v0.47.0

func (ks *AESKeyStore) WatchPath(basePath string) error

type IngressHandler added in v0.47.0

type IngressHandler struct {
	// contains filtered or unexported fields
}

func NewHandler added in v0.47.0

func NewHandler(logger *zap.Logger, requestReplyInformer eventingv1alpha1informers.RequestReplyInformer, trustBundleConfigMapLister corev1listers.ConfigMapNamespaceLister, keyStore *AESKeyStore, podIdx int) *IngressHandler

func (*IngressHandler) ServeHTTP added in v0.47.0

func (h *IngressHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL