[Bug]: notBefore and notAfter values in template files are ignored
Mantenedores costumam responder em até 1 dia
@hslatman já está trabalhando nisso.
Desde 11/11/2025.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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).
- Linguagem predominante
- Go
- Estrelas
- 4.3k
- Forks
- 320
- Merge médio
- 2d 3h
- PRs com merge (30d)
- 11
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de smallstep/cli
-
[Bug]: `Match exec "step ssh check-host %h"` causes SSH connections through ProxyJump to hangAbertabug needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia
-
enhancement needs triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 32/100
Mantenedores costumam responder em até 1 dia
-
enhancement needs triage
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 57/100
smallstep/cli#1713 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
enhancement needs triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
smallstep/cli#1710 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline editsTalvez já em andamento @vulragrag-star assumiu há 52 dias. Abertabug needs triage
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 20/100
smallstep/cli#1705 · 1 reação ·
Mantenedores costumam responder em até 1 dia
Todas as issues de smallstep/cli
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
JakeChampion/lang#14392 ·
Mantenedores costumam responder em até 1 dia
-
agent-butler-finding bug
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 84/100
jordansmall/spindrift#6557 ·
Mantenedores costumam responder em até 1 dia
-
[Bug] Custom tool truncation leaves unused stream copies openTalvez já em andamento @OUAO-FRANK assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
[v3] KeyBindingManager calls (Add/Remove) are not converted into a case-insensitive accelerator.KeyAbertaBug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
crmne/hyprmoncfg#114 · 1 comentário ·
Mantenedores costumam responder em até 1 dia