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

Rework PKI test TestBackend_Root_Idempotency #15013

Merged

Conversation

stevendpclark
Copy link
Contributor

  • Validate that generate/root calls are no longer idempotent, but the bundle importing
    does not generate new keys/issuers
  • As before make sure that the delete root api resets everything
  • Address a bug within the storage that we bombed when we had multiple different
    key types within storage.

 - Validate that generate/root calls are no longer idempotent, but the bundle importing
   does not generate new keys/issuers
 - As before make sure that the delete root api resets everything
 - Address a bug within the storage that we bombed when we had multiple different
   key types within storage.
r2Data := resp.Data
if !reflect.DeepEqual(r1Data, r2Data) {
t.Fatal("got different ca certs")
}

// Now let's validate that the import bundle is idempotent.
pemBundleRootCA := string(cluster.CACertPEM) + string(cluster.CAKeyPEM)
Copy link
Contributor

Choose a reason for hiding this comment

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

Creative :D

@stevendpclark stevendpclark merged commit 521c71e into pki-pod-rotation Apr 13, 2022
@vercel vercel bot temporarily deployed to Preview – vault April 13, 2022 20:25 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook April 13, 2022 20:25 Inactive
@stevendpclark stevendpclark deleted the stevendpclark/address-root-idemopotancy-test branch April 13, 2022 20:25
@cipherboy
Copy link
Contributor

This PR was merged in #15277. See that PR and the relevant docs PR #15238 for more information about this change.

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.

None yet

2 participants