1
0
mirror of https://github.com/smallstep/cli.git synced 2026-10-24 11:19:19 +03:00

1416 Commits

Author SHA1 Message Date
Herman Slatman
99d8a58f56 Skip printing user code when verification URI already includes it
When VerificationURIComplete is present in the device authorization
response, the user code is already embedded in the URI. Printing
the code separately is redundant and potentially confusing.

This suppresses the code prompt in that case and shows only the
complete URI.

This is related to https://github.com/smallstep/cli/pull/1430, and
the behavior is in line with `kubelogin`

Change-Type: behavior
Release-Note: yes
Audience: user
Impact: low
Breaking: false
2026-03-17 12:16:19 +01:00
Herman Slatman
123b1be2f4 Add nolint exclusion on authority.WithProvisioner usage 2026-03-16 14:49:00 +01:00
Max
6127166ad7 chore(lint): need to remove noling due to pinned golangci-lint version (#1587) 2026-03-11 13:54:24 +01:00
Herman Slatman
fc1695e39c Merge pull request #1430 from virtualdxs/prefer-verificationuricomplete
Prefer VerificationURIComplete if present
2026-03-11 13:47:27 +01:00
Mariano Cano
702f35b319 Overwrite file when using --force with step crypto key format
Fix an issue where `step crypto key format` did not overwrite an
existing file even when the `--force` flag was provided.

Fixes #1579
2026-03-05 11:13:49 -08:00
Herman Slatman
0b56704415 Fix Nebula breaking changes 2026-02-24 14:24:42 +01:00
Herman Slatman
cff282e883 Fix gosec linter issues 2026-02-24 13:51:06 +01:00
Mariano Cano
3a11f97add Apply suggestions from code review
Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
2026-02-10 11:27:23 -08:00
Mariano Cano
cde778067b Allow loading a certificate from a KMS 2026-02-04 11:36:00 -08:00
Mariano Cano
99c4d7c8ef Add sign example 2026-02-04 11:22:28 -08:00
Mariano Cano
b36ab17d9b Add more kms examples 2026-02-04 11:04:31 -08:00
Mariano Cano
3da5429dc2 Add examples of KMS URIs without the --kms flag 2026-01-30 15:27:23 -08:00
Mariano Cano
e6b08fed84 Use KMS URIs without --kms flag
This command allows use use KMS URIs without using the `--kms` flag.
Those commands using cryptoutils package will read a key from a KMS if
the name is not a file and is one of the supported KMS types.
2026-01-30 14:13:12 -08:00
Mariano Cano
420e0e14a9 Suppress messages on needs-renewal commands
This commit suppresses the message "certificate does not need renewal"
on the `step certificate needs-renewal` and `step ssh needs-renewal`
unless the `--verbose` flag is passed.
2026-01-13 17:57:41 -08:00
Mariano Cano
9686d6f30b Make --attestation-uri incompatible with --kms
The ACME-DA flow in the step ca certificate command expects all KMS parameters
to be provided through the `--attestation-uri` flag. Using the `--kms` flag at the
same time can lead to errors. For example, if the YubiKey PIN is set with the
`--kms` flag, the flow will ignore it and use the default one instead, resulting
in a PIN retry error.

Fixes #1492
2025-11-11 14:06:50 -08:00
Herman Slatman
03159dbe85 Remove deprecated +build tags 2025-11-04 00:35:16 +01:00
Mariano Cano
c8fd9a7f2b Do not require client authentication if not enabled
This commit removes the creation of an identity certificate when we get
an unauthorized response if the client authentication is not enabled.
2025-10-06 12:29:46 -07:00
Mariano Cano
5c85efa9d4 Add remote configuration of the GCP organization id
This commit adds support for configuring the organization id in the GCP
provisioner.

Fixes #1449
2025-09-23 18:02:48 -07:00
Mariano Cano
800d82a44d Add PKIX fingerprint support
This commit adds the `--pkix` flag to `step crypto key fingerprint` command.
This flag and the PKIX encoding of the key instead of the X.509 subjectPublicKey
format.
2025-08-12 18:40:42 -07:00
Carl Tashian
450bd22a1c Add required <scope> param to help text for step ca policy 2025-07-21 10:19:09 -07:00
Max
60a4eef3de Fix linter warnings (#1450)
* Remove unnecessary utils files in favor of cli-utils package
* Remove nolint:revive directive from bcrypt-pbkdf file
2025-07-10 11:15:28 -07:00
Herman Slatman
f8c1eaf36f Ignore insecure ssh.KeyAlgoDSA usages using nolint 2025-06-09 20:43:08 +02:00
Dessa Simpson
f0b41c92c4 Prefer VerificationURIComplete if present
In the OIDC Device Authorization Flow in command/oauth, present the user
with VerificationURIComplete rather than VerificationURI if present, so
that the user doesn't have to manually type the code when using an IdP
that provides this feature.

Fixes #1424
2025-05-29 10:21:46 -07:00
Herman Slatman
cdb6e0157a Fix linter issues by updating linters and ignoring some issues 2025-05-29 19:20:12 +02:00
Carl Tashian
a0c882c7ba Fix step ca token help text around validity period flags 2025-04-16 12:16:02 -05:00
Herman Slatman
1156e4475b Use existing provisioner flag instead of redefining one 2025-03-28 19:06:14 +01:00
Herman Slatman
c153ef3e75 Simplify ingoring usage of provisioner flag when managing policies 2025-03-27 21:56:54 +01:00
Herman Slatman
064866f86c Refactor ignoring of provisioner flag to not rely on package globals 2025-03-27 19:50:31 +01:00
Herman Slatman
1cec31e5b4 Fix some provisioner prompt issues related to SCEP and policies
This PR fixes the following issues:

 - SCEP provisioners not detected in admin token flows
 - Invalid provisioner selection logic when managing provisioner policies
 - Unexpected error messages showing "issuer" instead or "provisioner" flag
2025-03-27 19:50:30 +01:00
Herman Slatman
565dcf0ebb Change .Token.user.field to not use curly braces
The unescaped curly braces result in a broken docs site. Besides
that, other template variables are also not demarcated using curly
braces.
2025-03-05 12:02:53 +01:00
Max
c957358f02 Allow a few global defaults to be pulled from the CA (#1377)
- min-encryption-password-length
- provisioner

Enforce min-encryption-password-length, if set, in the 'step ssh
certificate' command.

Add flags.FirstStringOf returns value of first defined flag in input list
2025-03-04 08:58:21 -08:00
Mariano Cano
b1cff60231 Merge pull request #1375 from fuhry/cli-token-set-option
command/ca/token: support custom "user" claim
2025-03-03 17:49:01 -08:00
Dan Fuhry
8abadfcd59 command/ca/token: support custom "user" claim
Add the `--set` and `--set-file` flags to the `step ca token` command,
allowing the user to set keys in the "user" claim in the resulting JWT.

Signed-off-by: Dan Fuhry <dan@fuhry.com>
2025-03-03 14:48:39 -05:00
Herman Slatman
31c9b1438d Format code using make fmt 2025-02-25 10:39:43 +01:00
Joe Doss
191dc06137 Adjust if statement from PR feedback. 2025-02-25 10:38:40 +01:00
Joe Doss
c8872948a4 Add STEP_OPEN_BROWSER env var to skip opening a browser and just output the authURL. 2025-02-25 10:38:40 +01:00
Herman Slatman
475b7eb3c8 Fix new golangci-lint issues 2025-02-18 11:34:53 +01:00
Mariano Cano
153b692946 Add help with the limitations of the --kms flag 2025-01-29 10:52:17 -08:00
Mariano Cano
da3b6d393c Apply suggestions from code review
Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
2025-01-29 10:39:23 -08:00
Mariano Cano
bbc2f41f69 Add support for KMS in the ca renew and rekey commands
This commit adds support for using a key present in a KMS when renewing
or rekeying an X.509 certificate.

Fixes #1314
2025-01-27 17:49:33 -08:00
Herman Slatman
afa6eac6b9 Use github.com/smallstep/linkedca @ v0.23.0 2025-01-07 00:37:05 +01:00
SamuelBoerlin
e3a16d4c15 Remove --bundle from step ca certificate usage text (#1302)
Fixes #521
2024-10-29 09:36:51 -07:00
Max
ebeca4f8f8 Add disableSSHCAUser and disableSSHCAHost attributes to GCP provisioner (#1305)
* Add disableSSHCAUser and disableSSHCAHost attributes to GCP provisioner
2024-10-28 21:41:16 -07:00
Herman Slatman
9cbb404165 Add --remove-scope flag 2024-10-02 17:54:42 +02:00
Herman Slatman
de85fd0cef Use github.com/smallstep/cli-utils and reorder imports 2024-09-30 13:25:46 +02:00
Max
ded186112d Allow input from stdin for 'certificate fingerprint' command (#1270) 2024-09-12 14:24:30 -07:00
Herman Slatman
a6a421459f Fix linter issues 2024-08-21 12:55:59 +02:00
Mariano Cano
8a2d36e2df Fix linter warning 2024-07-24 11:51:57 -07:00
Mariano Cano
2f0500a633 Apply suggestions from code review
Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
2024-07-24 11:28:26 -07:00
Mariano Cano
3eb25647ba Remove SSH cfn support and use x5rt#S256 property 2024-07-23 18:56:17 -07:00