Add gRPC vault lifecycle backend flow

This commit is contained in:
Joe Julian
2026-03-29 11:21:52 -07:00
parent 422de535af
commit f009573b4a
4 changed files with 358 additions and 26 deletions
+20 -2
View File
@@ -479,6 +479,8 @@ func (*LockVaultResponse) Descriptor() ([]byte, []int) {
type UnlockVaultRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
KeyFileData []byte `protobuf:"bytes,2,opt,name=key_file_data,json=keyFileData,proto3" json:"key_file_data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -513,6 +515,20 @@ func (*UnlockVaultRequest) Descriptor() ([]byte, []int) {
return file_proto_keepassgo_v1_keepassgo_proto_rawDescGZIP(), []int{10}
}
func (x *UnlockVaultRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *UnlockVaultRequest) GetKeyFileData() []byte {
if x != nil {
return x.KeyFileData
}
return nil
}
type UnlockVaultResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
@@ -2364,8 +2380,10 @@ const file_proto_keepassgo_v1_keepassgo_proto_rawDesc = "" +
"\x10SaveVaultRequest\"\x13\n" +
"\x11SaveVaultResponse\"\x12\n" +
"\x10LockVaultRequest\"\x13\n" +
"\x11LockVaultResponse\"\x14\n" +
"\x12UnlockVaultRequest\"\x15\n" +
"\x11LockVaultResponse\"T\n" +
"\x12UnlockVaultRequest\x12\x1a\n" +
"\bpassword\x18\x01 \x01(\tR\bpassword\x12\"\n" +
"\rkey_file_data\x18\x02 \x01(\fR\vkeyFileData\"\x15\n" +
"\x13UnlockVaultResponse\">\n" +
"\x12ListEntriesRequest\x12\x12\n" +
"\x04path\x18\x01 \x03(\tR\x04path\x12\x14\n" +
+4 -1
View File
@@ -67,7 +67,10 @@ message LockVaultRequest {}
message LockVaultResponse {}
message UnlockVaultRequest {}
message UnlockVaultRequest {
string password = 1;
bytes key_file_data = 2;
}
message UnlockVaultResponse {}