Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

fixes #233 Allow nodekey to be specified separately to --datadir #234

Merged

Conversation

NicolasMassart
Copy link
Contributor

PR description

added a --nodekey option to the CLI to be able to define a separate path for the private key when starting pantheon.

Fixed Issue(s)

fixes #233

@NicolasMassart NicolasMassart self-assigned this Nov 3, 2018
@ekellstrand
Copy link
Contributor

should the --nodekey param be the actual file instead of a directory that contains "./key"?

@NicolasMassart
Copy link
Contributor Author

You're right. I will check that tomorrow. I did it this way because I was focused in using the datadir as the default value using a Path type, but it's easy to do it the way you say.

@NicolasMassart NicolasMassart added the work in progress Work on this pull request is ongoing label Nov 3, 2018
@NicolasMassart
Copy link
Contributor Author

@ekellstrand change from Path to File done

@MadelineMurray
Copy link
Contributor

Can we rename this --node-private-key or similar to make it explicit that it's the private key? From a user point of view, it's not clear if it's the node public key or node private key.

@NicolasMassart NicolasMassart added enhancement New feature or request api Related to public APIs and removed work in progress Work on this pull request is ongoing labels Nov 12, 2018
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolving the duplication in finding the default 'key' file is the only issue - otherwise looks good.

NicolasMassart and others added 2 commits November 13, 2018 17:42
- Centralised (sic) the key default file into a static method in KeyPairUtils
- Changed the file equality test as I forgot the file type is comparable... no
comment...
Copy link
Contributor

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@NicolasMassart NicolasMassart merged commit 21bc640 into PegaSysEng:master Nov 14, 2018
@NicolasMassart NicolasMassart deleted the feature/233_nodekey_option branch November 14, 2018 10:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api Related to public APIs enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants