feat: add IAM credentials authentication #1936
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Flare only provides bare-bones support for IAM credentials. While language clients can provide their IAM credentials to the Flare credentials provider, they must manage IAM credentials themselves. This adds code duplication and complexity to each IDE extension.
Furthermore, the agentic bundle for the CodeWhisperer LSP only supports SSO. If language clients want it to consume IAM credentials, they must start a completely separate bundle which includes the IAM implementation of the CodeWhisperer LSP. This prevents clients from seamlessly switching authentication methods at runtime.
Solution
This feature is split into multiple PRs (in order):
Each PR will be merged into
feature/flare-iam-base, which will be merged into branchmainat the end.These changes will allow the identity LSP to load and save IAM credentials to the shared config, generate STS credentials from role assumption, and cache/invalidate/refresh STS credentials.
This feature will also contain a major refactor of the CodeWhisperer LSP to switch between consuming IAM and bearer credentials at runtime.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.