Commit Graph

6 Commits (ca1c5124c57e083eb9c2cdfac6b8818ed69b27b8)

Author SHA1 Message Date
Dustin 4610e9df33 server: Add Containerfile
The SSHCA server is intended to be run in a Kubernetes container.
2023-11-08 21:29:00 -06:00
Dustin 5dc5b2cc21 server: host: Remove alias request parameter
I realized that allowing hosts to request certificates for arbitrary
aliases sort of defeats the purpose of the authentication process.  If a
host successfully authenticates, there would be nothing stopping it from
requesting a certificate for another host.  I will have to come up with
a different way of specifying aliases.  Probably something like a JSON
map containing pre-assigned aliases for hosts that will need them.
2023-11-04 16:37:19 -05:00
Dustin 5404e143dc server: Cache machine IDs for 60 seconds
Since hosts have multiple keys that they will want to have signed, they
will need to make multiple requests, either sequentially or in parallel.
Since each request must be authenticated individually, this would result
in a libvirt connection and lookup for each one.  To avoid this
overhead, the server will now cache machine IDs in memory for 60
seconds.
2023-11-04 16:37:19 -05:00
Dustin 821f597d89 examples: Add took to generate a JWT for testing 2023-11-04 16:37:19 -05:00
Dustin e7d368c1f3 ca: Add support for encrypted private keys 2023-11-04 16:37:18 -05:00
Dustin cadc977700 Initial commit 2023-11-04 16:36:20 -05:00