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

PKI: Add not_before_duration API parameter to Root/Intermediate CA generation #14178

Closed
wants to merge 3 commits into from

Conversation

guysv
Copy link
Contributor

@guysv guysv commented Feb 20, 2022

Add not_before_duration API parameter to:

  • Root CA generation
  • Intermediate CA generation
  • Intermediate CA signing

closes #10631

  - Root CA generation
  - Intermediate CA generation
  - Intermediate CA signing
@hashicorp-cla
Copy link

hashicorp-cla commented Feb 20, 2022

CLA assistant check
All committers have signed the CLA.

@hsimon-hashicorp
Copy link
Contributor

Hi @guysv! Please don't forget a changelog entry. :) Thanks!

Copy link
Contributor

@cipherboy cipherboy left a comment

Choose a reason for hiding this comment

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

In addition to @hsimon-hashicorp's comment that this needs a Changelog entry, I'd suggest updating the documentation (under website/content/api-docs/secret/pki.mdx) and adding a test (perhaps like the existing TestPKI_DeviceCert test in builtin/logical/pki/backend_tests.go minus the role based checks). Thanks @guysv!

@cipherboy
Copy link
Contributor

Sorry @guysv, we just merged a bunch of big changes :/

@cipherboy
Copy link
Contributor

Hey @guysv -- I hope you don't mind, but I've opened a PR rebasing this one, preserving your original authorship :-) This will let it land in this release cycle; if you have any comments, feel free to leave them on this one or the new PR. Thank you for this PR!

@cipherboy cipherboy closed this May 19, 2022
cipherboy added a commit that referenced this pull request May 19, 2022
…diate CA generation (#15511)

* PKI - Add not_before_duration API parameter to:
  - Root CA generation
  - Intermediate CA generation
  - Intermediate CA signing

* Move not_before_duration to addCACommonFields

This gets applied on both root generation and intermediate signing,
which is the correct place to apply this.

Co-authored-by: guysv <sviryguy@gmail.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add changelog entry

Resolves: #10631

Co-authored-by: guysv <sviryguy@gmail.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add test case for root/generate, sign-intermediate

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Update path role description

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add new not_before_duration to relevant docs

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

Co-authored-by: guysv <sviryguy@gmail.com>
Gabrielopesantos pushed a commit to Gabrielopesantos/vault that referenced this pull request Jun 6, 2022
…t/Intermediate CA generation (hashicorp#15511)

* PKI - Add not_before_duration API parameter to:
  - Root CA generation
  - Intermediate CA generation
  - Intermediate CA signing

* Move not_before_duration to addCACommonFields

This gets applied on both root generation and intermediate signing,
which is the correct place to apply this.

Co-authored-by: guysv <sviryguy@gmail.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add changelog entry

Resolves: hashicorp#10631

Co-authored-by: guysv <sviryguy@gmail.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add test case for root/generate, sign-intermediate

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Update path role description

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add new not_before_duration to relevant docs

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

Co-authored-by: guysv <sviryguy@gmail.com>
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.

Feature request: PKI availability to set "Not before duration" for CA certificates
5 participants