Skip to content

build: add separate keypairs for dev environment#73

Merged
mantariksh merged 5 commits intodevelopfrom
build/dev-keys
Jun 17, 2021
Merged

build: add separate keypairs for dev environment#73
mantariksh merged 5 commits intodevelopfrom
build/dev-keys

Conversation

@mantariksh
Copy link
Contributor

The dev environment currently uses the same key pairs as staging. This makes it difficult for developers to onboard onto this and the main FormSG repos, as they need access to the staging private keys in order to do dev work.

This PR adds separate signing and verification key pairs for the development environment. These can be used as defaults in the main FormSG repo.

Closes #68

@mantariksh mantariksh requested a review from karrui June 16, 2021 10:20
Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

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

lgtm

@mantariksh
Copy link
Contributor Author

whoops, took a look at the key lengths and realised I should have generated these using nacl.sign.keyPair rather than nacl.box.keyPair. will fix tomorrow!

Copy link
Contributor

@karrui karrui left a comment

Choose a reason for hiding this comment

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

thanks for the catch, somehow slipped my attention that test's secretKey is so much longer haha

@liangyuanruo
Copy link
Contributor

whoops, took a look at the key lengths and realised I should have generated these using nacl.sign.keyPair rather than nacl.box.keyPair. will fix tomorrow!

sorry for misleading - should we add a test for this?

@mantariksh mantariksh merged commit f9a7fc4 into develop Jun 17, 2021
@mantariksh mantariksh deleted the build/dev-keys branch June 17, 2021 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a unique public-private key pair for development mode

3 participants