gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
17.13k stars 1.72k forks source link

github.com/microsoftgraph/msgraph-sdk-go causes excessive bloat #42594

Closed rosstimothy closed 2 weeks ago

rosstimothy commented 1 month ago

The msgraph dependencies caused the teleport binary to increase by ~50MB.

image

Relevant issue upstream: https://github.com/microsoftgraph/msgraph-sdk-go/issues/129

The ms graph folks seem to recommend building a custom client via https://github.com/microsoft/kiota to reduce the API surface of the package.

There is also an alternative package listed in that issue: https://github.com/manicminer/hamilton.

We could also create our own internal client that interacts with the endpoints that need to be interacted with instead of relying on a external dependency.

tigrato commented 1 month ago

cc @justinas

justinas commented 1 month ago

I had a cursory look at our options.

Let me know your thoughts about Hamilton vs. writing a client.

rosstimothy commented 1 month ago

If writing our own client is manageable I think that'd be preferable to using Hamilton.