Commit Graph

2287 Commits

Author SHA1 Message Date
Mariano Cano
4f84cef0cf
Merge pull request #752 from smallstep/errors-bad-request
Bad request errors
2021-11-22 13:16:04 -08:00
Carl Tashian
d925bc6ba9 Fix systemd renewer to use sh 2021-11-22 11:03:05 -08:00
Mariano Cano
aa3fdf8fb9 Do not overwrite errors. 2021-11-18 19:03:43 -08:00
Mariano Cano
b6ebd118fc Update temporal solution for sending message to users 2021-11-18 18:47:55 -08:00
Mariano Cano
668d3ea6c7 Modify errs.Wrap() with bad request to send messages to users. 2021-11-18 18:44:58 -08:00
Mariano Cano
8c8db0d4b7 Modify errs.BadRequestErr() to always return an error to the client. 2021-11-18 18:17:36 -08:00
Mariano Cano
8ce807a6cb Modify errs.BadRequest() calls to always send an error to the client. 2021-11-18 15:12:44 -08:00
max furman
8d229b9a60 update commented template names to match reality 2021-11-17 21:42:53 -08:00
Mariano Cano
91878051c1
Merge pull request #741 from gdbelvin/ssh
Support CSR Requests from PKCS11
2021-11-17 16:07:23 -08:00
Mariano Cano
febb619882 Add some extra validation and print certificate objects
This commit also changes the following flags for consistency:
  - --crt-cert to --crt-cert-obj
  - --crt-key to --crt-key-obj
2021-11-17 15:48:52 -08:00
max furman
fca7de6696 changelog update for 0.18.0 2021-11-17 12:33:03 -08:00
Max
de2ce5cf9f
Merge pull request #692 from smallstep/max/context
Context management
2021-11-17 12:06:42 -08:00
Mariano Cano
440616cffa
Merge pull request #750 from smallstep/duration-errors
Report duration errors directly to the cli.
2021-11-17 12:06:31 -08:00
Mariano Cano
acd0bac025 Remove extra and in comment. 2021-11-17 12:03:29 -08:00
Mariano Cano
1aadd63cef Use always badRequest on duration errors. 2021-11-17 12:00:54 -08:00
max furman
df2843657f [action] only run codecov for go 1.17 2021-11-17 11:51:33 -08:00
Mariano Cano
41fec1577d Report duration errors directly to the cli. 2021-11-17 11:46:57 -08:00
max furman
7fac8c96c3 Merge branch 'master' into max/context 2021-11-17 11:40:01 -08:00
Max
0a53af9efc
Merge pull request #742 from hslatman/hs/fix-golangci-lint-1.43.0
Pin golangci-lint to v1.43.0 and fix issues
2021-11-17 11:26:33 -08:00
max furman
196f6b45c9 bump cli-utils to 0.7.0 2021-11-16 21:49:18 -08:00
max furman
b5bf79b84e bump nosql library 2021-11-16 21:48:43 -08:00
max furman
555431448c bump version ofcli-utils 2021-11-16 21:48:38 -08:00
max furman
922d239171 Simplify conditional 2021-11-16 21:47:14 -08:00
max furman
a7d144996f SSH backwards compat updates
- use existence of new value in data map as boolean
- add tests for backwards and forwards compatibility
- fix old tests that used static dir locations
2021-11-16 21:47:14 -08:00
max furman
d37313bef4 Use 0600 for profile defaults file. 2021-11-16 21:47:14 -08:00
max furman
507be61e8c Use a more distint map key to indicate template version
- make the key a variable that can be reused on the CLI side.
2021-11-16 21:47:14 -08:00
max furman
f426c152a9 backwards compatibility for version of cli older than v0.18.0 2021-11-16 21:47:14 -08:00
max furman
c80a64d0e6 ssh/step_config.tpl context flag in wrong spot 2021-11-16 21:47:14 -08:00
max furman
fcc15174ea Rename templates and create profileConfig dir ahead of time. 2021-11-16 21:47:14 -08:00
max furman
43cba993bb PR fixes
- Line -> PrependLine
- dont' overwrite profileDefaults
- update ssh/config.tpl to always include includes file
2021-11-16 21:47:14 -08:00
max furman
3e9830e363 Use profileDefaults in PKI
- write profile defaults at the same time as authority defaults
2021-11-16 21:47:14 -08:00
max furman
c8560b4854 updated method name in cli-utils 2021-11-16 21:47:14 -08:00
max furman
9d4a7cf9fc Update includes template to use STEPPATH as the replace var 2021-11-16 21:47:14 -08:00
max furman
74eea88343 Replace Fragment template with Line 2021-11-16 21:47:14 -08:00
max furman
da74fa2eb9 Rename FullSnippet to Fragment and remove unused replace in go.mod 2021-11-16 21:47:14 -08:00
max furman
b080b7582b Template updates to support multiple SSH include snippets 2021-11-16 21:47:14 -08:00
max furman
d777fc23c2 Add ca.WithInsecure and use methods for file names 2021-11-16 21:47:14 -08:00
max furman
e5951fd84c Use methods in the step package
* rather than variables set at execution time, which may not match the
actual current context
2021-11-16 21:47:14 -08:00
max furman
ed4b56732e updates after rebase to keep up with master 2021-11-16 21:47:14 -08:00
max furman
7eeebca529 Enable step path contexts in identity and pki paths 2021-11-16 21:47:14 -08:00
max furman
10db335f13 mv pkg config -> step 2021-11-16 21:47:14 -08:00
max furman
741ac64c61 change name of package cli-utils/config to cli-utils/step 2021-11-16 21:47:14 -08:00
Herman Slatman
2c05f488f6
Remove support for Go 1.15 2021-11-13 01:43:03 +01:00
Herman Slatman
e7a988b2cd
Pin golangci-lint to v1.43.0 and fix issues 2021-11-13 01:30:03 +01:00
Gary Belvin
bbb327c8c5 Make a csr if there's not a root 2021-11-12 14:24:26 -05:00
Gary Belvin
29f5a35965 simplify flags 2021-11-12 14:23:38 -05:00
Mariano Cano
62a20c7db5 Upgrade cli-utils with latest version of promptui 2021-11-01 10:08:48 -07:00
Mariano Cano
24a6900de2
Merge pull request #613 from gdbelvin/extractable
Extractable private keys and certs
2021-10-29 15:44:41 -07:00
Mariano Cano
91fb57e8aa Add entry to changelog. 2021-10-29 15:09:53 -07:00
Mariano Cano
7ec1424cb6 Fix help. 2021-10-29 14:47:57 -07:00