[Bug]: Step-cli: error generating OIDC token: exec "step oauth" failed

未关闭
#1,521 2 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@hslatman 已经在做这个了。

开始于 2026年3月3日。

评估

这个 Issue 还没有评估数据。

描述

bug needs triage
Steps to Reproduce
  • Download step-cli for Windows (amd64).
  • Extract the folder
  • run step ssh certificate key-id key-file --ca-url https://step-ca-url --root your_root_cert.pem --provisioner=name_of_provisioner
Your Environment
  • OS - Windows 11 23H2
  • step CLI Version - Smallstep CLI/0.28.7 (windows/amd64)
Expected Behavior

I would expect it to open the Identity provider in a new browser window.

Running step oauth --provider https://your-idp --listen :10000 --client-id id --client-secret secret works fine.

I also notice that the step-cli under Windows seems to have some output issues.

When I just run step it says:

step
←[0;1;99mNAME←[0m
      ←[0;1;99mstep←[0m -- plumbing for distributed systems

←[0;1;99mUSAGE←[0m
      ←[0;1;99mstep←[0m ←[0;4;39mcommand←[0m ←[0;4;39m[arguments]←[0m

←[0;1;99mOPTIONS←[0m
      ←[0;1;99m--help←[0m, ←[0;1;99m-h←[0m
          show help

      ←[0;1;99m--config←[0m=←[0;4;39mvalue←[0m
          path to the config file to use for CLI flags

      ←[0;1;99m--version←[0m, ←[0;1;99m-v←[0m
          print the version

so I guess the 2 topics could be combined. step ssh certificate would need to contact the Step server and gets the OIDC info back. Maybe those funny characters are also included when it tries to build the oauth string. I can see the step-cli contacting the step-server and queries the list of provisioners. On the IdP I can't see any activity.

Actual Behavior

Output is: error generating OIDC token: exec "step oauth" failed

Additional Context

No response

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).

主要语言
Go
星标
4.3k
派生
320
平均合并
2 天 3 小时
30 天内合并 PR
11

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

smallstep/cli 的其他 Issue

查看 smallstep/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。