Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ed25519 #11780

Merged
merged 22 commits into from Oct 5, 2021
Merged

Conversation

annerajb
Copy link
Contributor

@annerajb annerajb commented Jun 7, 2021

This is the 25519 portion of this issue #8252

@hashicorp-cla
Copy link

hashicorp-cla commented Jun 7, 2021

CLA assistant check
All committers have signed the CLA.

@vercel vercel bot temporarily deployed to Preview – vault-storybook June 7, 2021 12:59 Inactive
@annerajb annerajb changed the title Add support for ed25519 Draft: Add support for ed25519 Jun 7, 2021
@annerajb
Copy link
Contributor Author

annerajb commented Jun 7, 2021

this should be a draft.

@vishalnayak
Copy link
Member

Thanks for working on this! Let us know if you need anything from our end to get this done.

@annerajb
Copy link
Contributor Author

annerajb commented Jun 8, 2021

Thanks for working on this! Let us know if you need anything from our end to get this done.

Any pointers on testing and setting up a dev environments?

I searched casually on this github repo for some sort of developer getting started manual.
My goal is to setup a dev environment that is representative of what the CI uses and preferably same setup scripts /instructions would provide a way to run all test locally and verify my changes won't break anything else.

@vishalnayak
Copy link
Member

Thanks for working on this! Let us know if you need anything from our end to get this done.

Any pointers on testing and setting up a dev environments?

I searched casually on this github repo for some sort of developer getting started manual.
My goal is to setup a dev environment that is representative of what the CI uses and preferably same setup scripts /instructions would provide a way to run all test locally and verify my changes won't break anything else.

@annerajb The readme on the repo should assist with that.

In your case, you can do make test TEST=./builtin/logical/pki to ensure that none of the other pki tests aren't failing.

You can find tests for reference here.

@vercel vercel bot temporarily deployed to Preview – vault-storybook June 17, 2021 22:56 Inactive
@vercel vercel bot temporarily deployed to Preview – vault June 17, 2021 22:56 Inactive
@vercel vercel bot temporarily deployed to Preview – vault June 18, 2021 00:06 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook June 18, 2021 00:06 Inactive
@annerajb
Copy link
Contributor Author

Working slowly on this.

Not sure why the license/CLA still shows pending. But I guess we can deal with that later.

@vercel vercel bot temporarily deployed to Preview – vault June 18, 2021 01:15 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook June 18, 2021 01:15 Inactive
@vercel vercel bot temporarily deployed to Preview – vault June 18, 2021 03:42 Inactive
@annerajb annerajb changed the title Draft: Add support for ed25519 Add support for ed25519 Jun 18, 2021
@annerajb
Copy link
Contributor Author

Thanks for working on this! Let us know if you need anything from our end to get this done.

Any pointers on testing and setting up a dev environments?
I searched casually on this github repo for some sort of developer getting started manual.
My goal is to setup a dev environment that is representative of what the CI uses and preferably same setup scripts /instructions would provide a way to run all test locally and verify my changes won't break anything else.

@annerajb The readme on the repo should assist with that.

In your case, you can do make test TEST=./builtin/logical/pki to ensure that none of the other pki tests aren't failing.

You can find tests for reference here.

Thanks that was helpful.
I implemented and at least locally the pki backend test pass successfully.

Can you assist me with the following?

  • finding reviewers for this to provide feedback on possible changes to be done?
  • Conformance test suite seems to require cloud infrastructure. Would it be worth for me to spend time trying to set them up or will Circle CI take care of that?
  • any feedback :D

Signed-off-by: Anner J. Bonilla <abonilla@hoyosintegrity.com>
@vercel vercel bot temporarily deployed to Preview – vault-storybook October 1, 2021 18:20 Inactive
@vercel vercel bot temporarily deployed to Preview – vault October 1, 2021 18:20 Inactive
Signed-off-by: Anner J. Bonilla <abonilla@hoyosintegrity.com>
@vercel vercel bot temporarily deployed to Preview – vault October 1, 2021 18:34 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook October 1, 2021 18:34 Inactive
Signed-off-by: Anner J. Bonilla <abonilla@hoyosintegrity.com>
@vercel vercel bot temporarily deployed to Preview – vault-storybook October 2, 2021 03:44 Inactive
@vercel vercel bot temporarily deployed to Preview – vault October 2, 2021 03:44 Inactive
@annerajb
Copy link
Contributor Author

annerajb commented Oct 2, 2021

@vishalnayak @hsimon-hashicorp

The CI is failling on the yarn layer due to a deb package source using the expired DST lets encrypt certificate.

Apart from that can you give another review of the code at this point i was able to utilize this branch to setup a pki with ed25519 both as root and intermediate signed the int csr from the root, also tested signing with a external root ca.

locally when I run make test i see a failure but i don't seem to have touched anything near it's path.

--- FAIL: TestTLSTrailingData (0.00s)
    tls_verification_test.go:82: Bad error message: 127.0.0.1:443: A PEM block does not parse to a certificate: x509: trailing data.
[127.0.0.1:443: Found at least one leaf certificate in the CA certificate file.]
FAIL
FAIL    github.com/hashicorp/vault/vault/diagnose       6.040s

@annerajb
Copy link
Contributor Author

annerajb commented Oct 4, 2021

@vishalnayak @hsimon-hashicorp can somebody remove the label waiting-for-response?

Copy link
Member

@vishalnayak vishalnayak left a comment

Choose a reason for hiding this comment

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

This is looking great to me!

@annerajb
Copy link
Contributor Author

annerajb commented Oct 5, 2021

This is looking great to me!

what would be the next step apart from I assume another set of eyes to review this?

(anything I can do in the meantime?)

@vishalnayak
Copy link
Member

Thank you @annerajb for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants