You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd_init_wallet.go
+63-13Lines changed: 63 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,15 @@ type secretSourceK8s struct {
52
52
Base64bool`long:"base64" description:"Encode as base64 when storing and decode as base64 when reading"`
53
53
}
54
54
55
+
typesecretSourceVaultstruct {
56
+
AuthTokenPathstring`long:"auth-token-path" description:"The full path to the token file that should be used to authenticate against HashiCorp Vault"`
57
+
AuthRolestring`long:"auth-role" description:"The role to acquire when logging into HashiCorp Vault"`
58
+
SecretNamestring`long:"secret-name" description:"The name of the Kubernetes secret"`
59
+
SeedKeyNamestring`long:"seed-key-name" description:"The name of the entry within the secret that contains the seed"`
60
+
SeedPassphraseEntryNamestring`long:"seed-passphrase-entry-name" description:"The name of the entry within the secret that contains the seed passphrase"`
61
+
WalletPasswordEntryNamestring`long:"wallet-password-entry-name" description:"The name of the entry within the secret that contains the wallet password"`
62
+
}
63
+
55
64
typeinitTypeFilestruct {
56
65
OutputWalletDirstring`long:"output-wallet-dir" description:"The directory in which the wallet.db file should be initialized"`
57
66
ValidatePasswordbool`long:"validate-password" description:"If a wallet file already exists in the output wallet directory, validate that it can be unlocked with the given password; this will try to decrypt the wallet and will take several seconds to complete"`
@@ -65,13 +74,14 @@ type initTypeRpc struct {
65
74
}
66
75
67
76
typeinitWalletCommandstruct {
68
-
Networkstring`long:"network" description:"The Bitcoin network to initialize the wallet for, required for wallet internals" choice:"mainnet" choice:"testnet" choice:"testnet3" choice:"regtest" choice:"simnet"`
69
-
SecretSourcestring`long:"secret-source" description:"Where to read the secrets from to initialize the wallet with" choice:"file" choice:"k8s"`
70
-
File*secretSourceFile`group:"Flags for reading the secrets from files (use when --secret-source=file)" namespace:"file"`
71
-
K8s*secretSourceK8s`group:"Flags for reading the secrets from Kubernetes (use when --secret-source=k8s)" namespace:"k8s"`
72
-
InitTypestring`long:"init-type" description:"How to initialize the wallet" choice:"file" choice:"rpc"`
73
-
InitFile*initTypeFile`group:"Flags for initializing the wallet as a file (use when --init-type=file)" namespace:"init-file"`
74
-
InitRpc*initTypeRpc`group:"Flags for initializing the wallet through RPC (use when --init-type=rpc)" namespace:"init-rpc"`
77
+
Networkstring`long:"network" description:"The Bitcoin network to initialize the wallet for, required for wallet internals" choice:"mainnet" choice:"testnet" choice:"testnet3" choice:"regtest" choice:"simnet"`
78
+
SecretSourcestring`long:"secret-source" description:"Where to read the secrets from to initialize the wallet with" choice:"file" choice:"k8s"`
79
+
File*secretSourceFile`group:"Flags for reading the secrets from files (use when --secret-source=file)" namespace:"file"`
80
+
K8s*secretSourceK8s`group:"Flags for reading the secrets from Kubernetes (use when --secret-source=k8s)" namespace:"k8s"`
81
+
Vault*secretSourceVault`group:"Flags for reading the secrets from HashiCorp Vault (use when --secret-source=vault)" namespace:"vault"`
82
+
InitTypestring`long:"init-type" description:"How to initialize the wallet" choice:"file" choice:"rpc"`
83
+
InitFile*initTypeFile`group:"Flags for initializing the wallet as a file (use when --init-type=file)" namespace:"init-file"`
84
+
InitRpc*initTypeRpc`group:"Flags for initializing the wallet through RPC (use when --init-type=rpc)" namespace:"init-rpc"`
Copy file name to clipboardExpand all lines: cmd_store_secret.go
+48-4Lines changed: 48 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,11 @@ type entry struct {
22
22
}
23
23
24
24
typestoreSecretCommandstruct {
25
-
Batchbool`long:"batch" description:"Instead of reading one secret from stdin, read all files of the argument list and store them as entries in the secret"`
26
-
Overwritebool`long:"overwrite" description:"Overwrite existing secret entries instead of aborting"`
K8s*targetK8sSecret`group:"Flags for storing the secret as a value inside a Kubernetes Secret (use when --target=k8s)" namespace:"k8s"`
25
+
Batchbool`long:"batch" description:"Instead of reading one secret from stdin, read all files of the argument list and store them as entries in the secret"`
26
+
Overwritebool`long:"overwrite" description:"Overwrite existing secret entries instead of aborting"`
0 commit comments