[Bug]: notBefore and notAfter values in template files are ignored
Les mainteneurs répondent en général sous 1 jour
@hslatman y travaille déjà.
Depuis le 11/11/2025.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Steps to Reproduce
I was playing around with template files and noticed that the notBefore and notAfter values in template files are ignored by the step-cli.
You can easily reproduce it when you use the fields notBefore and/or notAfter in a template file and create a certificate. You can see an example in the Actual behavior section.
You can use this for testing:
{
"notBefore": "2020-01-01T00:00:00Z",
"notAfter": "2030-01-01T00:00:00Z"
}
Your Environment
- OS - Fedora 42
stepCLI Version - CLI/0.28.7 (linux/amd64)
Expected Behavior
When specifing the notBefore and/or notAfter fields I would expect that the dates will be carried over to the actual certificate. The fields are visible in the certificate.go.
Actual Behavior
When specifing a wrong value you can see from the error that it actually reads the value:
Additional Context
My use-case for this would be to create something like standalone cert-profiles that are fully defined as code and don't need the CLI parameters. Then you can just specify the parts that change like the Subject and SAN and then just have to add the template
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
- Langage dominant
- Go
- Étoiles
- 4.3k
- Forks
- 320
- Merge moyen
- 2 j 3 h
- PR mergées (30 j)
- 11
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de smallstep/cli
-
[Bug]: `Match exec "step ssh check-host %h"` causes SSH connections through ProxyJump to hangOuvertebug needs triage
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement needs triage
Difficulté 4/5 3-5 jours Accessibilité débutants 32/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement needs triage
Difficulté 3/5 1-2 jours Accessibilité débutants 57/100
smallstep/cli#1713 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
build s390x and riscv64 binariesOuverteenhancement needs triage
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
smallstep/cli#1710 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline editsPeut-être pris @vulragrag-star l’a pris il y a 51 jours. Ouvertebug needs triage
Difficulté 4/5 3-5 jours Accessibilité débutants 20/100
smallstep/cli#1705 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de smallstep/cli
Issues similaires
-
agent-butler-finding bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
jordansmall/spindrift#6414 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Icinga/icinga-kubernetes#294 ·
Les mainteneurs répondent en général sous 4 jours
-
Cluster details: the Control Plane version field has a different border color than its icon boxOuvertekind/design sig/ui
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
kubermatic/dashboard#8449 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
cli/cli#14962 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Model conformance driftOuvertemodel-drift
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour