-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Hey Dev Tools team, in the process of both integrating the STACKIT Go SDK into our tools and then suggesting an improvement to the Authentication documentation (see #1302), I found that some of the environment variables that are supposed to be used for authentication are not actually being processed.
In the documentation of the DefaultAuth function mentions the usage of the STACKIT_SERVICE_ACCOUNT_KEY and STACKIT_PRIVATE_KEY environment variables, but these are not actually checked or used in the code.
You can see that in the bit of code that fetches both the service account key and the private key, only the environment variables that use the path are checked. I believe that these methods need to be extended to also support proving both the service account key and the private key directly, which is very useful in automated pipelines for instance, where providing a filepath is not practical.
Thank you!