[Bug]: errror message when using http urls for OIDC providers is missleading
Mantenedores costumam responder em até 1 dia
@dopey já está trabalhando nisso.
Desde 25/6/2024.
Avaliação
Esta issue ainda não foi avaliada.
Descrição
Steps to Reproduce
Setup up OIDC provider with a HTTP URL and try and use it to issue a new SSH certificate
e.g. follow these instructions (but do not enable HTTPS for Keycloak)
The error message on the line after this test for the URL not starting with https:// only mentions github/google not the real reason
Your Environment
- OS - linux (Fedor and Ubuntu)
stepCLI Version - Smallstep CLI/0.23.0 (linux/amd64), Release Date: 2022-11-12T00:00:59Z
Expected Behavior
The error message mention that the URL provided is not https
Actual Behavior
$ step ssh login --issuer=keycloak [email protected]
✔ Provisioner: keycloak (OIDC) [client: step-ca]
use a valid provider: google or github
error running: step oauth --oidc --bare --provider http://keycloak.k8s.loc/realms/xxxxx/.well-known/openid-configuration --client-id step-ca --client-secret 0OLuF5LOrP3dYQXzgxxxxxxxxxxxxxx --listen :10000: exit status 1
This error message is less than helpful, but a at least it gave me the command that failed...
$ step oauth --oidc --bare --provider http://keycloak.k8s.loc/realms/xxxxx/.well-known/openid-configuration --client-id step-ca --client-secret 0OLuF5LOrP3dYQXzgxxxxxxxxxxxxxx --listen :10000
use a valid provider: google or github
Additional Context
Yes I know I can use smallstep ca to issue a cert for keycloak, but it was already up and running without when I ran the test and it was lucky that googling the error message took me to the code and I could understand what the error actually meant by reading the test that triggered it
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á 53 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
-
govulncheck reports 7 reachable vulnerabilities in dependenciesTalvez já em andamento @dwisiswant0 assumiu hoje. AbertaType: Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
projectdiscovery/rawhttp#558 ·
-
govulncheck reports 8 vulnerabilities in called codeTalvez já em andamento @dwisiswant0 assumiu hoje. AbertaType: Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
projectdiscovery/vulnx#517 ·
-
routing: the tray panel's stage stands still with motion reduced while a request is in flightAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
-
Type: Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
rubys/roundhouse#1946 ·