File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
keyring/providers/hashicorp Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ pub struct VaultEndpointConfig {
5353 pub keys : String ,
5454
5555 /// HashiCorp Vault API endpoint path to perform a handshake
56- pub hand_shake : String ,
56+ pub handshake : String ,
5757
5858 /// HashiCorp Vault API endpoint path to recieve a wrapping key
5959 pub wrapping_key : String ,
@@ -66,7 +66,7 @@ impl Default for VaultEndpointConfig {
6666 fn default ( ) -> Self {
6767 VaultEndpointConfig {
6868 keys : "/v1/transit/keys" . into ( ) ,
69- hand_shake : "/v1/auth/token/lookup-self" . into ( ) ,
69+ handshake : "/v1/auth/token/lookup-self" . into ( ) ,
7070 wrapping_key : "/v1/transit/wrapping_key" . into ( ) ,
7171 sign : "/v1/transit/sign" . into ( ) ,
7272 }
Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ impl TendermintValidatorApp {
3636 } ;
3737
3838 debug ! ( "Initialized with Vault host at {}" , api_endpoint) ;
39- app. hand_shake ( ) ?;
39+ app. handshake ( ) ?;
4040
4141 Ok ( app)
4242 }
4343
44- fn hand_shake ( & self ) -> Result < ( ) , Error > {
45- let _ = self . vault_client . hand_shake ( ) ;
44+ fn handshake ( & self ) -> Result < ( ) , Error > {
45+ let _ = self . vault_client . handshake ( ) ;
4646 Ok ( ( ) )
4747 }
4848
Original file line number Diff line number Diff line change @@ -312,12 +312,12 @@ impl VaultClient {
312312 Ok ( array)
313313 }
314314
315- pub fn hand_shake ( & self ) -> Result < ( ) , Error > {
315+ pub fn handshake ( & self ) -> Result < ( ) , Error > {
316316 let _ = self
317317 . agent
318318 . get ( & format ! (
319319 "{}{}" ,
320- self . api_endpoint, self . endpoints. hand_shake ,
320+ self . api_endpoint, self . endpoints. handshake ,
321321 ) )
322322 . set ( VAULT_TOKEN , & self . token )
323323 . call ( )
You can’t perform that action at this time.
0 commit comments