1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-04 17:42:08 +03:00

45 Commits

Author SHA1 Message Date
Herman Slatman
de85fd0cef Use github.com/smallstep/cli-utils and reorder imports 2024-09-30 13:25:46 +02:00
Mariano Cano
2a6e644000 Add console flag to ssh commands
This commit adds the `--console` flag to the following commands:
 * `step ssh certificate`
 * `step ssh config`
 * `step ssh hosts`
 * `step ssh login`
 * `step ssh proxycommand`
2024-07-15 18:47:24 -07:00
Mariano Cano
73429de6ea Move crypto/sshutil to an internal folder 2022-10-04 16:38:11 -07:00
max furman
2d96380899 Fix unused linter warnings
* use errors.As with interface{} correctly
2022-09-21 18:19:24 -07:00
max furman
b9b48800ea A bunch more sensible linters and fixes 2022-08-18 22:39:04 -07:00
max furman
2881ea481e Remove internal ui package 2021-12-19 11:27:07 -05:00
max furman
100980b133 Fixing linter errors 2021-11-17 12:56:07 -08:00
max furman
bd543ba4d7 Update ssh config default template attributes
- remove unused user.Authority
- use parameter instead of hard coded string for template version key
2021-11-13 14:27:25 -08:00
max furman
8c4addeb5b add Version:v2 to ssh config user data map, and updates to go mod 2021-11-12 13:15:15 -08:00
max furman
2eccb2be3d Fixing a load of errors from the PR review 2021-11-10 23:18:33 -08:00
max furman
77ca7a53a8 More contexts work
- move context warning before other output for ca init
- attempt to remove ssh include for context remove
2021-11-10 00:43:14 -08:00
max furman
c4af2452a8 Remove commented code 2021-11-09 15:26:20 -08:00
max furman
7715b21d17 Updates for multiple SSH contexts and small fixes 2021-11-09 15:23:57 -08:00
max furman
d76fa897fe HACK: apply the context in 'ssh config' if no team bootstrap 2021-11-05 13:34:05 -07:00
max furman
e933aed82d Move hidden helper commands into functions. 2021-10-27 15:55:18 -07:00
max furman
608b27bff0 (wip) added context remove and general cleanup 2021-10-27 15:55:18 -07:00
max furman
27ebe5ccd1 (wip) managing step contexts 2021-10-27 15:55:18 -07:00
max furman
f77ad08978 step ssh config working with --team 2021-10-27 15:55:18 -07:00
max furman
f816f1a621 move errs package to cli-utils 2021-10-27 15:55:18 -07:00
max furman
a8c2310160 Add context flag to all relevant commands 2021-10-27 15:55:17 -07:00
max furman
860c213b97 Initial step path contexts commit
- move config and command packages to cli-utils
2021-10-27 15:55:16 -07:00
Mariano Cano
9fc33a6731 Allow to use --team and --set flags together
There is no reason to make those incompatible.
2021-09-29 18:08:58 -07:00
max furman
70cebf51ab A few fixes for admin workflow commands and ...
- <path> to <file> everywhere
2021-07-08 16:34:53 -07:00
Mariano Cano
7061940e7e Unify the way the flags are printed in markdown files. 2020-10-01 17:01:33 -07:00
Mariano Cano
d7bfd40242 Use backticks instead of quotes.
To help the docs generation we will change "<>" to `<>`.
2020-09-29 11:59:46 -07:00
Mariano Cano
323847349a Revert "Remove ssh template flags and parameters."
This reverts commit b5cf069f97.
2020-08-27 16:57:40 -07:00
Mariano Cano
2585d5ab8d Improve the step ca bootstrap to fully support the --team flag. 2020-04-23 18:07:15 -07:00
David Cowden
2028998a61 teams: Add --team-url option
Allow users to specify the endpoint that `step ssh config --team` uses
to pull initial configuration. If no endpoint is specified, default to

    https://api.smallstep.com/v1/teams/<name>/cas/default

If the user-specified endpoint contains any "<>" sequences, replace them
with the team name.
2020-01-28 13:34:00 -08:00
Mariano Cano
3e9ef0052a Fail if no ssh-agent, force the user to login before. 2020-01-28 13:34:00 -08:00
Mariano Cano
88d192a4ab Improve step ssh docs. 2020-01-28 13:34:00 -08:00
Mariano Cano
20b9b0c993 Add GOOS to config variables. 2020-01-28 13:34:00 -08:00
Mariano Cano
b90ffd5323 Fix agent requirement in login. Fix user requirement for hosts. 2020-01-28 13:34:00 -08:00
Mariano Cano
c30ed0f2ff Set default username from a certificate. 2020-01-28 13:34:00 -08:00
Mariano Cano
8a88605be6 Add bootstrap team support to step ssh config. 2020-01-28 13:33:59 -08:00
Mariano Cano
7e1224ebdd Add support for retry function in step ssh config. 2020-01-28 13:33:59 -08:00
Mariano Cano
1b06d380d9 Add force flag to step ssh config. 2020-01-28 13:33:59 -08:00
max furman
07503c2f61 syntax 2020-01-28 13:33:59 -08:00
Mariano Cano
dd84d55f87 Make use of Ouput.Write in step ssh config. 2020-01-28 13:33:59 -08:00
Mariano Cano
edebcc1a3f Add StepPath to config data. 2020-01-28 13:33:59 -08:00
Mariano Cano
65be323944 Rename SSH methods. 2020-01-28 13:33:59 -08:00
Mariano Cano
6f14f7e378 Add support for multiple ssh roots.
Fixes smallstep/certificates#125
2020-01-28 13:33:59 -08:00
Mariano Cano
65b78463db Use templates in step ssh config command.
Fixes #170
2020-01-28 13:33:59 -08:00
Mariano Cano
fd13311415 Add cert and key flags to step ssh config 2020-01-28 13:33:59 -08:00
Mariano Cano
284833adb0 Implement step ssh config 2020-01-28 13:33:59 -08:00
Mariano Cano
adfcaddd85 Add mock implementation of step ssh config. 2020-01-28 13:33:59 -08:00