common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
957 stars 90 forks source link

Ensure proper initialization of profiles with source_profile #559

Closed XargsUK closed 7 months ago

XargsUK commented 7 months ago

What changed?

Adjusts the LoadInitialisedProfile function to consistently initialise profiles, including those with a 'granted' prefix or a 'credential_process' key.

Why?

The initialisation now handles source_profile chains before any profile-specific logic is applied.

How did you test it?

Tested on both source_profile and non source_profile configurations. aws-azure-login was used for the source_profile, and the profile that uses the azure sso profile as the source was also tested.

Potential risks

This is my first PR for Go, feedback would be appreciated but also please check through properly!

Link to relevant docs PRs

fixes #558