Commit Graph

36 Commits (master)

Author SHA1 Message Date
Mariano Cano 5d87201abc
Ignore principals validations with OIDC
This commit will ignore principals validation when an OIDC provisioner
is used. When the principals in the server does not match the principals
given the validation was failing, even if the proper principals were set
by templates or webhooks. With this change OIDC will not validate the
principals and just set the default ones (name, name@example.org) plus
the ones in the templates.

This commit also includes a change in the templates to allow to pass
a provisioner to the $(step path)/ssh/config template

Related to #807
1 year ago
Mariano Cano f1aabaa99c Use functions from os instead of io/ioutil 2 years ago
max furman 8d229b9a60 update commented template names to match reality 2 years ago
max furman 7fac8c96c3 Merge branch 'master' into max/context 2 years ago
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.
2 years ago
max furman f426c152a9 backwards compatibility for version of cli older than v0.18.0 2 years ago
max furman c80a64d0e6 ssh/step_config.tpl context flag in wrong spot 2 years ago
max furman fcc15174ea Rename templates and create profileConfig dir ahead of time. 2 years ago
max furman 43cba993bb PR fixes
- Line -> PrependLine
- dont' overwrite profileDefaults
- update ssh/config.tpl to always include includes file
2 years ago
max furman c8560b4854 updated method name in cli-utils 2 years ago
max furman 9d4a7cf9fc Update includes template to use STEPPATH as the replace var 2 years ago
max furman 74eea88343 Replace Fragment template with Line 2 years ago
max furman da74fa2eb9 Rename FullSnippet to Fragment and remove unused replace in go.mod 2 years ago
max furman b080b7582b Template updates to support multiple SSH include snippets 2 years ago
max furman 741ac64c61 change name of package cli-utils/config to cli-utils/step 2 years ago
Herman Slatman e7a988b2cd
Pin golangci-lint to v1.43.0 and fix issues 3 years ago
Mariano Cano cb4a2a5f9a Use the same method to return the templating functions. 3 years ago
Mariano Cano 0f63d43a91 Remove sprig "env" and "expandenv" functions. 3 years ago
max furman 933b40a02a Introduce gocritic linter and address warnings 3 years ago
Mariano Cano aea2a7c9f3 Update sshd_config.tpl to a Match all block.
Fixes #479
3 years ago
Mariano Cano 40d0596b71 Use smallstep/cli-utils instead of smallstep/cli 4 years ago
Mariano Cano 528d0910ab Add omitempty to requires property. 4 years ago
Mariano Cano 907162be44 Add test for DefaultTemplates. 4 years ago
Mariano Cano f82a248617 Add test with backfill. 4 years ago
Mariano Cano a845b56283 Remove the template path if we load the defaults. 4 years ago
Mariano Cano 237baa5169 Check for required variables in templates.
Fixes smallstep/cli#232
4 years ago
Mariano Cano b583d8d658 Move default templates to the template package. 4 years ago
Mariano Cano 914636668a Add support for loading templates without using files. 4 years ago
Ivan Bertona 9052da66a3 Fix linter, tidy go.mod file. 4 years ago
Mariano Cano 557a45abfa Update template tests. 4 years ago
Mariano Cano 6489c26d4c Use github.com/Masterminds/sprig/v3 4 years ago
Mariano Cano 4b68f1611f Add tests for templates and some fixes. 4 years ago
Mariano Cano 08850d5334 Add support for federated keys. 4 years ago
Mariano Cano 1b0d05097b Add Write method to templates.Output. 4 years ago
Mariano Cano 91130b9c3f Add support for user data in templates. 4 years ago
Mariano Cano a35988ff08 Add initial support for ssh config.
Related to smallstep/cli#170
4 years ago