[Bug]: Param Validity Checks in Wrong Order

Open
#1,261 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@hslatman is already working on this.

Since Aug 27, 2024.

Assessment

This issue has not been assessed yet.

Description

bug needs triage
Steps to Reproduce

Execute a step ca certificate command with an invalid file path.

Your Environment
  • OS - Ubuntu
  • step CLI Version - 0.27.2
Expected Behavior

Check the path params before retrieving a certificate.

Actual Behavior

Step-CLI retrieves a certificate and fails to save it. This creates a situation where a certificate has been issued, transmitted, and now can't be accessed. That certificate needs to be revoked, but the client doesn't even have the serial number.

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

Dominant language
Go
Stars
4.3k
Forks
320
Avg merge
1d 21h
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from smallstep/cli

All issues in smallstep/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.