aries-cloudagent-python
aries-cloudagent-python copied to clipboard
Add seed command line parameter but use only if also an "allow insecure seed" parameter is set
Signed-off-by: DaevMithran [email protected]
Updated pull request changes suggested by @TimoGlastra
- Raising an http bad request error when a seed is passed in the body and wallet-allow-insecure-seed is not enabled
- Updated schema for wallet/did/create
Codecov Report
Merging #1714 (2d86c5d) into main (186c3f4) will increase coverage by
0.00%
. The diff coverage is75.00%
.
@@ Coverage Diff @@
## main #1714 +/- ##
=======================================
Coverage 95.26% 95.26%
=======================================
Files 528 528
Lines 33109 33110 +1
=======================================
+ Hits 31541 31542 +1
Misses 1568 1568
The error in the integration tests is unrelated to this PR (see issue #1832 ). Once we fix that, we'll trigger another integration run.
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
3.2% Duplication
@ianco -- can you please review. Is this OK? Or should we not do this. We've not had a request for it for a while.
I'm thinking that there should be two new command line parameters (seed and "...insecure") here, but I don't see any documentation about those parameters.
Thanks
The new seed
parameter is for creating a new DID within an existing wallet (mainly for a new multi-tenant wallet) and is not related to the --seed
startup parameter. (The former creates a new DID within a wallet, the latter establishes the public DID for the main wallet on startup). So I think this PR is ok.
True about the seed parameter (doh!!) -- but doesn't there have to be an "allow_insecure_seed" parameter and guidance/help text for how to use that?
True about the seed parameter (doh!!) -- but doesn't there have to be an "allow_insecure_seed" parameter and guidance/help text for how to use that?
Yes that already exists:
https://github.com/hyperledger/aries-cloudagent-python/blob/main/aries_cloudagent/config/argparse.py#L1453