vaultv1

package
v0.0.0-...-3a74bb8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Algorithm_name = map[int32]string{
		0: "AES_256_GCM",
	}
	Algorithm_value = map[string]int32{
		"AES_256_GCM": 0,
	}
)

Enum value maps for Algorithm.

View Source
var File_proto_vault_v1_object_proto protoreflect.FileDescriptor
View Source
var File_proto_vault_v1_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Algorithm

type Algorithm int32
const (
	Algorithm_AES_256_GCM Algorithm = 0
)

func (Algorithm) Descriptor

func (Algorithm) Descriptor() protoreflect.EnumDescriptor

func (Algorithm) Enum

func (x Algorithm) Enum() *Algorithm

func (Algorithm) EnumDescriptor deprecated

func (Algorithm) EnumDescriptor() ([]byte, []int)

Deprecated: Use Algorithm.Descriptor instead.

func (Algorithm) Number

func (x Algorithm) Number() protoreflect.EnumNumber

func (Algorithm) String

func (x Algorithm) String() string

func (Algorithm) Type

type CreateDEKRequest

type CreateDEKRequest struct {
	Keyring string `protobuf:"bytes,1,opt,name=keyring,proto3" json:"keyring,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDEKRequest) Descriptor deprecated

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

Deprecated: Use CreateDEKRequest.ProtoReflect.Descriptor instead.

func (*CreateDEKRequest) GetKeyring

func (x *CreateDEKRequest) GetKeyring() string

func (*CreateDEKRequest) ProtoMessage

func (*CreateDEKRequest) ProtoMessage()

func (*CreateDEKRequest) ProtoReflect

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

func (*CreateDEKRequest) Reset

func (x *CreateDEKRequest) Reset()

func (*CreateDEKRequest) String

func (x *CreateDEKRequest) String() string

type CreateDEKResponse

type CreateDEKResponse struct {
	KeyId string `protobuf:"bytes,1,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDEKResponse) Descriptor deprecated

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

Deprecated: Use CreateDEKResponse.ProtoReflect.Descriptor instead.

func (*CreateDEKResponse) GetKeyId

func (x *CreateDEKResponse) GetKeyId() string

func (*CreateDEKResponse) ProtoMessage

func (*CreateDEKResponse) ProtoMessage()

func (*CreateDEKResponse) ProtoReflect

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

func (*CreateDEKResponse) Reset

func (x *CreateDEKResponse) Reset()

func (*CreateDEKResponse) String

func (x *CreateDEKResponse) String() string

type DataEncryptionKey

type DataEncryptionKey struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Linux milliseconds since epoch
	CreatedAt int64  `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Key       []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*DataEncryptionKey) Descriptor deprecated

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

Deprecated: Use DataEncryptionKey.ProtoReflect.Descriptor instead.

func (*DataEncryptionKey) GetCreatedAt

func (x *DataEncryptionKey) GetCreatedAt() int64

func (*DataEncryptionKey) GetId

func (x *DataEncryptionKey) GetId() string

func (*DataEncryptionKey) GetKey

func (x *DataEncryptionKey) GetKey() []byte

func (*DataEncryptionKey) ProtoMessage

func (*DataEncryptionKey) ProtoMessage()

func (*DataEncryptionKey) ProtoReflect

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

func (*DataEncryptionKey) Reset

func (x *DataEncryptionKey) Reset()

func (*DataEncryptionKey) String

func (x *DataEncryptionKey) String() string

type DecryptRequest

type DecryptRequest struct {
	Keyring   string `protobuf:"bytes,1,opt,name=keyring,proto3" json:"keyring,omitempty"`
	Encrypted string `protobuf:"bytes,2,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
	// contains filtered or unexported fields
}

func (*DecryptRequest) Descriptor deprecated

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

Deprecated: Use DecryptRequest.ProtoReflect.Descriptor instead.

func (*DecryptRequest) GetEncrypted

func (x *DecryptRequest) GetEncrypted() string

func (*DecryptRequest) GetKeyring

func (x *DecryptRequest) GetKeyring() string

func (*DecryptRequest) ProtoMessage

func (*DecryptRequest) ProtoMessage()

func (*DecryptRequest) ProtoReflect

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

func (*DecryptRequest) Reset

func (x *DecryptRequest) Reset()

func (*DecryptRequest) String

func (x *DecryptRequest) String() string

type DecryptResponse

type DecryptResponse struct {
	Plaintext string `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"`
	// contains filtered or unexported fields
}

func (*DecryptResponse) Descriptor deprecated

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

Deprecated: Use DecryptResponse.ProtoReflect.Descriptor instead.

func (*DecryptResponse) GetPlaintext

func (x *DecryptResponse) GetPlaintext() string

func (*DecryptResponse) ProtoMessage

func (*DecryptResponse) ProtoMessage()

func (*DecryptResponse) ProtoReflect

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

func (*DecryptResponse) Reset

func (x *DecryptResponse) Reset()

func (*DecryptResponse) String

func (x *DecryptResponse) String() string

type EncryptBulkRequest

type EncryptBulkRequest struct {
	Keyring string   `protobuf:"bytes,1,opt,name=keyring,proto3" json:"keyring,omitempty"`
	Data    []string `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptBulkRequest) Descriptor deprecated

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

Deprecated: Use EncryptBulkRequest.ProtoReflect.Descriptor instead.

func (*EncryptBulkRequest) GetData

func (x *EncryptBulkRequest) GetData() []string

func (*EncryptBulkRequest) GetKeyring

func (x *EncryptBulkRequest) GetKeyring() string

func (*EncryptBulkRequest) ProtoMessage

func (*EncryptBulkRequest) ProtoMessage()

func (*EncryptBulkRequest) ProtoReflect

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

func (*EncryptBulkRequest) Reset

func (x *EncryptBulkRequest) Reset()

func (*EncryptBulkRequest) String

func (x *EncryptBulkRequest) String() string

type EncryptBulkResponse

type EncryptBulkResponse struct {
	Encrypted []*EncryptResponse `protobuf:"bytes,1,rep,name=encrypted,proto3" json:"encrypted,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptBulkResponse) Descriptor deprecated

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

Deprecated: Use EncryptBulkResponse.ProtoReflect.Descriptor instead.

func (*EncryptBulkResponse) GetEncrypted

func (x *EncryptBulkResponse) GetEncrypted() []*EncryptResponse

func (*EncryptBulkResponse) ProtoMessage

func (*EncryptBulkResponse) ProtoMessage()

func (*EncryptBulkResponse) ProtoReflect

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

func (*EncryptBulkResponse) Reset

func (x *EncryptBulkResponse) Reset()

func (*EncryptBulkResponse) String

func (x *EncryptBulkResponse) String() string

type EncryptRequest

type EncryptRequest struct {
	Keyring string `protobuf:"bytes,1,opt,name=keyring,proto3" json:"keyring,omitempty"`
	Data    string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptRequest) Descriptor deprecated

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

Deprecated: Use EncryptRequest.ProtoReflect.Descriptor instead.

func (*EncryptRequest) GetData

func (x *EncryptRequest) GetData() string

func (*EncryptRequest) GetKeyring

func (x *EncryptRequest) GetKeyring() string

func (*EncryptRequest) ProtoMessage

func (*EncryptRequest) ProtoMessage()

func (*EncryptRequest) ProtoReflect

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

func (*EncryptRequest) Reset

func (x *EncryptRequest) Reset()

func (*EncryptRequest) String

func (x *EncryptRequest) String() string

type EncryptResponse

type EncryptResponse struct {
	Encrypted string `protobuf:"bytes,1,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
	KeyId     string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// contains filtered or unexported fields
}

func (*EncryptResponse) Descriptor deprecated

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

Deprecated: Use EncryptResponse.ProtoReflect.Descriptor instead.

func (*EncryptResponse) GetEncrypted

func (x *EncryptResponse) GetEncrypted() string

func (*EncryptResponse) GetKeyId

func (x *EncryptResponse) GetKeyId() string

func (*EncryptResponse) ProtoMessage

func (*EncryptResponse) ProtoMessage()

func (*EncryptResponse) ProtoReflect

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

func (*EncryptResponse) Reset

func (x *EncryptResponse) Reset()

func (*EncryptResponse) String

func (x *EncryptResponse) String() string

type Encrypted

type Encrypted struct {
	Algorithm  Algorithm `protobuf:"varint,1,opt,name=algorithm,proto3,enum=vault.v1.Algorithm" json:"algorithm,omitempty"`
	Nonce      []byte    `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Ciphertext []byte    `protobuf:"bytes,3,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"`
	// key id of the key that encrypted this data
	EncryptionKeyId string `protobuf:"bytes,4,opt,name=encryption_key_id,json=encryptionKeyId,proto3" json:"encryption_key_id,omitempty"`
	// time of encryption
	// we can use this later to figure out if a piece of data should be re-encrypted
	Time int64 `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

Encrypted contains the output of the encryption and all of the metadata required to decrypt it

func (*Encrypted) Descriptor deprecated

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

Deprecated: Use Encrypted.ProtoReflect.Descriptor instead.

func (*Encrypted) GetAlgorithm

func (x *Encrypted) GetAlgorithm() Algorithm

func (*Encrypted) GetCiphertext

func (x *Encrypted) GetCiphertext() []byte

func (*Encrypted) GetEncryptionKeyId

func (x *Encrypted) GetEncryptionKeyId() string

func (*Encrypted) GetNonce

func (x *Encrypted) GetNonce() []byte

func (*Encrypted) GetTime

func (x *Encrypted) GetTime() int64

func (*Encrypted) ProtoMessage

func (*Encrypted) ProtoMessage()

func (*Encrypted) ProtoReflect

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

func (*Encrypted) Reset

func (x *Encrypted) Reset()

func (*Encrypted) String

func (x *Encrypted) String() string

type EncryptedDataEncryptionKey

type EncryptedDataEncryptionKey struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Linux milliseconds since epoch
	CreatedAt int64      `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Encrypted *Encrypted `protobuf:"bytes,3,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
	// contains filtered or unexported fields
}

This is stored in the database in whatever format the database uses

func (*EncryptedDataEncryptionKey) Descriptor deprecated

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

Deprecated: Use EncryptedDataEncryptionKey.ProtoReflect.Descriptor instead.

func (*EncryptedDataEncryptionKey) GetCreatedAt

func (x *EncryptedDataEncryptionKey) GetCreatedAt() int64

func (*EncryptedDataEncryptionKey) GetEncrypted

func (x *EncryptedDataEncryptionKey) GetEncrypted() *Encrypted

func (*EncryptedDataEncryptionKey) GetId

func (*EncryptedDataEncryptionKey) ProtoMessage

func (*EncryptedDataEncryptionKey) ProtoMessage()

func (*EncryptedDataEncryptionKey) ProtoReflect

func (*EncryptedDataEncryptionKey) Reset

func (x *EncryptedDataEncryptionKey) Reset()

func (*EncryptedDataEncryptionKey) String

func (x *EncryptedDataEncryptionKey) String() string

type KeyEncryptionKey

type KeyEncryptionKey struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt int64  `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Key       []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

KeyEncryptionKey is a key used to encrypt data encryption keys

func (*KeyEncryptionKey) Descriptor deprecated

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

Deprecated: Use KeyEncryptionKey.ProtoReflect.Descriptor instead.

func (*KeyEncryptionKey) GetCreatedAt

func (x *KeyEncryptionKey) GetCreatedAt() int64

func (*KeyEncryptionKey) GetId

func (x *KeyEncryptionKey) GetId() string

func (*KeyEncryptionKey) GetKey

func (x *KeyEncryptionKey) GetKey() []byte

func (*KeyEncryptionKey) ProtoMessage

func (*KeyEncryptionKey) ProtoMessage()

func (*KeyEncryptionKey) ProtoReflect

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

func (*KeyEncryptionKey) Reset

func (x *KeyEncryptionKey) Reset()

func (*KeyEncryptionKey) String

func (x *KeyEncryptionKey) String() string

type LivenessRequest

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

func (*LivenessRequest) Descriptor deprecated

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

Deprecated: Use LivenessRequest.ProtoReflect.Descriptor instead.

func (*LivenessRequest) ProtoMessage

func (*LivenessRequest) ProtoMessage()

func (*LivenessRequest) ProtoReflect

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

func (*LivenessRequest) Reset

func (x *LivenessRequest) Reset()

func (*LivenessRequest) String

func (x *LivenessRequest) String() string

type LivenessResponse

type LivenessResponse struct {
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*LivenessResponse) Descriptor deprecated

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

Deprecated: Use LivenessResponse.ProtoReflect.Descriptor instead.

func (*LivenessResponse) GetStatus

func (x *LivenessResponse) GetStatus() string

func (*LivenessResponse) ProtoMessage

func (*LivenessResponse) ProtoMessage()

func (*LivenessResponse) ProtoReflect

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

func (*LivenessResponse) Reset

func (x *LivenessResponse) Reset()

func (*LivenessResponse) String

func (x *LivenessResponse) String() string

type ReEncryptDEKsRequest

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

func (*ReEncryptDEKsRequest) Descriptor deprecated

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

Deprecated: Use ReEncryptDEKsRequest.ProtoReflect.Descriptor instead.

func (*ReEncryptDEKsRequest) ProtoMessage

func (*ReEncryptDEKsRequest) ProtoMessage()

func (*ReEncryptDEKsRequest) ProtoReflect

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

func (*ReEncryptDEKsRequest) Reset

func (x *ReEncryptDEKsRequest) Reset()

func (*ReEncryptDEKsRequest) String

func (x *ReEncryptDEKsRequest) String() string

type ReEncryptDEKsResponse

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

func (*ReEncryptDEKsResponse) Descriptor deprecated

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

Deprecated: Use ReEncryptDEKsResponse.ProtoReflect.Descriptor instead.

func (*ReEncryptDEKsResponse) ProtoMessage

func (*ReEncryptDEKsResponse) ProtoMessage()

func (*ReEncryptDEKsResponse) ProtoReflect

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

func (*ReEncryptDEKsResponse) Reset

func (x *ReEncryptDEKsResponse) Reset()

func (*ReEncryptDEKsResponse) String

func (x *ReEncryptDEKsResponse) String() string

type ReEncryptRequest

type ReEncryptRequest struct {
	Keyring   string `protobuf:"bytes,1,opt,name=keyring,proto3" json:"keyring,omitempty"`
	Encrypted string `protobuf:"bytes,2,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
	// Specify the key_id to use for re-encryption. If not provided, the latest will be used
	KeyId *string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3,oneof" json:"key_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ReEncryptRequest) Descriptor deprecated

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

Deprecated: Use ReEncryptRequest.ProtoReflect.Descriptor instead.

func (*ReEncryptRequest) GetEncrypted

func (x *ReEncryptRequest) GetEncrypted() string

func (*ReEncryptRequest) GetKeyId

func (x *ReEncryptRequest) GetKeyId() string

func (*ReEncryptRequest) GetKeyring

func (x *ReEncryptRequest) GetKeyring() string

func (*ReEncryptRequest) ProtoMessage

func (*ReEncryptRequest) ProtoMessage()

func (*ReEncryptRequest) ProtoReflect

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

func (*ReEncryptRequest) Reset

func (x *ReEncryptRequest) Reset()

func (*ReEncryptRequest) String

func (x *ReEncryptRequest) String() string

type ReEncryptResponse

type ReEncryptResponse struct {
	Encrypted string `protobuf:"bytes,1,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
	KeyId     string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ReEncryptResponse) Descriptor deprecated

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

Deprecated: Use ReEncryptResponse.ProtoReflect.Descriptor instead.

func (*ReEncryptResponse) GetEncrypted

func (x *ReEncryptResponse) GetEncrypted() string

func (*ReEncryptResponse) GetKeyId

func (x *ReEncryptResponse) GetKeyId() string

func (*ReEncryptResponse) ProtoMessage

func (*ReEncryptResponse) ProtoMessage()

func (*ReEncryptResponse) ProtoReflect

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

func (*ReEncryptResponse) Reset

func (x *ReEncryptResponse) Reset()

func (*ReEncryptResponse) String

func (x *ReEncryptResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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