Skip to content

Commit

Permalink
feat: known host security key data
Browse files Browse the repository at this point in the history
  • Loading branch information
Esonhugh committed Sep 22, 2023
1 parent 73a52ef commit bd62342
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 31 deletions.
26 changes: 25 additions & 1 deletion gen/openapi/sync/v1/sync_service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
},
{
"name": "host.port",
"description": "port is from 1-65535 int 64 is too large. Need check",
"in": "query",
"required": false,
"type": "string",
Expand All @@ -137,6 +138,20 @@
"required": false,
"type": "string"
},
{
"name": "host.knownHostPublicKeyType",
"description": "known host public key type like ssh-ed25519",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "host.knownHostPublicKey",
"description": "known host host publickey AAAAC3NzaC1lZDI1NTE5AAAAIIDI5EzaZ1AGKVwHLa3e/PpkAkJIUDLrDc/Q9lSxfEla",
"in": "query",
"required": false,
"type": "string"
},
{
"name": "host.username",
"description": "用户名",
Expand Down Expand Up @@ -400,12 +415,21 @@
},
"port": {
"type": "string",
"format": "int64"
"format": "int64",
"title": "port is from 1-65535 int 64 is too large. Need check"
},
"charset": {
"type": "string",
"title": "字符集"
},
"knownHostPublicKeyType": {
"type": "string",
"title": "known host public key type like ssh-ed25519"
},
"knownHostPublicKey": {
"type": "string",
"title": "known host host publickey AAAAC3NzaC1lZDI1NTE5AAAAIIDI5EzaZ1AGKVwHLa3e/PpkAkJIUDLrDc/Q9lSxfEla"
},
"username": {
"type": "string",
"title": "用户名"
Expand Down
77 changes: 50 additions & 27 deletions gen/proto/sync/v1/host.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gen/proto/sync/v1/host.pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export type Host = {
address?: string
port?: string
charset?: string
knownHostPublicKeyType?: string
knownHostPublicKey?: string
username?: string
password?: string
keyId?: string
Expand Down
8 changes: 5 additions & 3 deletions proto/sync/v1/host.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ message Host {
string label = 11; // 标签
repeated string tags = 12;

string address = 13; // ip或host
int64 port = 14;
string charset = 15; // 字符集
string address = 13; // ip或host
int64 port = 14; // port is from 1-65535 int 64 is too large. Need check
string charset = 15; // 字符集
string known_host_public_key_type = 16; // known host public key type like ssh-ed25519
string known_host_public_key = 17; // known host host publickey AAAAC3NzaC1lZDI1NTE5AAAAIIDI5EzaZ1AGKVwHLa3e/PpkAkJIUDLrDc/Q9lSxfEla

string username = 21; // 用户名
string password = 22; // 密码
Expand Down

0 comments on commit bd62342

Please sign in to comment.