cli icon indicating copy to clipboard operation
cli copied to clipboard

Add --confirm flag to require agent confirmation

Open kavix opened this issue 5 months ago • 1 comments

This PR adds a new --confirm flag to step ssh login, step ssh proxycommand, and step ssh certificate. Solve https://github.com/smallstep/cli/issues/1611 When used, this flag adds the generated SSH certificate to the agent with the 'confirmation required' bit set, requiring user interaction (typically a prompt from the SSH agent) for every use of the key.

Changes:

  • Added WithConfirmBeforeUse AgentOption in internal/sshutil.
  • Updated Agent.AddCertificate to support the new option.
  • Added the --confirm flag to relevant SSH commands.
  • Added unit tests for the new option handling.

kavix avatar Jun 13 '26 07:06 kavix

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 13 '26 07:06 CLAassistant