Commit graph

994 commits

Author SHA1 Message Date
Mariano Cano
7fe1eb8686 Add GetTransport to client. 2019-12-10 16:34:24 -08:00
Mariano Cano
e841a86b48 Make sure to define the KeyID from the token if available. 2019-12-10 16:34:01 -08:00
Mariano Cano
014d2c7ccd Go mod tidy. 2019-12-10 13:41:06 -08:00
Mariano Cano
40ec0b435a Add method to create an ssh token. 2019-12-10 13:40:14 -08:00
Mariano Cano
8eeb82d0ce Store renew certificate in the database. 2019-12-10 13:10:45 -08:00
Mariano Cano
50152391a3 Add leeway in identity not before. 2019-12-09 16:55:25 -08:00
max furman
2676d525c4 redundant variable type def 2019-12-09 12:54:32 -08:00
Mariano Cano
83129fd59f Add quotes in configuration paths. 2019-12-04 12:04:46 -08:00
max furman
55237d635c Fix authority calling wrong revoke method 2019-12-03 12:39:57 -05:00
Mariano Cano
b25cbbe6ca Create a custom client that sends a custom User-Agent. 2019-11-27 17:30:06 -08:00
Mariano Cano
15a222d354 Add missing unit tests for ssh. 2019-11-27 14:48:34 -08:00
Mariano Cano
a049e1f7e7 Check at the cert type instead of at the body. 2019-11-27 14:48:14 -08:00
Mariano Cano
c5e34f777c Replace /ssh/get-hosts to /ssh/hosts 2019-11-27 14:27:23 -08:00
Mariano Cano
967d113726 Add error marshaling tests. 2019-11-27 12:25:40 -08:00
Mariano Cano
1a94c0df94 Use default duration for host certificates identity files. 2019-11-26 19:09:01 -08:00
Mariano Cano
f99d1007bc Update cli dependency. 2019-11-26 18:53:36 -08:00
Mariano Cano
b97aeedb78 Fix tests. 2019-11-26 18:53:36 -08:00
Mariano Cano
92d1db1616 Make test compilable. 2019-11-26 18:53:36 -08:00
Mariano Cano
b29dd3ad0c Update templates. 2019-11-26 18:53:36 -08:00
Mariano Cano
5d35586402 Update template tests. 2019-11-26 18:53:36 -08:00
Mariano Cano
0528971693 Fix api tests. 2019-11-26 18:53:36 -08:00
Mariano Cano
bf3b557bad Make identity duration the same as the SSH cert. 2019-11-26 18:53:36 -08:00
max furman
02dd66e2a9 extraneous new line 2019-11-26 11:55:29 -05:00
Mariano Cano
e88034bea4 Update templates. 2019-11-25 19:59:53 -08:00
Mariano Cano
864dd3cf1f Fix extra write header. 2019-11-21 19:06:19 -08:00
Mariano Cano
87ce2c9b4b Add Identity helpers. 2019-11-20 19:12:19 -08:00
max furman
c2a3bcfab5 resolving merge 2019-11-20 17:26:04 -08:00
max furman
927784237d Use an actual Hosts type when returning ssh hosts 2019-11-20 17:23:51 -08:00
Mariano Cano
012f64cdad Add version support to the ca.Client. 2019-11-20 17:15:48 -08:00
Mariano Cano
7a06a60f88 Add missing version.go file. 2019-11-20 17:02:06 -08:00
Mariano Cano
2f18a26d4f Add version endpoint. 2019-11-20 17:01:31 -08:00
Mariano Cano
80ee3645c4 Fix directory permissions. 2019-11-20 16:03:31 -08:00
max furman
35912cc906 change func def for getSSHHosts
* continue to return all hosts if injection method not specified
2019-11-20 12:59:48 -08:00
Mariano Cano
3fda081e42 Add identity certificate in ssh response. 2019-11-20 11:52:20 -08:00
Mariano Cano
af6f6b4a85 Support for retry and identity files. 2019-11-20 11:52:20 -08:00
Mariano Cano
18f8d90cd7 Add support for identity authentication. 2019-11-20 11:52:20 -08:00
max furman
c407a9319b Add getSSHHosts injection func 2019-11-20 11:32:27 -08:00
max furman
8b2105a8f9 Instrument getIdentity func for OIDC ssh provisioner 2019-11-19 13:32:58 -08:00
max furman
f25a2a43eb remove printfs 2019-11-15 11:59:12 -08:00
Mariano Cano
b299a73f3c Remove registry urls from templates. 2019-11-14 22:09:39 -08:00
max furman
6ca1df5081 Add WithGetIdentityFunc option and attr to authority
* Add Identity type to provisioner
2019-11-14 20:38:39 -08:00
Mariano Cano
35b7539243 Add client method for SSHBastion 2019-11-14 20:32:38 -08:00
Mariano Cano
86a0558587 Add support for /ssh/bastion method. 2019-11-14 18:24:58 -08:00
Mariano Cano
8585b29711 Make test to compile, they still fail. 2019-11-14 18:07:16 -08:00
Mariano Cano
43b663e0c3 Move Option type to a new file. 2019-11-14 15:29:04 -08:00
Mariano Cano
be93c9e1f4 Add missing comment. 2019-11-14 15:27:12 -08:00
Mariano Cano
fcccb06696 Fix some provisioner tests 2019-11-14 15:26:37 -08:00
Mariano Cano
2cb6bd880b Make audiences compatible with the old version. 2019-11-14 15:18:49 -08:00
Mariano Cano
efc2180c4a Complete AuthDB interface. 2019-11-14 10:49:13 -08:00
Mariano Cano
a4fd76f1a8 Make provisioner tests compile, they are still failing. 2019-11-14 10:48:06 -08:00