This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
Auth for Admin client
Adding basic authentication to Admin client (#31) This adds the ability for the canonical golang gRPC Flyte Admin client to authenticate against an IDP. This client is used by the execution plane (Flyte Propeller) when talking to the control plane (Admin) when it needs to send events primarily, among others. The go-oidc library is used to discover the correct token endpoint necessary to retrieve a token. Using the client id and secret provided from the configuration, a `TokenSource` is made and a `PerRPCCredentials` object is made from that which will keep request a token from the IDP if nil, keep track of expiration, and send the token along with gRPC requests as a metadata field when making calls. * Ran goimports which made a lot of changes to everything. Did not check in any changes under `/gen` * make generate also changed a lot of things.