mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
This commit contains 2 changes: 1. Rename GenerateServerKeys to GenerateHostCerts. This is a more accurate name and consistent with the existing GenerateUserCerts endpoint. 2. Change the request type to include a single role, rather than a list of roles. We only ever allowed a single role in the list anyway, so this change will prevent future mis-use of the API. Note: a side effect of this change is we now have two similar endpoints: - GenerateHostCert: old API that generates SSH cert only - GenerateHostCerts: a newer API that generates SSH and TLS certs To avoid making this change too big, we'll aim to deprecate GenerateHostCert in the future.