[Bug]: errror message when using http urls for OIDC providers is missleading
Maintainer antworten meist innerhalb von 1 Tag
@dopey arbeitet bereits daran.
Seit 25.6.2024.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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).
- Vorherrschende Sprache
- Go
- Sterne
- 4.3k
- Forks
- 320
- Ø Merge
- 2 T. 3 Std.
- Gemergte PRs (30 T.)
- 11
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus smallstep/cli
-
bug needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement needs triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 32/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement needs triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 57/100
smallstep/cli#1713 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement needs triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
smallstep/cli#1710 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: `step ca provisioner add --ca-config` requires `--ca-url`/`--root` even for purely local/offline editsEvtl. vergeben @vulragrag-star hat das vor 52 Tagen übernommen. Offenbug needs triage
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
smallstep/cli#1705 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
JakeChampion/lang#14392 ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent-butler-finding bug
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 84/100
jordansmall/spindrift#6557 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug] Custom tool truncation leaves unused stream copies openEvtl. vergeben @OUAO-FRANK hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
[v3] KeyBindingManager calls (Add/Remove) are not converted into a case-insensitive accelerator.KeyOffenBug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
crmne/hyprmoncfg#114 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag