Open muttoni opened 2 years ago
btw most KMS's have a CLI to sign stuff, maybe adding one external signer type can be also useful.
Something like: ( command is totally randomly generated by me )
"accounts": {
"admin-account": {
"address": "service",
"key": {
"type": "CLI",
"index": 0,
"command": "blueKMS --keyId 1 --sigAlgo EP256 --hashAlgo sha3 --payload {payload}"
}
}
}
This could be an interesting idea yeah. I just added another type here which is of "file" type to replace from file.
This has been implemented in Go SDK and should be possible to add https://github.com/onflow/flow-go-sdk
For reference:
Issue To Be Solved
Currently the Flow CLI only supports Google KMS.
Example:
(Optional): Suggest A Solution
Add support for other KMS providers (e.g.
aws-kms
,azure-kms
, etc), or provide sample on docs that shows workaround for other KMS providers if functionality already exists.(Optional): Context
Requested on Discord