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 validities in templates #1903

Merged
merged 3 commits into from
Jul 1, 2024
Merged

Add support for validities in templates #1903

merged 3 commits into from
Jul 1, 2024

Conversation

maraino
Copy link
Contributor

@maraino maraino commented Jun 28, 2024

This commit upgrades go.step.sm/crypto with a version that adds support for setting validity bounds in templates. It also modifies the X.509 certificate modifiers to support them. SSH certificate modifiers should work without changes.

The priority for the validity bounds are:

  1. Coming from flags.
  2. Coming from the template.
  3. Defaults.

Requires:

This commit upgrades go.step.sm/crypto with a version that adds support
for setting validity bounds in templates. It also adds support for these
in the certificate modifiers.

The priority for the validity bounds are:
1. Coming from flags.
2. Coming from the template.
3. Defaults.
@maraino maraino requested a review from hslatman June 28, 2024 23:25
@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label Jun 28, 2024
Copy link
Member

@hslatman hslatman left a comment

Choose a reason for hiding this comment

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

I know you used the same order for the arguments in the assert calls as the existing tests, but probably for the best to use the usual ordering

authority/provisioner/sign_options_test.go Outdated Show resolved Hide resolved
authority/provisioner/sign_options_test.go Outdated Show resolved Hide resolved
authority/provisioner/sign_options_test.go Outdated Show resolved Hide resolved
authority/provisioner/sign_options_test.go Outdated Show resolved Hide resolved
authority/provisioner/sign_options_test.go Outdated Show resolved Hide resolved
authority/provisioner/sign_options_test.go Outdated Show resolved Hide resolved
authority/provisioner/sign_options_test.go Outdated Show resolved Hide resolved
authority/provisioner/sign_options_test.go Outdated Show resolved Hide resolved
maraino and others added 2 commits July 1, 2024 12:48
Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
@maraino maraino requested a review from hslatman July 1, 2024 19:49
@hslatman hslatman added this to the v0.26.3 milestone Jul 1, 2024
@maraino maraino merged commit 8829b42 into master Jul 1, 2024
13 checks passed
@maraino maraino deleted the mariano/validity branch July 1, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants