confidentialhttp

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_capabilities_networking_confidentialhttp_v1alpha_client_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConfidentialHTTPRequest added in v0.9.7

type ConfidentialHTTPRequest struct {
	VaultDonSecrets []*SecretIdentifier `protobuf:"bytes,1,rep,name=vault_don_secrets,json=vaultDonSecrets,proto3" json:"vault_don_secrets,omitempty"`
	Request         *HTTPRequest        `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

ConfidentialHTTPRequest is the input provided to the confidential HTTP capability. It combines an HTTPRequest with secrets from VaultDON.

func (*ConfidentialHTTPRequest) Descriptor deprecated added in v0.9.7

func (*ConfidentialHTTPRequest) Descriptor() ([]byte, []int)

Deprecated: Use ConfidentialHTTPRequest.ProtoReflect.Descriptor instead.

func (*ConfidentialHTTPRequest) GetRequest added in v0.9.7

func (x *ConfidentialHTTPRequest) GetRequest() *HTTPRequest

func (*ConfidentialHTTPRequest) GetVaultDonSecrets added in v0.9.7

func (x *ConfidentialHTTPRequest) GetVaultDonSecrets() []*SecretIdentifier

func (*ConfidentialHTTPRequest) ProtoMessage added in v0.9.7

func (*ConfidentialHTTPRequest) ProtoMessage()

func (*ConfidentialHTTPRequest) ProtoReflect added in v0.9.7

func (x *ConfidentialHTTPRequest) ProtoReflect() protoreflect.Message

func (*ConfidentialHTTPRequest) Reset added in v0.9.7

func (x *ConfidentialHTTPRequest) Reset()

func (*ConfidentialHTTPRequest) String added in v0.9.7

func (x *ConfidentialHTTPRequest) String() string

type HTTPRequest added in v0.9.7

type HTTPRequest struct {

	// url is the endpoint to which the request is sent.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// method is the HTTP method (GET, POST, PUT, DELETE, etc.).
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// body is the request body - either a string template or raw bytes.
	//
	// Types that are valid to be assigned to Body:
	//
	//	*HTTPRequest_BodyString
	//	*HTTPRequest_BodyBytes
	Body isHTTPRequest_Body `protobuf_oneof:"body"`
	// multi_headers are the request headers as name-value pairs.
	// Supports multiple values per header key.
	MultiHeaders map[string]*HeaderValues `` /* 171-byte string literal not displayed */
	// template_public_values are public values used to fill in request body and header templates.
	TemplatePublicValues map[string]string `` /* 197-byte string literal not displayed */
	// custom_root_ca_cert_pem is an optional custom root CA certificate (PEM format)
	// for verifying the external server's TLS certificate.
	CustomRootCaCertPem []byte `protobuf:"bytes,6,opt,name=custom_root_ca_cert_pem,json=customRootCaCertPem,proto3" json:"custom_root_ca_cert_pem,omitempty"`
	// timeout is the request timeout duration.
	Timeout *durationpb.Duration `protobuf:"bytes,7,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// encrypt_output controls whether the enclave response should be encrypted.
	// If true, the response will be AES-GCM encrypted using the
	// "san_marino_aes_gcm_encryption_key" secret.
	// Default is false (response returned unencrypted).
	EncryptOutput bool `protobuf:"varint,9,opt,name=encrypt_output,json=encryptOutput,proto3" json:"encrypt_output,omitempty"`
	// contains filtered or unexported fields
}

HTTPRequest contains the HTTP fields used to make a request from the enclave.

func (*HTTPRequest) Descriptor deprecated added in v0.9.7

func (*HTTPRequest) Descriptor() ([]byte, []int)

Deprecated: Use HTTPRequest.ProtoReflect.Descriptor instead.

func (*HTTPRequest) GetBody added in v0.9.7

func (x *HTTPRequest) GetBody() isHTTPRequest_Body

func (*HTTPRequest) GetBodyBytes added in v0.9.7

func (x *HTTPRequest) GetBodyBytes() []byte

func (*HTTPRequest) GetBodyString added in v0.9.7

func (x *HTTPRequest) GetBodyString() string

func (*HTTPRequest) GetCustomRootCaCertPem added in v0.9.7

func (x *HTTPRequest) GetCustomRootCaCertPem() []byte

func (*HTTPRequest) GetEncryptOutput added in v0.9.7

func (x *HTTPRequest) GetEncryptOutput() bool

func (*HTTPRequest) GetMethod added in v0.9.7

func (x *HTTPRequest) GetMethod() string

func (*HTTPRequest) GetMultiHeaders added in v0.9.7

func (x *HTTPRequest) GetMultiHeaders() map[string]*HeaderValues

func (*HTTPRequest) GetTemplatePublicValues added in v0.9.7

func (x *HTTPRequest) GetTemplatePublicValues() map[string]string

func (*HTTPRequest) GetTimeout added in v0.9.7

func (x *HTTPRequest) GetTimeout() *durationpb.Duration

func (*HTTPRequest) GetUrl added in v0.9.7

func (x *HTTPRequest) GetUrl() string

func (*HTTPRequest) ProtoMessage added in v0.9.7

func (*HTTPRequest) ProtoMessage()

func (*HTTPRequest) ProtoReflect added in v0.9.7

func (x *HTTPRequest) ProtoReflect() protoreflect.Message

func (*HTTPRequest) Reset added in v0.9.7

func (x *HTTPRequest) Reset()

func (*HTTPRequest) String added in v0.9.7

func (x *HTTPRequest) String() string

type HTTPRequest_BodyBytes added in v0.9.7

type HTTPRequest_BodyBytes struct {
	BodyBytes []byte `protobuf:"bytes,8,opt,name=body_bytes,json=bodyBytes,proto3,oneof"`
}

type HTTPRequest_BodyString added in v0.9.7

type HTTPRequest_BodyString struct {
	BodyString string `protobuf:"bytes,3,opt,name=body_string,json=bodyString,proto3,oneof"`
}

type HTTPResponse added in v0.9.7

type HTTPResponse struct {

	// status_code is the HTTP status code.
	StatusCode uint32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	// body is the response body.
	Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// multi_headers are the response headers.
	// Supports multiple values per header key.
	MultiHeaders map[string]*HeaderValues `` /* 171-byte string literal not displayed */
	// contains filtered or unexported fields
}

HTTPResponse contains the HTTP response from the enclave.

func (*HTTPResponse) Descriptor deprecated added in v0.9.7

func (*HTTPResponse) Descriptor() ([]byte, []int)

Deprecated: Use HTTPResponse.ProtoReflect.Descriptor instead.

func (*HTTPResponse) GetBody added in v0.9.7

func (x *HTTPResponse) GetBody() []byte

func (*HTTPResponse) GetMultiHeaders added in v0.9.7

func (x *HTTPResponse) GetMultiHeaders() map[string]*HeaderValues

func (*HTTPResponse) GetStatusCode added in v0.9.7

func (x *HTTPResponse) GetStatusCode() uint32

func (*HTTPResponse) ProtoMessage added in v0.9.7

func (*HTTPResponse) ProtoMessage()

func (*HTTPResponse) ProtoReflect added in v0.9.7

func (x *HTTPResponse) ProtoReflect() protoreflect.Message

func (*HTTPResponse) Reset added in v0.9.7

func (x *HTTPResponse) Reset()

func (*HTTPResponse) String added in v0.9.7

func (x *HTTPResponse) String() string

type HeaderValues added in v0.9.7

type HeaderValues struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

HeaderValues represents multiple values for a single header key.

func (*HeaderValues) Descriptor deprecated added in v0.9.7

func (*HeaderValues) Descriptor() ([]byte, []int)

Deprecated: Use HeaderValues.ProtoReflect.Descriptor instead.

func (*HeaderValues) GetValues added in v0.9.7

func (x *HeaderValues) GetValues() []string

func (*HeaderValues) ProtoMessage added in v0.9.7

func (*HeaderValues) ProtoMessage()

func (*HeaderValues) ProtoReflect added in v0.9.7

func (x *HeaderValues) ProtoReflect() protoreflect.Message

func (*HeaderValues) Reset added in v0.9.7

func (x *HeaderValues) Reset()

func (*HeaderValues) String added in v0.9.7

func (x *HeaderValues) String() string

type SecretIdentifier

type SecretIdentifier struct {
	Key       string  `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Namespace string  `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Owner     *string `protobuf:"bytes,3,opt,name=owner,proto3,oneof" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretIdentifier) Descriptor deprecated

func (*SecretIdentifier) Descriptor() ([]byte, []int)

Deprecated: Use SecretIdentifier.ProtoReflect.Descriptor instead.

func (*SecretIdentifier) GetKey

func (x *SecretIdentifier) GetKey() string

func (*SecretIdentifier) GetNamespace

func (x *SecretIdentifier) GetNamespace() string

func (*SecretIdentifier) GetOwner

func (x *SecretIdentifier) GetOwner() string

func (*SecretIdentifier) ProtoMessage

func (*SecretIdentifier) ProtoMessage()

func (*SecretIdentifier) ProtoReflect

func (x *SecretIdentifier) ProtoReflect() protoreflect.Message

func (*SecretIdentifier) Reset

func (x *SecretIdentifier) Reset()

func (*SecretIdentifier) String

func (x *SecretIdentifier) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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