merge totp to workingdir (#476)

* merge totp to workingdir

* Refactor .goreleaser.yaml to remove plugin_totp build configuration
This commit is contained in:
Boshi Lian 2024-10-28 01:09:28 -07:00 committed by GitHub
parent 0e6168a6b8
commit 23e18f4f7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 669 additions and 791 deletions

File diff suppressed because it is too large Load diff

View file

@ -23,6 +23,7 @@ message Upstream {
UpstreamPrivateKeyAuth private_key = 102;
UpstreamRemoteSignerAuth remote_signer = 103;
UpstreamNextPluginAuth next_plugin = 200;
UpstreamRetryCurrentPluginAuth retry_current_plugin = 201;
}
}
@ -47,6 +48,10 @@ message UpstreamNextPluginAuth {
map<string, string> meta = 1;
}
message UpstreamRetryCurrentPluginAuth {
map<string, string> meta = 1;
}
service SshPiperPlugin {
rpc Logs(StartLogRequest) returns (stream Log) {}
rpc ListCallbacks(ListCallbackRequest) returns (ListCallbackResponse) {}

View file

@ -147,6 +147,14 @@ func CreateNextPluginAuth(meta map[string]string) *Upstream_NextPlugin {
}
}
func CreateRetryCurrentPluginAuth(meta map[string]string) *Upstream_RetryCurrentPlugin {
return &Upstream_RetryCurrentPlugin{
RetryCurrentPlugin: &UpstreamRetryCurrentPluginAuth{
Meta: meta,
},
}
}
func VerifyHostKeyFromKnownHosts(knownhostsData io.Reader, hostname, netaddr string, key []byte) error {
hostKeyCallback, err := knownhosts.NewFromReader(knownhostsData)
if err != nil {