tree: Allow reading requests signed by keys from allow list #458
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,9 @@ func getByPath(cmd *cobra.Command, _ []string) {
|
|||
Path: strings.Split(path, "/"),
|
||||
LatestOnly: latestOnly,
|
||||
AllAttributes: true,
|
||||
BearerToken: common.ReadBearerToken(cmd, bearerFlagKey).Marshal(),
|
||||
}
|
||||
if btok := common.ReadBearerToken(cmd, bearerFlagKey); btok != nil {
|
||||
req.Body.BearerToken = btok.Marshal()
|
||||
}
|
||||
|
||||
commonCmd.ExitOnErr(cmd, "message signing: %w", tree.SignMessage(req, pk))
|
||||
|
|
Loading…
Reference in a new issue