Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
6f2257a7
Commit
6f2257a7
authored
5 years ago
by
Jono
Browse files
Options
Downloads
Patches
Plain Diff
Change NDF public key to be grabbed frrom the yaml file or command line
parent
3d068464
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/root.go
+7
-5
7 additions, 5 deletions
cmd/root.go
with
7 additions
and
5 deletions
cmd/root.go
+
7
−
5
View file @
6f2257a7
...
@@ -56,11 +56,7 @@ var ndfPath string
...
@@ -56,11 +56,7 @@ var ndfPath string
var
ndfVerifySignature
bool
var
ndfVerifySignature
bool
var
ndfRegistration
[]
string
var
ndfRegistration
[]
string
var
ndfUDB
[]
string
var
ndfUDB
[]
string
var
ndfPubKey
=
`-----BEGIN RSA PUBLIC KEY-----
var
ndfPubKey
string
MGgCYQCsQxKjqNmoTNCu5RfMzsS01xv9h/ZYHD27s5uwzbS2pb5ZGQ2KuvyEwMh0
O9YfmS1hCb7d2ZFqfVPwcY7o4iMuGf1BB7GjyqyeyDD41vZAl04bfyqCqh//ea6z
OG8EimMCAwEAAQ==
-----END RSA PUBLIC KEY-----`
// Execute adds all child commands to the root command and sets flags
// Execute adds all child commands to the root command and sets flags
// appropriately. This is called by main.main(). It only needs to
// appropriately. This is called by main.main(). It only needs to
...
@@ -516,6 +512,12 @@ func init() {
...
@@ -516,6 +512,12 @@ func init() {
"ndf.json"
,
"ndf.json"
,
"Path to the network definition JSON file"
)
"Path to the network definition JSON file"
)
rootCmd
.
PersistentFlags
()
.
StringVarP
(
&
ndfPubKey
,
"ndfPubKey"
,
"p"
,
""
,
"Path to the public key for the network definition JSON file"
)
rootCmd
.
PersistentFlags
()
.
BoolVar
(
&
ndfVerifySignature
,
rootCmd
.
PersistentFlags
()
.
BoolVar
(
&
ndfVerifySignature
,
"ndfVerifySignature"
,
"ndfVerifySignature"
,
true
,
true
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment