Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Context is not honored #2043

Closed
LaudixGit opened this issue Oct 24, 2024 · 3 comments · Fixed by smallstep/cli#1301
Closed

[Bug]: Context is not honored #2043

LaudixGit opened this issue Oct 24, 2024 · 3 comments · Fixed by smallstep/cli#1301
Assignees
Labels
bug needs triage Waiting for discussion / prioritization by team
Milestone

Comments

@LaudixGit
Copy link

LaudixGit commented Oct 24, 2024

Steps to Reproduce

Install: winget install Smallstep.step
create cert: step ca init --deployment-type standalone --name "cntx01" --dns "localhost" --address "127.0.0.1:443" --provisioner "MyProv" --context "cntx01"

Your Environment

  • OS - Windows 11
    [environment]::OSVersion.Version
    Major : 10
    Minor: 0
    Build: 22631
    Revision: 0

  • step-ca Version -Smallstep CLI/0.27.5 (windows/amd64)

Expected Behavior

new files should be created in a subfolder
$env:USERPROFILE/.step/authorities/cntx01/certs/root_ca.crt

Actual Behavior

files are created at top folder
$env:USERPROFILE/.step/certs/root_ca.crt

Creating a new root cert results in overwritten the existing.
image

Additional Context

I am setting up a new laptop and this error occurs.
Issue occurs at a command prompt (cmd) and in a PowerShell terminal

step runs as expected on my old laptop (windows 10, step version 27.4)

Documentation still states there should be an "authorities" folder

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

@LaudixGit LaudixGit added bug needs triage Waiting for discussion / prioritization by team labels Oct 24, 2024
@hslatman
Copy link
Member

Hey @LaudixGit, thank you for reporting the issue. I found out what's going on. The CLI relies on our certificates repo, which is still using our old version of cli-utils. This results in a state mismatch between the two, resulting in the context being ignored. I've opened #2046 to fix it for certificates, after which I can fix it here.

@hslatman
Copy link
Member

hslatman commented Oct 28, 2024

smallstep/cli#1301 fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants